Class ClientIDFromOAuth2ClientContextFunction
- java.lang.Object
-
- net.shibboleth.idp.plugin.authn.oidc.rp.context.navigate.ClientIDFromOAuth2ClientContextFunction
-
- All Implemented Interfaces:
BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
@ThreadSafe public class ClientIDFromOAuth2ClientContextFunction extends Object implements BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
A function that pulls the client_id out of theOAuth2ClientContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,OAuth2ClientContext>oauth2ClientContextLookupStrategyLookup strategy that to return aOAuth2ClientContext.
-
Constructor Summary
Constructors Constructor Description ClientIDFromOAuth2ClientContextFunction(Function<ProfileRequestContext,OAuth2ClientContext> strgy)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(ProfileRequestContext prc, com.nimbusds.jwt.JWTClaimsSet claimsSet)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Field Detail
-
oauth2ClientContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,OAuth2ClientContext> oauth2ClientContextLookupStrategy
Lookup strategy that to return aOAuth2ClientContext.
-
-
Constructor Detail
-
ClientIDFromOAuth2ClientContextFunction
public ClientIDFromOAuth2ClientContextFunction(@Nonnull @ParameterName(name="oauth2ClientContextLookupStrategy") Function<ProfileRequestContext,OAuth2ClientContext> strgy)
Constructor.- Parameters:
strgy- the strategy used to locate theOAuth2ClientContext
-
-
Method Detail
-
apply
@Nullable public String apply(@Nonnull ProfileRequestContext prc, @Nullable com.nimbusds.jwt.JWTClaimsSet claimsSet)
- Specified by:
applyin interfaceBiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
-
-