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
The Azure Key Vault variant of the X509ExtendedKeyManager.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias
(String[] keyType, Principal[] issuers, Socket socket) Choose client alias.chooseServerAlias
(String keyType, Principal[] issuers, Socket socket) Choose server alias.getCertificateChain
(String alias) Get certificate chain.String[]
getClientAliases
(String keyType, Principal[] issuers) Get client alias.getPrivateKey
(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 Details
-
KeyVaultKeyManager
Constructor.- Parameters:
keystore
- the keystorepassword
- the password
-
-
Method Details
-
chooseClientAlias
Choose client alias.- Parameters:
keyType
- the keyTypeissuers
- the issuerssocket
- the socket- Returns:
- alias the client alias
-
chooseServerAlias
Choose server alias.- Parameters:
keyType
- the keyTypeissuers
- the issuerssocket
- the socket- Returns:
- alias the server alias
-
getClientAliases
Get client alias.- Parameters:
keyType
- the keyTypeissuers
- the issuers- Returns:
- alias the client alias
-
getCertificateChain
Get certificate chain.- Parameters:
alias
- the alias- Returns:
- chain the certificate chain
-
getPrivateKey
Get private key.- Parameters:
alias
- the alias- Returns:
- privateKey the private key
-
getServerAliases
Get server alias.- Parameters:
keyType
- the keyTypeissuers
- the issuers- Returns:
- alias the server alias
-