Class AccessTokenToPrivateCredentialsMappingStrategy
java.lang.Object
net.shibboleth.idp.plugin.authn.oidc.rp.impl.AccessTokenToPrivateCredentialsMappingStrategy
- All Implemented Interfaces:
Function<ProfileRequestContext,Collection<Principal>>
public class AccessTokenToPrivateCredentialsMappingStrategy
extends Object
implements Function<ProfileRequestContext,Collection<Principal>>
A mapping strategy that locates the
AccessTokenResponseContext from the ProfileRequestContext and
constructs and returns an OAuth2AccessTokenPrincipal from the access_token, token_type, and expires_in. A
OAuth2RefreshTokenPrincipal will also be returned in the principal collection if a refresh_token is present
in the context.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,AccessTokenResponseContext> Strategy used to look up theAccessTokenResponseContextto set the parameters for. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.AccessTokenToPrivateCredentialsMappingStrategy(Function<ProfileRequestContext, AccessTokenResponseContext> strategy) Constructor. -
Method Summary
-
Field Details
-
tokenResponseContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,AccessTokenResponseContext> tokenResponseContextLookupStrategyStrategy used to look up theAccessTokenResponseContextto set the parameters for.
-
-
Constructor Details
-
AccessTokenToPrivateCredentialsMappingStrategy
public AccessTokenToPrivateCredentialsMappingStrategy(@Nonnull Function<ProfileRequestContext, AccessTokenResponseContext> strategy) Constructor.- Parameters:
strategy- the strategy to use to lookup theAccessTokenResponseContext
-
AccessTokenToPrivateCredentialsMappingStrategy
public AccessTokenToPrivateCredentialsMappingStrategy()Constructor.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Collection<Principal>>
-