Class SAMLBinding
- java.lang.Object
-
- org.nuxeo.ecm.platform.auth.saml.binding.SAMLBinding
-
- Direct Known Subclasses:
HTTPPostBinding,HTTPRedirectBinding
public abstract class SAMLBinding extends Object
Based class for SAML bindings, used for parsing messages.- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.opensaml.ws.message.decoder.MessageDecoderdecoderprotected org.opensaml.ws.message.encoder.MessageEncoderencoderstatic org.opensaml.common.binding.decoding.URIComparatoruriComparatorURIComparator that strips scheme to avoid issues with reverse proxies
-
Constructor Summary
Constructors Constructor Description SAMLBinding(org.opensaml.ws.message.decoder.MessageDecoder decoder, org.opensaml.ws.message.encoder.MessageEncoder encoder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddecode(org.opensaml.ws.message.MessageContext context)Decodes the given message.voidencode(org.opensaml.ws.message.MessageContext context)Encodes the given message.abstract StringgetBindingURI()Returns the URI that identifies this binding.abstract booleansupports(org.opensaml.ws.transport.InTransport transport)Checks if this binding can be used to extract the message from the request.abstract booleansupports(org.opensaml.ws.transport.OutTransport transport)Checks if this binding can use the given transport to send a message
-
-
-
Field Detail
-
decoder
protected org.opensaml.ws.message.decoder.MessageDecoder decoder
-
encoder
protected org.opensaml.ws.message.encoder.MessageEncoder encoder
-
uriComparator
public static final org.opensaml.common.binding.decoding.URIComparator uriComparator
URIComparator that strips scheme to avoid issues with reverse proxies
-
-
Method Detail
-
decode
public void decode(org.opensaml.ws.message.MessageContext context) throws org.opensaml.xml.security.SecurityException, org.opensaml.ws.message.decoder.MessageDecodingExceptionDecodes the given message.- Parameters:
context- the message to decode- Throws:
org.opensaml.xml.security.SecurityExceptionorg.opensaml.ws.message.decoder.MessageDecodingException
-
encode
public void encode(org.opensaml.ws.message.MessageContext context) throws org.opensaml.ws.message.encoder.MessageEncodingExceptionEncodes the given message.- Parameters:
context- the message to encode- Throws:
org.opensaml.ws.message.encoder.MessageEncodingException
-
getBindingURI
public abstract String getBindingURI()
Returns the URI that identifies this binding.- Returns:
- the URI
-
supports
public abstract boolean supports(org.opensaml.ws.transport.InTransport transport)
Checks if this binding can be used to extract the message from the request.- Returns:
- true if this binding supports the transport
-
supports
public abstract boolean supports(org.opensaml.ws.transport.OutTransport transport)
Checks if this binding can use the given transport to send a message- Returns:
- true if this binding supports the transport
-
-