Class AuthenticationInfo

java.lang.Object
com.sun.enterprise.admin.util.AuthenticationInfo

public final class AuthenticationInfo extends Object
A class that holds the user and password for the connection to the server. Used by the HttpConnectorAddress class. Instances of this class are immutable.
  • Constructor Details

    • AuthenticationInfo

      public AuthenticationInfo(String user, char[] password)
      The only way to construct the instances of this class.
      Parameters:
      user - the user name for the connection
      password - the clear text password for the connection
  • Method Details

    • getUser

      public String getUser()
      Returns the user name.
      Returns:
      String
    • getPassword

      public char[] getPassword()
      Returns the password in clear text.
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object