Class AbstractOIDCSSOConfiguration
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.profile.config.AbstractProfileConfiguration
-
- net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
-
- net.shibboleth.oidc.profile.oauth2.config.AbstractOAuth2ClientAuthenticableProfileConfiguration
-
- net.shibboleth.oidc.profile.oauth2.config.AbstractOAuth2FlowAwareProfileConfiguration
-
- net.shibboleth.oidc.profile.config.AbstractOIDCSSOConfiguration
-
- All Implemented Interfaces:
net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration,net.shibboleth.idp.profile.config.AttributeResolvingProfileConfiguration,net.shibboleth.idp.profile.config.ConditionalProfileConfiguration,net.shibboleth.idp.profile.config.OverriddenIssuerProfileConfiguration,net.shibboleth.idp.profile.config.ProfileConfiguration,OIDCProfileConfiguration,OAuth2ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
OAuth2TokenConfiguration,OIDCAuthorizationConfiguration
public abstract class AbstractOIDCSSOConfiguration extends AbstractOAuth2FlowAwareProfileConfiguration implements OIDCProfileConfiguration, net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration, net.shibboleth.idp.profile.config.OverriddenIssuerProfileConfiguration, net.shibboleth.idp.profile.config.AttributeResolvingProfileConfiguration
Base class for profiles that support OIDC's concept of SSO, which spans multiple endpoints.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>>accessTokenClaimsSetManipulationStrategyLookupStrategyLookup function to supply strategy bi-function for manipulating access token claims set.private Function<ProfileRequestContext,Duration>accessTokenLifetimeLookupStrategyLookup function to supply access token lifetime.private Function<ProfileRequestContext,String>accessTokenTypeLookupStrategyLookup functioon to supply access token type.private Predicate<ProfileRequestContext>allowPKCEPlainPredicateWhether client is allowed to use PKCE code challenge method plain.private Function<ProfileRequestContext,Set<String>>alwaysIncludedAttributesLookupStrategyLookup function to supply attribute IDs to include in ID token regardless of response_type.private Function<ProfileRequestContext,Set<String>>assertionAudiencesLookupStrategyLookup function to supply additional audiences for ID token.private Predicate<ProfileRequestContext>encryptionOptionalPredicateWhether encryption is optional in the face of no key, etc.private Predicate<ProfileRequestContext>forcePKCEPredicateWhether client is required to use PKCE.private Function<ProfileRequestContext,Duration>idTokenLifetimeLookupStrategyLookup function to supply ID token lifetime.private Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>>idTokenManipulationStrategyLookupStrategyLookup function to supply strategy bi-function for manipulating id_token claims.private Function<ProfileRequestContext,String>issuerLookupStrategyLookup function to override issuer value.static StringPROTOCOL_URIOIDC base protocol URI.private Function<ProfileRequestContext,Duration>refreshTokenLifetimeLookupStrategyLookup function to supply refresh token lifetime.private Predicate<ProfileRequestContext>resolveAttributesPredicateWhether attributes should be resolved in the course of the profile.
-
Constructor Summary
Constructors Constructor Description AbstractOIDCSSOConfiguration(String profileId)Creates a new configuration instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>getAccessTokenClaimsSetManipulationStrategy(ProfileRequestContext profileRequestContext)Get the bi-function for manipulating access token claims set.DurationgetAccessTokenLifetime(ProfileRequestContext profileRequestContext)Get access token lifetime.StringgetAccessTokenType(ProfileRequestContext profileRequestContext)Get access token type.Set<String>getAdditionalAudiencesForIdToken(ProfileRequestContext profileRequestContext)Get the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.Set<String>getAlwaysIncludedAttributes(ProfileRequestContext profileRequestContext)Get the set of attribute IDs which should be included in the ID token regardless of response_type.DurationgetIDTokenLifetime(ProfileRequestContext profileRequestContext)/** Get ID token lifetime.BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>getIDTokenManipulationStrategy(ProfileRequestContext profileRequestContext)Get the bi-function for manipulating id_token claims.StringgetIssuer(ProfileRequestContext profileRequestContext)DurationgetRefreshTokenLifetime(ProfileRequestContext profileRequestContext)Get refresh token lifetime.booleanisAllowPKCEPlain(ProfileRequestContext profileRequestContext)Get whether client is allowed to use PKCE code challenge method plain.booleanisEncryptionOptional(ProfileRequestContext profileRequestContext)Get whether encryption is optional in the face of a missing key, etc.booleanisForcePKCE(ProfileRequestContext profileRequestContext)Get whether client is required to use PKCE.booleanisResolveAttributes(ProfileRequestContext profileRequestContext)voidsetAccessTokenClaimsSetManipulationStrategy(BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> strategy)Set the bi-function for manipulating access token claims set.voidsetAccessTokenClaimsSetManipulationStrategyLookupStrategy(Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> strategy)Set a lookup strategy for the bi-function for manipulating access token claims set.voidsetAccessTokenLifetime(Duration lifetime)Set the lifetime of an access token.voidsetAccessTokenLifetimeLookupStrategy(Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the access token lifetime.voidsetAccessTokenType(String type)Set access token type.voidsetAccessTokenTypeLookupStrategy(Function<ProfileRequestContext,String> strategy)Set lookup strategy for access token type.voidsetAdditionalAudiencesForIdToken(Collection<String> audiences)Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.voidsetAdditionalAudiencesForIdTokenLookupStrategy(Function<ProfileRequestContext,Set<String>> strategy)Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.voidsetAllowPKCEPlain(boolean flag)Set whether client is allowed to use PKCE code challenge method plain.voidsetAllowPKCEPlainPredicate(Predicate<ProfileRequestContext> condition)Set condition for whether client is allowed to use PKCE code challenge method plain.voidsetAlwaysIncludedAttributes(Collection<String> attributes)Set the set of attribute IDs which should be included in the ID token regardless of response_type.voidsetAlwaysIncludedAttributesLookupStrategy(Function<ProfileRequestContext,Set<String>> strategy)Set a lookup strategy for the attribute IDs which should be included in the ID token regardless of response_type.voidsetEncryptionOptional(boolean flag)Set whether encryption is optional in the face of a missing key, etc.voidsetEncryptionOptionalPredicate(Predicate<ProfileRequestContext> condition)Set a condition to determine whether encryption is optional in the face of a missing key, etc.voidsetForcePKCE(boolean flag)Set whether client is required to use PKCE.voidsetForcePKCEPredicate(Predicate<ProfileRequestContext> condition)Set condition for whether client is required to use PKCE.voidsetIDTokenLifetime(Duration lifetime)Set the lifetime of an id token.voidsetIDTokenLifetimeLookupStrategy(Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the ID token lifetime.voidsetIDTokenManipulationStrategy(BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> strategy)Set the bi-function for manipulating id_token claims.voidsetIDTokenManipulationStrategyLookupStrategy(Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> strategy)Set a lookup strategy for the bi-function for manipulating id_token claims.voidsetIssuer(String issuer)Set overridden issuer value.voidsetIssuerLookupStrategy(Function<ProfileRequestContext,String> strategy)Sets lookup strategy for overridden issuer value.voidsetRefreshTokenLifetime(Duration lifetime)Set the lifetime of refresh token.voidsetRefreshTokenLifetimeLookupStrategy(Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the refresh token lifetime.voidsetResolveAttributes(boolean flag)Set whether attributes should be resolved during the profile.voidsetResolveAttributesPredicate(Predicate<ProfileRequestContext> condition)Set a condition to determine whether attributes should be resolved during the profile.-
Methods inherited from class net.shibboleth.oidc.profile.oauth2.config.AbstractOAuth2FlowAwareProfileConfiguration
isAuthorizationCodeFlowEnabled, isHybridFlowEnabled, isImplicitFlowEnabled, isRefreshTokensEnabled, setAuthorizationCodeFlowEnabled, setAuthorizationCodeFlowEnabledPredicate, setHybridFlowEnabled, setHybridFlowEnabledPredicate, setImplicitFlowEnabled, setImplicitFlowEnabledPredicate, setRefreshTokensEnabled, setRefreshTokensEnabledPredicate
-
Methods inherited from class net.shibboleth.oidc.profile.oauth2.config.AbstractOAuth2ClientAuthenticableProfileConfiguration
getAuthenticationFlows, getClaimsValidator, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, getTokenEndpointAuthMethods, isForceAuthn, setAuthenticationFlows, setAuthenticationFlowsLookupStrategy, setClaimsValidator, setClaimsValidatorLookupStrategy, setDefaultAuthenticationMethods, setDefaultAuthenticationMethodsLookupStrategy, setForceAuthn, setForceAuthnPredicate, setPostAuthenticationFlows, setPostAuthenticationFlowsLookupStrategy, setProxyCount, setProxyCountLookupStrategy, setTokenEndpointAuthMethods, setTokenEndpointAuthMethodsLookupStrategy
-
Methods inherited from class net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationCondition
-
Methods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategy
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
getAuthenticationFlows, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, isForceAuthn, isLocal
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
PROTOCOL_URI
@Nonnull @NotEmpty public static final String PROTOCOL_URI
OIDC base protocol URI.- See Also:
- Constant Field Values
-
issuerLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> issuerLookupStrategy
Lookup function to override issuer value.
-
resolveAttributesPredicate
@Nonnull private Predicate<ProfileRequestContext> resolveAttributesPredicate
Whether attributes should be resolved in the course of the profile.
-
encryptionOptionalPredicate
@Nonnull private Predicate<ProfileRequestContext> encryptionOptionalPredicate
Whether encryption is optional in the face of no key, etc.
-
forcePKCEPredicate
@Nonnull private Predicate<ProfileRequestContext> forcePKCEPredicate
Whether client is required to use PKCE.
-
allowPKCEPlainPredicate
@Nonnull private Predicate<ProfileRequestContext> allowPKCEPlainPredicate
Whether client is allowed to use PKCE code challenge method plain.
-
idTokenLifetimeLookupStrategy
@Nonnull private Function<ProfileRequestContext,Duration> idTokenLifetimeLookupStrategy
Lookup function to supply ID token lifetime.
-
accessTokenTypeLookupStrategy
@Nonnull private Function<ProfileRequestContext,String> accessTokenTypeLookupStrategy
Lookup functioon to supply access token type.
-
accessTokenLifetimeLookupStrategy
@Nonnull private Function<ProfileRequestContext,Duration> accessTokenLifetimeLookupStrategy
Lookup function to supply access token lifetime.
-
refreshTokenLifetimeLookupStrategy
@Nonnull private Function<ProfileRequestContext,Duration> refreshTokenLifetimeLookupStrategy
Lookup function to supply refresh token lifetime.
-
assertionAudiencesLookupStrategy
@Nonnull private Function<ProfileRequestContext,Set<String>> assertionAudiencesLookupStrategy
Lookup function to supply additional audiences for ID token.
-
alwaysIncludedAttributesLookupStrategy
@Nonnull private Function<ProfileRequestContext,Set<String>> alwaysIncludedAttributesLookupStrategy
Lookup function to supply attribute IDs to include in ID token regardless of response_type.
-
idTokenManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> idTokenManipulationStrategyLookupStrategy
Lookup function to supply strategy bi-function for manipulating id_token claims.
-
accessTokenClaimsSetManipulationStrategyLookupStrategy
@Nonnull private Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> accessTokenClaimsSetManipulationStrategyLookupStrategy
Lookup function to supply strategy bi-function for manipulating access token claims set.
-
-
Method Detail
-
getIssuer
@Nullable @NotEmpty public String getIssuer(@Nullable ProfileRequestContext profileRequestContext)
- Specified by:
getIssuerin interfacenet.shibboleth.idp.profile.config.OverriddenIssuerProfileConfiguration
-
setIssuer
public void setIssuer(@Nullable @NotEmpty String issuer)
Set overridden issuer value.- Parameters:
issuer- issuer value
-
setIssuerLookupStrategy
public void setIssuerLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Sets lookup strategy for overridden issuer value.- Parameters:
strategy- lookup strategy
-
isResolveAttributes
public boolean isResolveAttributes(@Nullable ProfileRequestContext profileRequestContext)- Specified by:
isResolveAttributesin interfacenet.shibboleth.idp.profile.config.AttributeResolvingProfileConfiguration
-
setResolveAttributes
public void setResolveAttributes(boolean flag)
Set whether attributes should be resolved during the profile.- Parameters:
flag- flag to set
-
setResolveAttributesPredicate
public void setResolveAttributesPredicate(@Nonnull Predicate<ProfileRequestContext> condition)Set a condition to determine whether attributes should be resolved during the profile.- Parameters:
condition- condition to set
-
isEncryptionOptional
public boolean isEncryptionOptional(@Nullable ProfileRequestContext profileRequestContext)Get whether encryption is optional in the face of a missing key, etc.- Parameters:
profileRequestContext- current profile request context- Returns:
- true iff encryption is optional
-
setEncryptionOptional
public void setEncryptionOptional(boolean flag)
Set whether encryption is optional in the face of a missing key, etc.- Parameters:
flag- flag to set
-
setEncryptionOptionalPredicate
public void setEncryptionOptionalPredicate(@Nonnull Predicate<ProfileRequestContext> condition)Set a condition to determine whether encryption is optional in the face of a missing key, etc.- Parameters:
condition- condition to set
-
isForcePKCE
public boolean isForcePKCE(@Nullable ProfileRequestContext profileRequestContext)Get whether client is required to use PKCE.- Parameters:
profileRequestContext- profile request context- Returns:
- whether client is required to use PKCE
-
setForcePKCE
public void setForcePKCE(boolean flag)
Set whether client is required to use PKCE.- Parameters:
flag- flag to set
-
setForcePKCEPredicate
public void setForcePKCEPredicate(@Nonnull Predicate<ProfileRequestContext> condition)Set condition for whether client is required to use PKCE.- Parameters:
condition- condition to set
-
isAllowPKCEPlain
public boolean isAllowPKCEPlain(@Nullable ProfileRequestContext profileRequestContext)Get whether client is allowed to use PKCE code challenge method plain.- Parameters:
profileRequestContext- profile request context- Returns:
- whether client is allowed to use PKCE code challenge method plain
-
setAllowPKCEPlain
public void setAllowPKCEPlain(boolean flag)
Set whether client is allowed to use PKCE code challenge method plain.- Parameters:
flag- flag to set
-
setAllowPKCEPlainPredicate
public void setAllowPKCEPlainPredicate(@Nonnull Predicate<ProfileRequestContext> condition)Set condition for whether client is allowed to use PKCE code challenge method plain.- Parameters:
condition- condition to set
-
getIDTokenLifetime
@Positive @Nonnull public Duration getIDTokenLifetime(@Nullable ProfileRequestContext profileRequestContext)
/** Get ID token lifetime.Defaults to 1 hour.
- Parameters:
profileRequestContext- profile request context- Returns:
- ID token lifetime
-
setIDTokenLifetime
public void setIDTokenLifetime(@Positive @Nonnull Duration lifetime)
Set the lifetime of an id token.- Parameters:
lifetime- lifetime of an id token in milliseconds
-
setIDTokenLifetimeLookupStrategy
public void setIDTokenLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the ID token lifetime.- Parameters:
strategy- lookup strategy
-
getAccessTokenType
@Nullable @NotEmpty public String getAccessTokenType(@Nullable ProfileRequestContext profileRequestContext)
Get access token type.- Parameters:
profileRequestContext- profile request context- Returns:
- access token type, or null for unspecified/opaque
- Since:
- 2.1.0
-
setAccessTokenType
public void setAccessTokenType(@Nullable @NotEmpty String type)
Set access token type.- Parameters:
type- token type, or null for unspecified/opaque- Since:
- 2.1.0
-
setAccessTokenTypeLookupStrategy
public void setAccessTokenTypeLookupStrategy(@Nonnull Function<ProfileRequestContext,String> strategy)Set lookup strategy for access token type.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
getAccessTokenLifetime
@Positive @Nonnull public Duration getAccessTokenLifetime(@Nullable ProfileRequestContext profileRequestContext)
Get access token lifetime.Defaults to 10 minutes.
- Parameters:
profileRequestContext- profile request context- Returns:
- access token lifetime
-
setAccessTokenLifetime
public void setAccessTokenLifetime(@Positive @Nonnull Duration lifetime)
Set the lifetime of an access token.- Parameters:
lifetime- lifetime of an access token in milliseconds
-
setAccessTokenLifetimeLookupStrategy
public void setAccessTokenLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the access token lifetime.- Parameters:
strategy- lookup strategy
-
getRefreshTokenLifetime
@Nonnull @Positive public Duration getRefreshTokenLifetime(@Nullable ProfileRequestContext profileRequestContext)
Get refresh token lifetime.Defaults to 2 hours.
- Parameters:
profileRequestContext- profile request context- Returns:
- refresh token lifetime
-
setRefreshTokenLifetime
public void setRefreshTokenLifetime(@Nonnull @Positive Duration lifetime)
Set the lifetime of refresh token.- Parameters:
lifetime- lifetime of an refresh token
-
setRefreshTokenLifetimeLookupStrategy
public void setRefreshTokenLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext,Duration> strategy)Set a lookup strategy for the refresh token lifetime.- Parameters:
strategy- lookup strategy
-
getAdditionalAudiencesForIdToken
@Nonnull @NonnullElements @NotLive public Set<String> getAdditionalAudiencesForIdToken(@Nullable ProfileRequestContext profileRequestContext)
Get the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Parameters:
profileRequestContext- profile request context- Returns:
- the additional audiences
-
setAdditionalAudiencesForIdToken
public void setAdditionalAudiencesForIdToken(@Nullable @NonnullElements Collection<String> audiences)
Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Parameters:
audiences- the additional audiences
-
setAdditionalAudiencesForIdTokenLookupStrategy
public void setAdditionalAudiencesForIdTokenLookupStrategy(@Nonnull Function<ProfileRequestContext,Set<String>> strategy)Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.- Parameters:
strategy- lookup strategy
-
getAlwaysIncludedAttributes
@Nonnull @NonnullElements @NotLive public Set<String> getAlwaysIncludedAttributes(@Nullable ProfileRequestContext profileRequestContext)
Get the set of attribute IDs which should be included in the ID token regardless of response_type.Default behavior is to include claims only with the implicit id_token type only, while any use of a back-channel relies on the user_info endpoint to get the claims. This setting forces certain attributes to be added to the ID token regardless of flow.
- Parameters:
profileRequestContext- profile request context- Returns:
- the attribute IDs to include in all cases
-
setAlwaysIncludedAttributes
public void setAlwaysIncludedAttributes(@Nullable @NonnullElements Collection<String> attributes)
Set the set of attribute IDs which should be included in the ID token regardless of response_type.Default behavior is to include claims only with the implicit id_token type only, while any use of a back-channel relies on the user_info endpoint to get the claims. This setting forces certain attributes to be added to the ID token regardless of flow.
- Parameters:
attributes- the attribute IDs to include in all cases
-
setAlwaysIncludedAttributesLookupStrategy
public void setAlwaysIncludedAttributesLookupStrategy(@Nonnull Function<ProfileRequestContext,Set<String>> strategy)Set a lookup strategy for the attribute IDs which should be included in the ID token regardless of response_type.- Parameters:
strategy- lookup strategy
-
getIDTokenManipulationStrategy
@Nonnull public BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> getIDTokenManipulationStrategy(@Nullable ProfileRequestContext profileRequestContext)
Get the bi-function for manipulating id_token claims.- Parameters:
profileRequestContext- profile request context- Returns:
- the bi-function for manipulating id_token claims
- Since:
- 2.1.0
-
setIDTokenManipulationStrategy
public void setIDTokenManipulationStrategy(@Nullable BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> strategy)Set the bi-function for manipulating id_token claims.- Parameters:
strategy- bi-function for manipulating id_token claims- Since:
- 2.1.0
-
setIDTokenManipulationStrategyLookupStrategy
public void setIDTokenManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> strategy)Set a lookup strategy for the bi-function for manipulating id_token claims.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
getAccessTokenClaimsSetManipulationStrategy
@Nonnull public BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> getAccessTokenClaimsSetManipulationStrategy(@Nullable ProfileRequestContext profileRequestContext)
Get the bi-function for manipulating access token claims set.- Parameters:
profileRequestContext- profile request context- Returns:
- the bi-function for manipulating access token claims set
- Since:
- 2.1.0
-
setAccessTokenClaimsSetManipulationStrategy
public void setAccessTokenClaimsSetManipulationStrategy(@Nullable BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> strategy)Set the bi-function for manipulating access token claims set.- Parameters:
strategy- bi-function for manipulating access token claims set- Since:
- 2.1.0
-
setAccessTokenClaimsSetManipulationStrategyLookupStrategy
public void setAccessTokenClaimsSetManipulationStrategyLookupStrategy(@Nonnull Function<ProfileRequestContext,BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>>> strategy)Set a lookup strategy for the bi-function for manipulating access token claims set.- Parameters:
strategy- lookup strategy- Since:
- 2.1.0
-
-