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, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingDescriptorThe binding descriptor.private StringThe binding URI.private booleanFlag indicating whether the message is signed at the binding level.private booleanFlag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.private StringThe 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.booleanGet the flag indicating whether the message is signed at the binding level.booleanGet the flag indicating whether the binding in use requires the presence within the message of information indicating the intended message destination endpoint URI.voidsetBindingDescriptor(BindingDescriptor descriptor) Set the SAML binding descriptor.voidsetBindingUri(String newBindingUri) Set the SAML binding URI.voidsetHasBindingSignature(boolean flag) Set the flag indicating whether the message is signed at the binding level.voidsetIntendedDestinationEndpointURIRequired(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.voidsetRelayState(String state) Sets the relay state.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
-
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
-