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 theAccessTokenResponseContextfrom theProfileRequestContextand constructs and returns anOAuth2AccessTokenPrincipalfrom the access_token, token_type, and expires_in. AOAuth2RefreshTokenPrincipalwill also be returned in the principal collection if a refresh_token is present in the context.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,AccessTokenResponseContext>tokenResponseContextLookupStrategyStrategy used to look up theAccessTokenResponseContextto set the parameters for.
-
Constructor Summary
Constructors Constructor Description AccessTokenToPrivateCredentialsMappingStrategy()Constructor.AccessTokenToPrivateCredentialsMappingStrategy(Function<ProfileRequestContext,AccessTokenResponseContext> strategy)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Principal>apply(ProfileRequestContext input)
-
-
-
Field Detail
-
tokenResponseContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,AccessTokenResponseContext> tokenResponseContextLookupStrategy
Strategy used to look up theAccessTokenResponseContextto set the parameters for.
-
-
Constructor Detail
-
AccessTokenToPrivateCredentialsMappingStrategy
public AccessTokenToPrivateCredentialsMappingStrategy(@Nonnull Function<ProfileRequestContext,AccessTokenResponseContext> strategy)Constructor.- Parameters:
strategy- the strategy to use to lookup theAccessTokenResponseContext
-
AccessTokenToPrivateCredentialsMappingStrategy
public AccessTokenToPrivateCredentialsMappingStrategy()
Constructor.
-
-
Method Detail
-
apply
public Collection<Principal> apply(ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Collection<Principal>>
-
-