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