Class KeyVaultKeyManager

    • Constructor Detail

      • KeyVaultKeyManager

        public KeyVaultKeyManager​(KeyStore keystore,
                                  char[] password)
        Constructor.
        Parameters:
        keystore - the keystore
        password - the password
    • Method Detail

      • 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