Class OIDCClientRegistrationResponseMetadataLookupFunction
- java.lang.Object
-
- org.geant.idpextension.oidc.messaging.context.navigate.OIDCClientRegistrationResponseMetadataLookupFunction
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata>,org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata>
public class OIDCClientRegistrationResponseMetadataLookupFunction extends Object implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata>
A function that returnsOIDCClientMetadataif such is available in the message from aOIDCClientRegistrationResponseContext. It is obtained viaMessageContextthat is obtained viaInOutOperationContext.getOutboundMessageContext().If the metadata is unavailable, a null value is returned.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<org.opensaml.messaging.context.MessageContext,OIDCClientRegistrationResponseContext>oidcResponseContextLookupStrategyStrategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.
-
Constructor Summary
Constructors Constructor Description OIDCClientRegistrationResponseMetadataLookupFunction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadataapply(org.opensaml.profile.context.ProfileRequestContext input)voidsetOidcResponseContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,OIDCClientRegistrationResponseContext> strategy)Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
oidcResponseContextLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,OIDCClientRegistrationResponseContext> oidcResponseContextLookupStrategy
Strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.
-
-
Method Detail
-
setOidcResponseContextLookupStrategy
public void setOidcResponseContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,OIDCClientRegistrationResponseContext> strategy)Set the strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext.- Parameters:
strategy- strategy used to locate theOIDCClientRegistrationResponseContextassociated with a givenMessageContext
-
apply
@Nullable public com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata apply(@Nullable org.opensaml.profile.context.ProfileRequestContext input)
-
-