KeyVaultKeyManager Class

  • java.lang.Object
    • javax.net.ssl.X509ExtendedKeyManager
      • com.azure.security.keyvault.jca.KeyVaultKeyManager

public final class KeyVaultKeyManager
extends X509ExtendedKeyManager

The Azure Key Vault variant of the X509ExtendedKeyManager.

Methods inherited from java.lang.Object

Methods inherited from javax.net.ssl.X509ExtendedKeyManager

Constructor Details

KeyVaultKeyManager

public KeyVaultKeyManager(KeyStore keystore, char[] password)

Constructor.

Parameters:

keystore - the keystore
password - the password

Method Details

chooseClientAlias

public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket)

Choose client alias.

Parameters:

keyType - the keyType
issuers - the issuers
socket - the socket

Returns:

alias the client alias

chooseServerAlias

public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket)

Choose server alias.

Parameters:

keyType - the keyType
issuers - the issuers
socket - the socket

Returns:

alias the server alias

getCertificateChain

public X509Certificate[] getCertificateChain(String alias)

Get certificate chain.

Parameters:

alias - the alias

Returns:

chain the certificate chain

getClientAliases

public String[] getClientAliases(String keyType, Principal[] issuers)

Get client alias.

Parameters:

keyType - the keyType
issuers - the issuers

Returns:

alias the client alias

getPrivateKey

public PrivateKey getPrivateKey(String alias)

Get private key.

Parameters:

alias - the alias

Returns:

privateKey the private key

getServerAliases

public String[] getServerAliases(String keyType, Principal[] issuers)

Get server alias.

Parameters:

keyType - the keyType
issuers - the issuers

Returns:

alias the server alias

Applies to