Package org.forgerock.oauth.clients.oidc
Class Claims
java.lang.Object
org.forgerock.oauth.clients.oidc.Claims
Models OpenID Connect claims that are requested in an authorize request.
See Claims Parameter in the OIDC specification.
Instances of this class are immutable.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets all the claims for userinfo, id_token and custom claims, as an unmodifiable map.Gets the custom claims as an unmodifiable map.Gets the id_token claims as an unmodifiable map.Gets the userinfo claims as an unmodifiable map.int
hashCode()
-
Field Details
-
ID_TOKEN
The name of the id_token claims object.- See Also:
-
USERINFO
The name of the userinfo claims object.- See Also:
-
-
Constructor Details
-
Claims
Creates a Claims object.- Parameters:
userInfoClaims
- the userinfo claims, must not be nullidTokenClaims
- the id_token claims, must not be null
-
Claims
public Claims(Map<String, Claim> userInfoClaims, Map<String, Claim> idTokenClaims, Map<String, Claim> customClaims) Creates a Claims object.- Parameters:
userInfoClaims
- the userinfo claims, must not be nullidTokenClaims
- the id_token claims, must not be nullcustomClaims
- the custom claims, must not be null
-
-
Method Details
-
getUserInfoClaims
Gets the userinfo claims as an unmodifiable map.- Returns:
- the userinfo claims
-
getIdTokenClaims
Gets the id_token claims as an unmodifiable map.- Returns:
- the id_token claims
-
getCustomClaims
Gets the custom claims as an unmodifiable map.- Returns:
- the custom claims
-
getAllClaims
Gets all the claims for userinfo, id_token and custom claims, as an unmodifiable map.- Returns:
- all claims
-
equals
-
hashCode
public int hashCode()
-