Class OidcIdToken.Builder
java.lang.Object
org.springframework.security.oauth2.core.oidc.OidcIdToken.Builder
- Enclosing class:
- OidcIdToken
A builder for
OidcIdTokens- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionaccessTokenHash(String accessTokenHash) Use this access token hash in the resultingOidcIdTokenaudience(Collection<String> audience) Use this audience in the resultingOidcIdTokenauthenticationContextClass(String authenticationContextClass) Use this authentication context class reference in the resultingOidcIdTokenauthenticationMethods(List<String> authenticationMethods) Use these authentication methods in the resultingOidcIdTokenauthorizationCodeHash(String authorizationCodeHash) Use this authorization code hash in the resultingOidcIdTokenauthorizedParty(String authorizedParty) Use this authorized party in the resultingOidcIdTokenUse this authenticationInstantin the resultingOidcIdTokenbuild()Build theOidcIdTokenUse this claim in the resultingOidcIdTokenProvides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.Use this expiration in the resultingOidcIdTokenUse this issued-at timestamp in the resultingOidcIdTokenUse this issuer in the resultingOidcIdTokenUse this nonce in the resultingOidcIdTokenUse this subject in the resultingOidcIdTokentokenValue(String tokenValue) Use this token value in the resultingOidcIdToken
-
Method Details
-
tokenValue
Use this token value in the resultingOidcIdToken- Parameters:
tokenValue- The token value to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
claim
Use this claim in the resultingOidcIdToken- Parameters:
name- The claim namevalue- The claim value- Returns:
- the
OidcIdToken.Builderfor further configurations
-
claims
Provides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.- Parameters:
claimsConsumer- the consumer- Returns:
- the
OidcIdToken.Builderfor further configurations
-
accessTokenHash
Use this access token hash in the resultingOidcIdToken- Parameters:
accessTokenHash- The access token hash to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
audience
Use this audience in the resultingOidcIdToken- Parameters:
audience- The audience(s) to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
authTime
Use this authenticationInstantin the resultingOidcIdToken- Parameters:
authenticatedAt- The authenticationInstantto use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
authenticationContextClass
Use this authentication context class reference in the resultingOidcIdToken- Parameters:
authenticationContextClass- The authentication context class reference to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
authenticationMethods
Use these authentication methods in the resultingOidcIdToken- Parameters:
authenticationMethods- The authentication methods to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
authorizationCodeHash
Use this authorization code hash in the resultingOidcIdToken- Parameters:
authorizationCodeHash- The authorization code hash to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
authorizedParty
Use this authorized party in the resultingOidcIdToken- Parameters:
authorizedParty- The authorized party to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
expiresAt
Use this expiration in the resultingOidcIdToken- Parameters:
expiresAt- The expiration to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
issuedAt
Use this issued-at timestamp in the resultingOidcIdToken- Parameters:
issuedAt- The issued-at timestamp to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
issuer
Use this issuer in the resultingOidcIdToken- Parameters:
issuer- The issuer to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
nonce
Use this nonce in the resultingOidcIdToken- Parameters:
nonce- The nonce to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
subject
Use this subject in the resultingOidcIdToken- Parameters:
subject- The subject to use- Returns:
- the
OidcIdToken.Builderfor further configurations
-
build
Build theOidcIdToken- Returns:
- The constructed
OidcIdToken
-