Spring Security SAML

org.springframework.security.saml.processor
Class HTTPArtifactBinding

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

public class HTTPArtifactBinding
extends SAMLBindingImpl

Http artifact binding.

Author:
Mandus Elfving, Vladimir Schaefer

Constructor Summary
HTTPArtifactBinding(org.opensaml.ws.message.decoder.MessageDecoder decoder, org.opensaml.ws.message.encoder.MessageEncoder encoder)
          Implementation of the binding with custom encoder and decoder.
HTTPArtifactBinding(org.opensaml.xml.parse.ParserPool parserPool, org.apache.velocity.app.VelocityEngine velocityEngine, ArtifactResolutionProfile artifactProfile)
          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
 

Constructor Detail

HTTPArtifactBinding

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

Parameters:
parserPool - parserPool for message deserialization
velocityEngine - engine for message formatting
artifactProfile - profile used to retrieven the artifact message

HTTPArtifactBinding

public HTTPArtifactBinding(org.opensaml.ws.message.decoder.MessageDecoder decoder,
                           org.opensaml.ws.message.encoder.MessageEncoder encoder)
Implementation of the binding with custom encoder and decoder.

Parameters:
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