Package io.jans.as.model.jwt
Class JwtClaimSet
- java.lang.Object
-
- io.jans.as.model.jwt.JwtClaimSet
-
- Direct Known Subclasses:
JwtClaims
,JwtHeader
,JwtSubClaimObject
public abstract class JwtClaimSet extends Object
- Version:
- January 3, 2018
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JwtClaimSet()
protected
JwtClaimSet(String base64JsonObject)
protected
JwtClaimSet(org.json.JSONObject jsonObject)
-
Method Summary
-
-
-
Constructor Detail
-
JwtClaimSet
protected JwtClaimSet()
-
JwtClaimSet
protected JwtClaimSet(org.json.JSONObject jsonObject)
-
JwtClaimSet
protected JwtClaimSet(String base64JsonObject) throws InvalidJwtException
- Throws:
InvalidJwtException
-
-
Method Detail
-
hasClaim
public boolean hasClaim(String key)
-
getClaimAsJSON
public org.json.JSONObject getClaimAsJSON(String key)
-
setNullClaim
public void setNullClaim(String key)
-
setClaim
public void setClaim(String key, JwtSubClaimObject subClaimObject)
-
setClaim
public void setClaim(String key, org.json.JSONObject values)
-
setClaim
public void setClaim(String key, org.json.JSONArray values)
-
removeClaim
public void removeClaim(String key)
-
toJsonObject
public org.json.JSONObject toJsonObject() throws InvalidJwtException
- Throws:
InvalidJwtException
-
toBase64JsonObject
public String toBase64JsonObject() throws InvalidJwtException
- Throws:
InvalidJwtException
-
toJsonString
public String toJsonString() throws InvalidJwtException
- Throws:
InvalidJwtException
-
toMap
public Map<String,List<String>> toMap() throws InvalidJwtException
- Throws:
InvalidJwtException
-
load
public void load(org.json.JSONObject jsonObject)
-
load
public void load(String base64JsonObject) throws InvalidJwtException
- Throws:
InvalidJwtException
-
-