Class X509AliasKeyManager

  • All Implemented Interfaces:,

    public class X509AliasKeyManager
    An X509ExtendedKeyManager wrapper which always chooses and only returns the given alias, and defers retrieval to the delegate key manager.
    • Constructor Summary

      Constructor Description
      X509AliasKeyManager​(java.lang.String alias, delegate)
      Creates a new alias manager with the provided configuration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String chooseClientAlias​(java.lang.String[] keyType,[] issuers, socket)  
      java.lang.String chooseEngineClientAlias​(java.lang.String[] keyType,[] issuers, engine)  
      java.lang.String chooseEngineServerAlias​(java.lang.String keyType,[] issuers, engine)  
      java.lang.String chooseServerAlias​(java.lang.String keyType,[] issuers, socket)[] getCertificateChain​(java.lang.String alias)  
      java.lang.String[] getClientAliases​(java.lang.String keyType,[] issuers) getPrivateKey​(java.lang.String alias)  
      java.lang.String[] getServerAliases​(java.lang.String keyType,[] issuers)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • X509AliasKeyManager

        public X509AliasKeyManager​(java.lang.String alias,
                            throws java.lang.IllegalArgumentException
        Creates a new alias manager with the provided configuration
        alias - The alias value to be used.
        delegate - A delegate that will be used by this manager instance.
        java.lang.IllegalArgumentException - if no alias is provided for this manager.
    • Method Detail

      • chooseClientAlias

        public java.lang.String chooseClientAlias​(java.lang.String[] keyType,
                                        [] issuers,
      • chooseServerAlias

        public java.lang.String chooseServerAlias​(java.lang.String keyType,
                                        [] issuers,
      • getCertificateChain

        public[] getCertificateChain​(java.lang.String alias)
      • getClientAliases

        public java.lang.String[] getClientAliases​(java.lang.String keyType,
                                         [] issuers)
      • getPrivateKey

        public getPrivateKey​(java.lang.String alias)
      • getServerAliases

        public java.lang.String[] getServerAliases​(java.lang.String keyType,
                                         [] issuers)
      • chooseEngineClientAlias

        public java.lang.String chooseEngineClientAlias​(java.lang.String[] keyType,
                                              [] issuers,
        chooseEngineClientAlias in class
      • chooseEngineServerAlias

        public java.lang.String chooseEngineServerAlias​(java.lang.String keyType,
                                              [] issuers,
        chooseEngineServerAlias in class