Class IDTokenJOSEHeaderLookupStrategy
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.context.navigate.IDTokenJOSEHeaderLookupStrategy
-
- All Implemented Interfaces:
Function<ProfileRequestContext,com.nimbusds.jose.JWSHeader>
@ThreadSafe public class IDTokenJOSEHeaderLookupStrategy extends Object implements Function<ProfileRequestContext,com.nimbusds.jose.JWSHeader>
Function that extracts the JWS JOSE header from the id_token inside theAccessTokenResponseContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,AccessTokenResponseContext>tokenResponseContextLookupStrategyStrategy used to locate theAccessTokenResponseContextto extract the id_token from.
-
Constructor Summary
Constructors Constructor Description IDTokenJOSEHeaderLookupStrategy()Constructor.IDTokenJOSEHeaderLookupStrategy(Function<ProfileRequestContext,AccessTokenResponseContext> strategy)Constructor.
-
-
-
Field Detail
-
tokenResponseContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,AccessTokenResponseContext> tokenResponseContextLookupStrategy
Strategy used to locate theAccessTokenResponseContextto extract the id_token from.
-
-
Constructor Detail
-
IDTokenJOSEHeaderLookupStrategy
public IDTokenJOSEHeaderLookupStrategy()
Constructor.
-
IDTokenJOSEHeaderLookupStrategy
public IDTokenJOSEHeaderLookupStrategy(@Nonnull Function<ProfileRequestContext,AccessTokenResponseContext> strategy)Constructor.- Parameters:
strategy- the AccessTokenResponseContext lookup strategy to use.
-
-
Method Detail
-
apply
@Nullable public com.nimbusds.jose.JWSHeader apply(@Nonnull ProfileRequestContext prc)- Specified by:
applyin interfaceFunction<ProfileRequestContext,com.nimbusds.jose.JWSHeader>
-
-