Claim.java
933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.cq.dam.mac.sync.helper.impl;
public class Claim {
public static String CLAIM_TYPE_SUB = "sub";
public static String CLAIM_TYPE_ISS = "iss";
public static String CLAIM_TYPE_SCOPE = "scope";
public static String CLAIM_TYPE_AUD = "aud";
private String claimType;
private String claimVal;
public String getClaimType() {
return this.claimType;
}
public String getClaimVal() {
return this.claimVal;
}
public String getClaim() {
return this.getClaimType() + ":" + this.getClaimVal();
}
public Claim(String claimStr) {
String[] split = claimStr.split(":");
if (split.length == 2) {
this.claimType = split[0];
this.claimVal = split[1];
}
}
public Claim(String type, String val) {
this.claimType = type;
this.claimVal = val;
}
}