Spring Security SAML

org.springframework.security.saml.processor
Interface SAMLBinding

All Known Implementing Classes:
HTTPArtifactBinding, HTTPPAOS11Binding, HTTPPostBinding, HTTPRedirectDeflateBinding, HTTPSOAP11Binding, SAMLBindingImpl

public interface SAMLBinding

Implementation describes a single binding usable for parsing of a SAML message.

Author:
Mandus Elfving

Method Summary
 String getBindingURI()
          Binding identifier.
 org.opensaml.ws.message.decoder.MessageDecoder getMessageDecoder()
          Creates decoder capable of parsing message with the given binding
 org.opensaml.ws.message.encoder.MessageEncoder getMessageEncoder()
          Creates encoder capable of creating messages to be sent using given bindidn.
 void getSecurityPolicy(List<org.opensaml.ws.security.SecurityPolicyRule> securityPolicy, SAMLMessageContext samlContext)
          Security rules to apply for incoming SAML messages received using the binding.
 boolean supports(org.opensaml.ws.transport.InTransport transport)
          Checks whether current binding can be used to extract SAML message from the request.
 boolean supports(org.opensaml.ws.transport.OutTransport transport)
          Checks whether current binding can be used to send a message using given transport.
 

Method Detail

supports

boolean supports(org.opensaml.ws.transport.InTransport transport)
Checks whether current binding can be used to extract SAML message from the request.

Parameters:
transport - verify whether this binding supports given transport mechanism
Returns:
true if this binding can be used to parse SAML message

supports

boolean supports(org.opensaml.ws.transport.OutTransport transport)
Checks whether current binding can be used to send a message using given transport.

Parameters:
transport - verify whether this binding supports given transport mechanism
Returns:
true if this binding can be used to send message over the transport

getMessageDecoder

org.opensaml.ws.message.decoder.MessageDecoder getMessageDecoder()
Creates decoder capable of parsing message with the given binding

Returns:
instance of the decoder

getMessageEncoder

org.opensaml.ws.message.encoder.MessageEncoder getMessageEncoder()
Creates encoder capable of creating messages to be sent using given bindidn.

Returns:
encoder

getBindingURI

String getBindingURI()
Binding identifier.

Returns:
identifier

getSecurityPolicy

void getSecurityPolicy(List<org.opensaml.ws.security.SecurityPolicyRule> securityPolicy,
                       SAMLMessageContext samlContext)
Security rules to apply for incoming SAML messages received using the binding.

Parameters:
securityPolicy - storage for created policies
samlContext - processed context

Spring Security SAML