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 configured
AbstractAuthenticatableSAMLEntityContext
,
defaulting to SAMLPeerEntityContext
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<? extends AbstractAuthenticatableSAMLEntityContext>
The context class representing the authenticatable SAML entity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(MessageContext input) void
setEntityContextClass
(Class<? extends AbstractAuthenticatableSAMLEntityContext> clazz) Set the class type holding the authenticatable SAML entity data.
-
Field Details
-
entityContextClass
The context class representing the authenticatable SAML entity. Defaults to:SAMLPeerEntityContext
.
-
-
Constructor Details
-
SAMLMessageContextAuthenticationFunction
public SAMLMessageContextAuthenticationFunction()
-
-
Method Details
-
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
- Specified by:
apply
in interfaceFunction<MessageContext,
Boolean>
-