public class SAMLMessageInfoContext extends BaseContext
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()
.
BaseContext.ContextSetNoRemoveIteratorDecorator
Modifier and Type | Field and Description |
---|---|
private DateTime |
issueInstant
The issue instant of the message.
|
private String |
messageId
The ID of the message.
|
Constructor and Description |
---|
SAMLMessageInfoContext() |
Modifier and Type | Method and Description |
---|---|
String |
getMessageId()
Gets the ID of the message.
|
DateTime |
getMessageIssueInstant()
Gets the issue instant of the message.
|
protected DateTime |
resolveIssueInstant()
Dynamically resolve the message issue instant from the SAML protocol message held in
MessageContext.getMessage() . |
protected String |
resolveMessageId()
Dynamically resolve the message ID from the SAML protocol message held in
MessageContext.getMessage() . |
protected SAMLObject |
resolveSAMLMessage()
Resolve the SAML message from the message context.
|
void |
setMessageId(String newMessageId)
Sets the ID of the message.
|
void |
setMessageIssueInstant(DateTime messageIssueInstant)
Sets the issue instant of the message.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@Nullable @NotEmpty public String getMessageId()
public void setMessageId(@Nullable String newMessageId)
newMessageId
- ID of the message@Nullable public DateTime getMessageIssueInstant()
public void setMessageIssueInstant(@Nullable DateTime messageIssueInstant)
messageIssueInstant
- issue instant of the message@Nullable protected String resolveMessageId()
MessageContext.getMessage()
.@Nullable protected DateTime resolveIssueInstant()
MessageContext.getMessage()
.@Nullable protected SAMLObject resolveSAMLMessage()
Copyright © 1999–2015 JBoss by Red Hat. All rights reserved.