Class SAMLBindingContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.saml.common.messaging.context.SAMLBindingContext
- All Implemented Interfaces:
Iterable<BaseContext>
Context for holding information related to the SAML binding in use.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingDescriptor
The binding descriptor.private String
The binding URI.private boolean
Flag indicating whether the message is signed at the binding level.private boolean
Flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.private String
The relay state associated with the message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the SAML binding descriptor.Get the SAML binding URI.Gets the relay state.boolean
Get the flag indicating whether the message is signed at the binding level.boolean
Get the flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.void
setBindingDescriptor
(BindingDescriptor descriptor) Set the SAML binding descriptor.void
setBindingUri
(String newBindingUri) Set the SAML binding URI.void
setHasBindingSignature
(boolean flag) Set the flag indicating whether the message is signed at the binding level.void
setIntendedDestinationEndpointURIRequired
(boolean flag) Set the flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.void
setRelayState
(String state) Sets the relay state.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
-
relayState
The relay state associated with the message. -
bindingDescriptor
The binding descriptor. -
bindingUri
The binding URI. -
hasBindingSignature
private boolean hasBindingSignatureFlag indicating whether the message is signed at the binding level. -
isIntendedDestinationEndpointURIRequired
private boolean isIntendedDestinationEndpointURIRequiredFlag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.
-
-
Constructor Details
-
SAMLBindingContext
public SAMLBindingContext()
-
-
Method Details
-
getRelayState
Gets the relay state.- Returns:
- relay state associated with this protocol exchange, may be null
-
setRelayState
Sets the relay state.- Parameters:
state
- relay state associated with this protocol exchange
-
getBindingUri
Get the SAML binding URI.- Returns:
- Returns the bindingUri.
-
setBindingUri
Set the SAML binding URI.- Parameters:
newBindingUri
- the new binding URI
-
getBindingDescriptor
Get the SAML binding descriptor.- Returns:
- the descriptor
-
setBindingDescriptor
Set the SAML binding descriptor.- Parameters:
descriptor
- the new binding descriptor
-
hasBindingSignature
public boolean hasBindingSignature()Get the flag indicating whether the message is signed at the binding level.- Returns:
- true if message was signed at the binding level, otherwise false
-
setHasBindingSignature
public void setHasBindingSignature(boolean flag) Set the flag indicating whether the message is signed at the binding level.- Parameters:
flag
- true if message was signed at the binding level, otherwise false
-
isIntendedDestinationEndpointURIRequired
public boolean isIntendedDestinationEndpointURIRequired()Get the flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.- Returns:
- true if required, false otherwise
-
setIntendedDestinationEndpointURIRequired
public void setIntendedDestinationEndpointURIRequired(boolean flag) Set the flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.- Parameters:
flag
- true if required, false otherwise
-