Class SAMLMessageContextAuthenticationFunction
- java.lang.Object
-
- org.opensaml.saml.common.messaging.context.navigate.SAMLMessageContextAuthenticationFunction
-
- All Implemented Interfaces:
Function<MessageContext,Boolean>
public class SAMLMessageContextAuthenticationFunction extends Object implements Function<MessageContext,Boolean>
Function that returns the authenticated state of a configuredAbstractAuthenticatableSAMLEntityContext, defaulting toSAMLPeerEntityContext.
-
-
Field Summary
Fields Modifier and Type Field Description private Class<? extends AbstractAuthenticatableSAMLEntityContext>entityContextClassThe context class representing the authenticatable SAML entity.
-
Constructor Summary
Constructors Constructor Description SAMLMessageContextAuthenticationFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(MessageContext input)voidsetEntityContextClass(Class<? extends AbstractAuthenticatableSAMLEntityContext> clazz)Set the class type holding the authenticatable SAML entity data.
-
-
-
Field Detail
-
entityContextClass
@Nonnull private Class<? extends AbstractAuthenticatableSAMLEntityContext> entityContextClass
The context class representing the authenticatable SAML entity. Defaults to:SAMLPeerEntityContext.
-
-
Method Detail
-
setEntityContextClass
public void setEntityContextClass(@Nonnull Class<? extends AbstractAuthenticatableSAMLEntityContext> clazz)Set the class type holding the authenticatable SAML entity data.Defaults to:
SAMLPeerEntityContext.- Parameters:
clazz- the entity context class type
-
apply
@Nullable public Boolean apply(@Nullable MessageContext input)
- Specified by:
applyin interfaceFunction<MessageContext,Boolean>
-
-