Spring Security SAML

org.springframework.security.saml.trust
Class X509KeyManager

java.lang.Object
  extended by org.springframework.security.saml.trust.X509KeyManager
All Implemented Interfaces:
KeyManager, X509KeyManager

public class X509KeyManager
extends Object
implements X509KeyManager

Class can be used to initialize new SSL/TLS connections with client/server authentication. Uses a static credential for determining private key and certificate chain.


Constructor Summary
X509KeyManager(org.opensaml.xml.security.x509.X509Credential credential)
          Credential used for authentication of the server/client.
 
Method Summary
 String chooseClientAlias(String[] strings, Principal[] principals, Socket socket)
           
 String chooseServerAlias(String s, Principal[] principals, Socket socket)
           
 X509Certificate[] getCertificateChain(String s)
           
 String[] getClientAliases(String s, Principal[] principals)
           
 PrivateKey getPrivateKey(String s)
           
 String[] getServerAliases(String s, Principal[] principals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509KeyManager

public X509KeyManager(org.opensaml.xml.security.x509.X509Credential credential)
Credential used for authentication of the server/client.

Parameters:
credential - credential or null for manager returning always empty values
Method Detail

getClientAliases

public String[] getClientAliases(String s,
                                 Principal[] principals)
Specified by:
getClientAliases in interface X509KeyManager

chooseClientAlias

public String chooseClientAlias(String[] strings,
                                Principal[] principals,
                                Socket socket)
Specified by:
chooseClientAlias in interface X509KeyManager

getServerAliases

public String[] getServerAliases(String s,
                                 Principal[] principals)
Specified by:
getServerAliases in interface X509KeyManager

chooseServerAlias

public String chooseServerAlias(String s,
                                Principal[] principals,
                                Socket socket)
Specified by:
chooseServerAlias in interface X509KeyManager

getCertificateChain

public X509Certificate[] getCertificateChain(String s)
Specified by:
getCertificateChain in interface X509KeyManager

getPrivateKey

public PrivateKey getPrivateKey(String s)
Specified by:
getPrivateKey in interface X509KeyManager

Spring Security SAML