|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadOnlyJWTClaimsSet
Read-only view of a JWTClaimsSet
.
Method Summary | |
---|---|
Map<String,Object> |
getAllClaims()
Gets all claims, both reserved and custom, as a single map. |
List<String> |
getAudience()
Gets the audience ( aud ) clam. |
Object |
getClaim(String name)
Gets a single claim by name, whether reserved or custom. |
Object |
getCustomClaim(String name)
Gets a custom (non-reserved) claim. |
Map<String,Object> |
getCustomClaims()
Gets the custom (non-reserved) claims. |
Date |
getExpirationTime()
Gets the expiration time ( exp ) claim. |
String |
getIssuer()
Gets the issuer ( iss ) claim. |
Date |
getIssueTime()
Gets the issued-at ( iat ) claim. |
String |
getJWTID()
Gets the JWT ID ( jti ) claim. |
Date |
getNotBeforeTime()
Gets the not-before ( nbf ) claim. |
String |
getSubject()
Gets the subject ( sub ) claim. |
String |
getType()
Gets the type ( typ ) claim. |
net.minidev.json.JSONObject |
toJSONObject()
Returns the JSON object representation of the claims set. |
Method Detail |
---|
String getIssuer()
iss
) claim.
null
if not specified.String getSubject()
sub
) claim.
null
if not specified.List<String> getAudience()
aud
) clam.
null
if not specified.Date getExpirationTime()
exp
) claim.
null
if not specified.Date getNotBeforeTime()
nbf
) claim.
null
if not specified.Date getIssueTime()
iat
) claim.
null
if not specified.String getJWTID()
jti
) claim.
null
if not specified.String getType()
typ
) claim.
null
if not specified.Object getCustomClaim(String name)
name
- The name of the custom claim. Must not be null
.
null
if not specified.Map<String,Object> getCustomClaims()
Object getClaim(String name)
name
- The name of the claim to get. Must not be null
.
null
if not specified.Map<String,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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |