Spring Security SAML

org.springframework.security.saml.processor
Class HTTPPostBinding

java.lang.Object
  extended by org.springframework.security.saml.processor.SAMLBindingImpl
      extended by org.springframework.security.saml.processor.HTTPPostBinding
All Implemented Interfaces:
SAMLBinding

public class HTTPPostBinding
extends SAMLBindingImpl

Http POST binding.

Author:
Mandus Elfving

Field Summary
protected  org.opensaml.xml.parse.ParserPool parserPool
          Pool for message deserializers.
 
Constructor Summary
HTTPPostBinding(org.opensaml.xml.parse.ParserPool parserPool, org.opensaml.ws.message.decoder.MessageDecoder decoder, org.opensaml.ws.message.encoder.MessageEncoder encoder)
          Implementation of the binding with custom encoder and decoder.
HTTPPostBinding(org.opensaml.xml.parse.ParserPool parserPool, org.apache.velocity.app.VelocityEngine velocityEngine)
          Creates default implementation of the binding.
 
Method Summary
 String getBindingURI()
          Binding identifier.
 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.
 
Methods inherited from class org.springframework.security.saml.processor.SAMLBindingImpl
getMessageDecoder, getMessageEncoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parserPool

protected org.opensaml.xml.parse.ParserPool parserPool
Pool for message deserializers.

Constructor Detail

HTTPPostBinding

public HTTPPostBinding(org.opensaml.xml.parse.ParserPool parserPool,
                       org.apache.velocity.app.VelocityEngine velocityEngine)
Creates default implementation of the binding.

Parameters:
parserPool - parserPool for message deserialization
velocityEngine - engine for message formatting

HTTPPostBinding

public HTTPPostBinding(org.opensaml.xml.parse.ParserPool parserPool,
                       org.opensaml.ws.message.decoder.MessageDecoder decoder,
                       org.opensaml.ws.message.encoder.MessageEncoder encoder)
Implementation of the binding with custom encoder and decoder.

Parameters:
parserPool - parserPool for message deserialization
decoder - custom decoder implementation
encoder - custom encoder implementation
Method Detail

supports

public boolean supports(org.opensaml.ws.transport.InTransport transport)
Description copied from interface: SAMLBinding
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

public boolean supports(org.opensaml.ws.transport.OutTransport transport)
Description copied from interface: SAMLBinding
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

getBindingURI

public String getBindingURI()
Description copied from interface: SAMLBinding
Binding identifier.

Returns:
identifier

getSecurityPolicy

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

Specified by:
getSecurityPolicy in interface SAMLBinding
Overrides:
getSecurityPolicy in class SAMLBindingImpl
Parameters:
securityPolicy - storage for created policies
samlContext - processed context

Spring Security SAML