Class SAMLMessageInfoContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.saml.common.messaging.context.SAMLMessageInfoContext
- All Implemented Interfaces:
Iterable<BaseContext>
A context intended to be used as a subcontext of a
MessageContext that carries
some basic information about the SAML message.
The methods getMessageId() and getMessageIssueInstant() will attempt to
dynamically resolve the appropriate data from the SAML message held in the message context
if the data has not been set statically by the corresponding setter method. This evaluation
will be attempted only if the this context instance is an immediate child of the message context,
as returned by BaseContext.getParent().
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ID of the message.Gets the issue instant of the message.protected InstantDynamically resolve the message issue instant from the SAML protocol message held inMessageContext.getMessage().protected StringDynamically resolve the message ID from the SAML protocol message held inMessageContext.getMessage().protected SAMLObjectResolve the SAML message from the message context.voidsetMessageId(String newMessageId) Sets the ID of the message.voidsetMessageIssueInstant(Instant messageIssueInstant) Sets the issue instant of the message.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
-
messageId
The ID of the message. -
issueInstant
The issue instant of the message.
-
-
Constructor Details
-
SAMLMessageInfoContext
public SAMLMessageInfoContext()
-
-
Method Details
-
getMessageId
Gets the ID of the message.- Returns:
- ID of the message, may be null
-
setMessageId
Sets the ID of the message.- Parameters:
newMessageId- ID of the message
-
getMessageIssueInstant
Gets the issue instant of the message.- Returns:
- issue instant of the message
-
setMessageIssueInstant
Sets the issue instant of the message.- Parameters:
messageIssueInstant- issue instant of the message
-
resolveMessageId
Dynamically resolve the message ID from the SAML protocol message held inMessageContext.getMessage().- Returns:
- the message ID, or null if it can not be resolved
-
resolveIssueInstant
Dynamically resolve the message issue instant from the SAML protocol message held inMessageContext.getMessage().- Returns:
- the message issue instant, or null if it can not be resolved
-
resolveSAMLMessage
Resolve the SAML message from the message context.- Returns:
- the SAML message, or null if it can not be resolved
-