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:
  • 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
    • getClientAliases

      public String[] getClientAliases(String keyType, Principal[] issuers)
      Get client alias.
      Parameters:
      keyType - the keyType
      issuers - 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
    • getServerAliases

      public String[] getServerAliases(String keyType, Principal[] issuers)
      Get server alias.
      Parameters:
      keyType - the keyType
      issuers - the issuers
      Returns:
      alias the server alias