Class SetEntityIdToSAMLPeerEntityContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
net.shibboleth.idp.plugin.oidc.op.oauth2.messaging.impl.SetEntityIdToSAMLPeerEntityContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
MessageHandler that sets the entityID to the given SAMLPeerEntityContext class.
The value to be set is resolved via the given lookup strategy for client ID.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> Strategy used to obtain the client id value for authorize/token request.private Class<? extends AbstractSAMLEntityContext>The context class representing the SAML entity for whom data is to be attached.private org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInvoke(MessageContext messageContext) voidsetClientIDLookupStrategy(Function<MessageContext, com.nimbusds.oauth2.sdk.id.ClientID> strategy) Set the strategy used to locate the client id of the request.voidsetEntityContextClass(Class<? extends AbstractSAMLEntityContext> clazz) Set the class type holding the SAML entity data.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, isPreInvokeCalled, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
clientIDLookupStrategy
@Nonnull private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> clientIDLookupStrategyStrategy used to obtain the client id value for authorize/token request. -
entityContextClass
The context class representing the SAML entity for whom data is to be attached. Defaults to:SAMLPeerEntityContext.
-
-
Constructor Details
-
SetEntityIdToSAMLPeerEntityContext
public SetEntityIdToSAMLPeerEntityContext()Constructor.
-
-
Method Details
-
setClientIDLookupStrategy
public void setClientIDLookupStrategy(@Nonnull Function<MessageContext, com.nimbusds.oauth2.sdk.id.ClientID> strategy) Set the strategy used to locate the client id of the request.- Parameters:
strategy- lookup strategy
-
setEntityContextClass
Set the class type holding the SAML entity data.Defaults to:
SAMLPeerEntityContext.- Parameters:
clazz- the entity context class type
-
doInvoke
- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-