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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AuthnStatement
Authentication statement.private Function<String,
MessageDecoder> The function to use to obtain a decoder.private ProfileAction
Profile action to execute to produce outbound message response.private MessageHandler
Outbound message handler to run prior to encoding.private Subject
Subject of assertion used to authenticate. -
Constructor Summary
ConstructorsConstructorDescriptionSAMLAuthnContext
(ProfileAction action, Function<String, MessageDecoder> factory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the SAMLAuthnStatement
from the authentication.Get the message-encoding profile action.Get the factory function to obtain message decoders.Get the outboundMessageHandler
to run prior to encoding.Get the SAMLSubject
from the authentication.setAuthnStatement
(AuthnStatement statement) Set the SAMLAuthnStatement
from the authentication.setOutboundMessageHandler
(MessageHandler handler) Set the outboundMessageHandler
to run prior to encoding.setSubject
(Subject sub) Set the SAMLSubject
from the authentication.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 outboundMessageHandler
to run prior to encoding.- Returns:
- the outbound
MessageHandler
-
setOutboundMessageHandler
Set the outboundMessageHandler
to run prior to encoding.- Parameters:
handler
- outboundMessageHandler
to set- Returns:
- this context
-
getSubject
Get the SAMLSubject
from the authentication.- Returns:
- SAML
Subject
-
setSubject
Set the SAMLSubject
from the authentication.- Parameters:
sub
- the SAMLSubject
- Returns:
- this context
-
getAuthnStatement
Get the SAMLAuthnStatement
from the authentication.- Returns:
- SAML
AuthnStatement
-
setAuthnStatement
Set the SAMLAuthnStatement
from the authentication.- Parameters:
statement
- the SAMLAuthnStatement
- Returns:
- this context
-