Class SetEntityIdToSAMLPeerEntityContext
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.oidc.op.oauth2.messaging.impl.SetEntityIdToSAMLPeerEntityContext
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
public class SetEntityIdToSAMLPeerEntityContext extends AbstractMessageHandler
MessageHandlerthat sets the entityID to the givenSAMLPeerEntityContextclass. The value to be set is resolved via the given lookup strategy for client ID.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>clientIDLookupStrategyStrategy used to obtain the client id value for authorize/token request.private Class<? extends AbstractSAMLEntityContext>entityContextClassThe context class representing the SAML entity for whom data is to be attached.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description SetEntityIdToSAMLPeerEntityContext()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
clientIDLookupStrategy
@Nonnull private Function<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID> clientIDLookupStrategy
Strategy used to obtain the client id value for authorize/token request.
-
entityContextClass
@Nonnull private Class<? extends AbstractSAMLEntityContext> entityContextClass
The context class representing the SAML entity for whom data is to be attached. Defaults to:SAMLPeerEntityContext.
-
-
Method Detail
-
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
public void setEntityContextClass(@Nonnull Class<? extends AbstractSAMLEntityContext> clazz)Set the class type holding the SAML entity data.Defaults to:
SAMLPeerEntityContext.- Parameters:
clazz- the entity context class type
-
doInvoke
protected void doInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-