public interface ReadOnlyJWTClaimsSet
JWTClaimsSet.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllClaims()
Gets all claims, both reserved and custom, as a single map.
|
java.util.List<java.lang.String> |
getAudience()
Gets the audience (
aud) clam. |
java.lang.Object |
getClaim(java.lang.String name)
Gets a single claim by name, whether reserved or custom.
|
java.lang.Object |
getCustomClaim(java.lang.String name)
Gets a custom (non-reserved) claim.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomClaims()
Gets the custom (non-reserved) claims.
|
java.util.Date |
getExpirationTime()
Gets the expiration time (
exp) claim. |
java.lang.String |
getIssuer()
Gets the issuer (
iss) claim. |
java.util.Date |
getIssueTime()
Gets the issued-at (
iat) claim. |
java.lang.String |
getJWTID()
Gets the JWT ID (
jti) claim. |
java.util.Date |
getNotBeforeTime()
Gets the not-before (
nbf) claim. |
java.lang.String |
getSubject()
Gets the subject (
sub) claim. |
java.lang.String |
getType()
Gets the type (
typ) claim. |
net.minidev.json.JSONObject |
toJSONObject()
Returns the JSON object representation of the claims set.
|
java.lang.String getIssuer()
iss) claim.null if not specified.java.lang.String getSubject()
sub) claim.null if not specified.java.util.List<java.lang.String> getAudience()
aud) clam.null if not specified.java.util.Date getExpirationTime()
exp) claim.null if not specified.java.util.Date getNotBeforeTime()
nbf) claim.null if not specified.java.util.Date getIssueTime()
iat) claim.null if not specified.java.lang.String getJWTID()
jti) claim.null if not specified.java.lang.String getType()
typ) claim.null if not specified.java.lang.Object getCustomClaim(java.lang.String name)
name - The name of the custom claim. Must not be null.null if not specified.java.util.Map<java.lang.String,java.lang.Object> getCustomClaims()
java.lang.Object getClaim(java.lang.String name)
name - The name of the claim to get. Must not be null.null if not specified.java.util.Map<java.lang.String,java.lang.Object> getAllClaims()
Note that the reserved claims Expiration-Time (exp),
Not-Before-Time (nbf) and Issued-At (iat) will be
returned as java.util.Date instances.
net.minidev.json.JSONObject toJSONObject()
Copyright © 2013 NimbusDS. All Rights Reserved.