Package org.keycloak.representations
Class ClaimsRepresentation
- java.lang.Object
- 
- org.keycloak.representations.ClaimsRepresentation
 
- 
 public class ClaimsRepresentation extends Object Claims parameter as described in the OIDC specification https://openid.net/specs/openid-connect-core-1_0.html#ClaimsParameter- Author:
- Marek Posolda
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classClaimsRepresentation.ClaimContextstatic classClaimsRepresentation.ClaimValue<CLAIM_TYPE>
 - 
Constructor SummaryConstructors Constructor Description ClaimsRepresentation()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <CLAIM_TYPE>
 ClaimsRepresentation.ClaimValue<CLAIM_TYPE>getClaimValue(String claimName, ClaimsRepresentation.ClaimContext ctx, Class<CLAIM_TYPE> claimType)Map<String,ClaimsRepresentation.ClaimValue>getIdTokenClaims()Map<String,ClaimsRepresentation.ClaimValue>getUserinfoClaims()booleanisPresent(String claimName, ClaimsRepresentation.ClaimContext ctx)booleanisPresentAsNullClaim(String claimName, ClaimsRepresentation.ClaimContext ctx)voidsetIdTokenClaims(Map<String,ClaimsRepresentation.ClaimValue> idTokenClaims)voidsetUserinfoClaims(Map<String,ClaimsRepresentation.ClaimValue> userinfoClaims)
 
- 
- 
- 
Method Detail- 
getIdTokenClaimspublic Map<String,ClaimsRepresentation.ClaimValue> getIdTokenClaims() 
 - 
setIdTokenClaimspublic void setIdTokenClaims(Map<String,ClaimsRepresentation.ClaimValue> idTokenClaims) 
 - 
getUserinfoClaimspublic Map<String,ClaimsRepresentation.ClaimValue> getUserinfoClaims() 
 - 
setUserinfoClaimspublic void setUserinfoClaims(Map<String,ClaimsRepresentation.ClaimValue> userinfoClaims) 
 - 
isPresentpublic boolean isPresent(String claimName, ClaimsRepresentation.ClaimContext ctx) - Parameters:
- claimName-
- ctx- Whether we ask for claim to be presented in idToken or userInfo
- Returns:
- true if claim is presented in the claims parameter either as "null" claim (See OIDC specification for definition of null claim) or claim with some value
 
 - 
isPresentAsNullClaimpublic boolean isPresentAsNullClaim(String claimName, ClaimsRepresentation.ClaimContext ctx) - Parameters:
- claimName-
- ctx- Whether we ask for claim to be presented in idToken or userInfo
- Returns:
- true if claim is presented in the claims parameter as "null" claim (See OIDC specification for definition of null claim)
 
 - 
getClaimValuepublic <CLAIM_TYPE> ClaimsRepresentation.ClaimValue<CLAIM_TYPE> getClaimValue(String claimName, ClaimsRepresentation.ClaimContext ctx, Class<CLAIM_TYPE> claimType) - Parameters:
- claimName-
- ctx- Whether we ask for claim to be presented in idToken or userInfo
- claimType- claimType class
- Returns:
- Claim value
 
 
- 
 
-