Package com.ibm.websphere.security.jwt
Interface Claims
The 
Claims interface represents JSON Web Token (JWT) payload claims and offers convenient get methods for some of the
 well known JWT claims such as "iss", "exp", and "iat".- Since:
- 1.0
- 
Nested Class Summary
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe AUDIENCE is used to represent the "aud" claimstatic final StringThe AZP is used to represent the "azp" claimstatic final StringThe EXPIRATION is used to represent the "exp" claimstatic final StringThe ID is used to represent the "jti" claimstatic final StringThe ISSUED_AT is used to represent the "iat" claimstatic final StringThe ISSUER is used to represent the "iss" claimstatic final StringThe NOT_BEFORE is used to represent the "nbf" claimstatic final StringThe SUBJECT is used to represent the "sub" claimstatic final StringThe TOKEN_TYPE is used to represent the "token_type" claim
- 
Method SummaryMethods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
- 
Field Details- 
ISSUERThe ISSUER is used to represent the "iss" claim- See Also:
 
- 
SUBJECTThe SUBJECT is used to represent the "sub" claim- See Also:
 
- 
AUDIENCEThe AUDIENCE is used to represent the "aud" claim- See Also:
 
- 
EXPIRATIONThe EXPIRATION is used to represent the "exp" claim- See Also:
 
- 
NOT_BEFOREThe NOT_BEFORE is used to represent the "nbf" claim- See Also:
 
- 
ISSUED_ATThe ISSUED_AT is used to represent the "iat" claim- See Also:
 
- 
IDThe ID is used to represent the "jti" claim- See Also:
 
- 
AZPThe AZP is used to represent the "azp" claim- See Also:
 
- 
TOKEN_TYPEThe TOKEN_TYPE is used to represent the "token_type" claim- See Also:
 
 
- 
- 
Method Details- 
getIssuerString getIssuer()- Returns:
- The "iss" claim
 
- 
getSubjectString getSubject()- Returns:
- The "sub" claim
 
- 
getAudience- Returns:
- The "aud" claim
 
- 
getExpirationlong getExpiration()- Returns:
- The "exp" claim
 
- 
getNotBeforelong getNotBefore()- Returns:
- The "nbf" claim
 
- 
getIssuedAtlong getIssuedAt()- Returns:
- The "iat" claim
 
- 
getJwtIdString getJwtId()- Returns:
- The "jti" claim
 
- 
getAuthorizedPartyString getAuthorizedParty()- Returns:
- The "azp" claim
 
- 
getClaim- Parameters:
- claimName- claim name
- requiredType- This is the required type of the claim value
- Returns:
- The claim value that matches the requiredType
 
- 
getAllClaims- Returns:
- All the claims
 
- 
toJsonStringString toJsonString()- Returns:
- All the claims in JSON string format
 
 
-