Class ThreadLocalX509CredentialKeyManager
- java.lang.Object
-
- org.opensaml.security.x509.tls.impl.ThreadLocalX509CredentialKeyManager
-
- All Implemented Interfaces:
KeyManager,X509KeyManager
public class ThreadLocalX509CredentialKeyManager extends Object implements X509KeyManager
An implementation ofX509KeyManagerwhich returns data based on the thread-local credential instance obtained viaThreadLocalX509CredentialContext.
-
-
Field Summary
Fields Modifier and Type Field Description private StringinternalAliasThe alias representing the supplied static credential.private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description ThreadLocalX509CredentialKeyManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringchooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2)StringchooseServerAlias(String arg0, Principal[] arg1, Socket arg2)X509Certificate[]getCertificateChain(String arg0)String[]getClientAliases(String arg0, Principal[] arg1)PrivateKeygetPrivateKey(String arg0)String[]getServerAliases(String arg0, Principal[] arg1)
-
-
-
Field Detail
-
log
private org.slf4j.Logger log
Logger.
-
internalAlias
private String internalAlias
The alias representing the supplied static credential.
-
-
Method Detail
-
chooseClientAlias
public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2)
- Specified by:
chooseClientAliasin interfaceX509KeyManager
-
getClientAliases
public String[] getClientAliases(String arg0, Principal[] arg1)
- Specified by:
getClientAliasesin interfaceX509KeyManager
-
getCertificateChain
public X509Certificate[] getCertificateChain(String arg0)
- Specified by:
getCertificateChainin interfaceX509KeyManager
-
getPrivateKey
public PrivateKey getPrivateKey(String arg0)
- Specified by:
getPrivateKeyin interfaceX509KeyManager
-
chooseServerAlias
public String chooseServerAlias(String arg0, Principal[] arg1, Socket arg2)
- Specified by:
chooseServerAliasin interfaceX509KeyManager
-
getServerAliases
public String[] getServerAliases(String arg0, Principal[] arg1)
- Specified by:
getServerAliasesin interfaceX509KeyManager
-
-