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