Class SAMLAuthnContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.saml.saml2.profile.impl.SAMLAuthnContext
- All Implemented Interfaces:
Iterable<BaseContext>
Manages state during proxied SAML authentication.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AuthnStatementAuthentication statement.private Function<String,MessageDecoder> The function to use to obtain a decoder.private ProfileActionProfile action to execute to produce outbound message response.private MessageHandlerOutbound message handler to run prior to encoding.private SubjectSubject of assertion used to authenticate. -
Constructor Summary
ConstructorsConstructorDescriptionSAMLAuthnContext(ProfileAction action, Function<String, MessageDecoder> factory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the SAMLAuthnStatementfrom the authentication.Get the message-encoding profile action.Get the factory function to obtain message decoders.Get the outboundMessageHandlerto run prior to encoding.Get the SAMLSubjectfrom the authentication.setAuthnStatement(AuthnStatement statement) Set the SAMLAuthnStatementfrom the authentication.setOutboundMessageHandler(MessageHandler handler) Set the outboundMessageHandlerto run prior to encoding.setSubject(Subject sub) Set the SAMLSubjectfrom the authentication.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
outboundMessageHandler
Outbound message handler to run prior to encoding. -
encodeMessageAction
Profile action to execute to produce outbound message response. -
decoderFactory
The function to use to obtain a decoder. -
subject
Subject of assertion used to authenticate. -
authnStatement
Authentication statement.
-
-
Constructor Details
-
SAMLAuthnContext
public SAMLAuthnContext(@Nonnull ProfileAction action, @Nonnull Function<String, MessageDecoder> factory) Constructor.- Parameters:
action- message-encoding profile actionfactory- factory function to obtain decoders
-
-
Method Details
-
getEncodeMessageAction
Get the message-encoding profile action.- Returns:
- profile action
-
getMessageDecoderFactory
Get the factory function to obtain message decoders.- Returns:
- factory function
-
getOutboundMessageHandler
Get the outboundMessageHandlerto run prior to encoding.- Returns:
- the outbound
MessageHandler
-
setOutboundMessageHandler
Set the outboundMessageHandlerto run prior to encoding.- Parameters:
handler- outboundMessageHandlerto set- Returns:
- this context
-
getSubject
Get the SAMLSubjectfrom the authentication.- Returns:
- SAML
Subject
-
setSubject
Set the SAMLSubjectfrom the authentication.- Parameters:
sub- the SAMLSubject- Returns:
- this context
-
getAuthnStatement
Get the SAMLAuthnStatementfrom the authentication.- Returns:
- SAML
AuthnStatement
-
setAuthnStatement
Set the SAMLAuthnStatementfrom the authentication.- Parameters:
statement- the SAMLAuthnStatement- Returns:
- this context
-