Class SingleClientCertKeyManager
- java.lang.Object
-
- step.repositories.jira.client.ssl.SingleClientCertKeyManager
-
- All Implemented Interfaces:
javax.net.ssl.KeyManager
,javax.net.ssl.X509KeyManager
public class SingleClientCertKeyManager extends java.lang.Object implements javax.net.ssl.X509KeyManager
-
-
Constructor Summary
Constructors Constructor Description SingleClientCertKeyManager(java.lang.String keystoreFilename, java.lang.String passwordBase64)
SingleClientCertKeyManager(java.security.KeyStore store, java.lang.String passwordB64)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
chooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)
java.lang.String
chooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)
static java.lang.String
decodeBase64(java.lang.String input)
java.security.cert.X509Certificate[]
getCertificateChain(java.lang.String alias)
java.lang.String[]
getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)
java.security.PrivateKey
getPrivateKey(java.lang.String alias)
java.lang.String[]
getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
-
-
-
Constructor Detail
-
SingleClientCertKeyManager
public SingleClientCertKeyManager(java.lang.String keystoreFilename, java.lang.String passwordBase64) throws java.lang.Exception
- Throws:
java.lang.Exception
-
SingleClientCertKeyManager
public SingleClientCertKeyManager(java.security.KeyStore store, java.lang.String passwordB64) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
decodeBase64
public static java.lang.String decodeBase64(java.lang.String input)
-
getClientAliases
public java.lang.String[] getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)
- Specified by:
getClientAliases
in interfacejavax.net.ssl.X509KeyManager
-
chooseClientAlias
public java.lang.String chooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)
- Specified by:
chooseClientAlias
in interfacejavax.net.ssl.X509KeyManager
-
getServerAliases
public java.lang.String[] getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
- Specified by:
getServerAliases
in interfacejavax.net.ssl.X509KeyManager
-
chooseServerAlias
public java.lang.String chooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)
- Specified by:
chooseServerAlias
in interfacejavax.net.ssl.X509KeyManager
-
getCertificateChain
public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String alias)
- Specified by:
getCertificateChain
in interfacejavax.net.ssl.X509KeyManager
-
getPrivateKey
public java.security.PrivateKey getPrivateKey(java.lang.String alias)
- Specified by:
getPrivateKey
in interfacejavax.net.ssl.X509KeyManager
-
-