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 org.joda.time.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.
|
org.joda.time.DateTime |
getMessageIssueInstant()
Gets the issue instant of the message.
|
protected org.joda.time.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(org.joda.time.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
@Nullable private org.joda.time.DateTime issueInstant
@Nullable @NotEmpty public String getMessageId()
public void setMessageId(@Nullable String newMessageId)
newMessageId
- ID of the message@Nullable public org.joda.time.DateTime getMessageIssueInstant()
public void setMessageIssueInstant(@Nullable org.joda.time.DateTime messageIssueInstant)
messageIssueInstant
- issue instant of the message@Nullable protected String resolveMessageId()
MessageContext.getMessage()
.@Nullable protected org.joda.time.DateTime resolveIssueInstant()
MessageContext.getMessage()
.@Nullable protected SAMLObject resolveSAMLMessage()
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.