Spring Security SAML

org.springframework.security.saml.trust.httpclient
Class TLSProtocolConfigurer

java.lang.Object
  extended by org.springframework.security.saml.trust.httpclient.TLSProtocolConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class TLSProtocolConfigurer
extends Object
implements org.springframework.beans.factory.InitializingBean

Class initializes instance of TLSProtocolSocketFactory and registers is at one of the protocol inside HTTP Client. It also automatically makes the MetadataManager dependant on this bean.


Constructor Summary
TLSProtocolConfigurer()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the socket factory and registers it to the HTTP Client's protocol registry.
 void setKeyManager(KeyManager keyManager)
          Key manager includes all cryptography material for the SAML instance.
 void setProtocolName(String protocolName)
          Name of protocol (ID) to register to HTTP Client, https by default.
 void setProtocolPort(int protocolPort)
          Default port for protocol, 443 by default.
 void setSslHostnameVerification(String sslHostnameVerification)
          Hostname verifier to use for verification of SSL connections.
 void setTrustedKeys(Set<String> trustedKeys)
          When not set all certificates included in the keystore will be used as trusted certificate authorities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLSProtocolConfigurer

public TLSProtocolConfigurer()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Initializes the socket factory and registers it to the HTTP Client's protocol registry.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - error

setKeyManager

@Autowired
public void setKeyManager(KeyManager keyManager)
Key manager includes all cryptography material for the SAML instance.

Parameters:
keyManager - key manager

setSslHostnameVerification

public void setSslHostnameVerification(String sslHostnameVerification)
Hostname verifier to use for verification of SSL connections. Default value is "default", other supported options are "defaultAndLocalhost", "strict" and "allowAll".

Parameters:
sslHostnameVerification - hostname verification type flag

setTrustedKeys

public void setTrustedKeys(Set<String> trustedKeys)
When not set all certificates included in the keystore will be used as trusted certificate authorities. When specified, only keys with the defined aliases will be used for trust evaluation.

Parameters:
trustedKeys - trusted keys

setProtocolName

public void setProtocolName(String protocolName)
Name of protocol (ID) to register to HTTP Client, https by default.

Parameters:
protocolName - protocol

setProtocolPort

public void setProtocolPort(int protocolPort)
Default port for protocol, 443 by default.

Parameters:
protocolPort - port

Spring Security SAML