Package com.azure.security.keyvault.jca
Class KeyVaultKeyManager
- java.lang.Object
-
- javax.net.ssl.X509ExtendedKeyManager
-
- com.azure.security.keyvault.jca.KeyVaultKeyManager
-
- All Implemented Interfaces:
KeyManager,X509KeyManager
public final class KeyVaultKeyManager extends X509ExtendedKeyManager
The Azure Key Vault variant of the X509ExtendedKeyManager.- See Also:
X509ExtendedKeyManager
-
-
Constructor Summary
Constructors Constructor Description KeyVaultKeyManager(KeyStore keystore, char[] password)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringchooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)Choose client alias.StringchooseServerAlias(String keyType, Principal[] issuers, Socket socket)Choose server alias.X509Certificate[]getCertificateChain(String alias)Get certificate chain.String[]getClientAliases(String keyType, Principal[] issuers)Get client alias.PrivateKeygetPrivateKey(String alias)Get private key.String[]getServerAliases(String keyType, Principal[] issuers)Get server alias.-
Methods inherited from class javax.net.ssl.X509ExtendedKeyManager
chooseEngineClientAlias, chooseEngineServerAlias
-
-
-
-
Constructor Detail
-
KeyVaultKeyManager
public KeyVaultKeyManager(KeyStore keystore, char[] password)
Constructor.- Parameters:
keystore- the keystorepassword- the password
-
-
Method Detail
-
chooseClientAlias
public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)
Choose client alias.- Parameters:
keyType- the keyTypeissuers- the issuerssocket- the socket- Returns:
- alias the client alias
-
chooseServerAlias
public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)
Choose server alias.- Parameters:
keyType- the keyTypeissuers- the issuerssocket- the socket- Returns:
- alias the server alias
-
getClientAliases
public String[] getClientAliases(String keyType, Principal[] issuers)
Get client alias.- Parameters:
keyType- the keyTypeissuers- the issuers- Returns:
- alias the client alias
-
getCertificateChain
public X509Certificate[] getCertificateChain(String alias)
Get certificate chain.- Parameters:
alias- the alias- Returns:
- chain the certificate chain
-
getPrivateKey
public PrivateKey getPrivateKey(String alias)
Get private key.- Parameters:
alias- the alias- Returns:
- privateKey the private key
-
-