Package javax.net.ssl

Class X509ExtendedKeyManager

    • Constructor Detail

      • X509ExtendedKeyManager

        protected X509ExtendedKeyManager()
        To be used by subclasses only.

        Creates a new X509ExtendedKeyManager instance.

    • Method Detail

      • chooseEngineClientAlias

        public String chooseEngineClientAlias​(String[] keyType,
                                              Principal[] issuers,
                                              SSLEngine engine)
        Chooses an alias for the client side of an SSL connection to authenticate it with the specified public key type and certificate issuers.
        Parameters:
        keyType - the list of public key algorithm names.
        issuers - the list of certificate issuers, or null if any issuer will do.
        engine - the SSLEngine for the connection, or null if no engine is predefined.
        Returns:
        the alias name of a matching key or null if there are no matches.
      • chooseEngineServerAlias

        public String chooseEngineServerAlias​(String keyType,
                                              Principal[] issuers,
                                              SSLEngine engine)
        Chooses an alias for the server side of an SSL connection to authenticate it with the specified public key type and certificate issuers.
        Parameters:
        keyType - the list of public key algorithm names.
        issuers - the list of certificate issuers, or null if any issuer will do.
        engine - the SSLEngine for the connection, or null if no engine is predefined.
        Returns:
        the alias name of a matching key or null if there are no matches.