Class Alias


  • public final class Alias
    extends java.lang.Object
    Alias in a keystore.

    This object is simply a wrapper that holds the information required to access the appropriate certificate / private keys out of the keystore.

    • Constructor Summary

      Constructors 
      Constructor Description
      Alias()  
      Alias​(java.lang.String a)
      Constructor
      Alias​(java.lang.String a, char[] pw)  
      Alias​(java.lang.String a, java.lang.String pw)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAlias()
      The alias name.
      char[] getAliasPassword()
      The password if any associated with this alias in the keystore.
      void setKeyStoreAlias​(java.lang.String a, char[] pw)
      Set the keystore alias entry.
      void setKeyStoreAlias​(java.lang.String a, java.lang.String pw)
      Set the keystore alias entry.
      • Methods inherited from class java.lang.Object

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

      • Alias

        public Alias​(java.lang.String a,
                     java.lang.String pw)
        Constructor
        Parameters:
        a - the alias
        pw - the password
      • Alias

        public Alias​(java.lang.String a,
                     char[] pw)
        Parameters:
        a - the alias
        pw - the password
      • Alias

        public Alias​(java.lang.String a)
        Constructor
        Parameters:
        a - the alias
      • Alias

        public Alias()
    • Method Detail

      • setKeyStoreAlias

        public void setKeyStoreAlias​(java.lang.String a,
                                     java.lang.String pw)
        Set the keystore alias entry.
        Parameters:
        a - the alias
        pw - the password
      • setKeyStoreAlias

        public void setKeyStoreAlias​(java.lang.String a,
                                     char[] pw)
        Set the keystore alias entry.
        Parameters:
        a - the alias
        pw - the password
      • getAlias

        public java.lang.String getAlias()
        The alias name.
      • getAliasPassword

        public char[] getAliasPassword()
        The password if any associated with this alias in the keystore.