Class EisBackendPrincipal

  • All Implemented Interfaces:
    Serializable

    public class EisBackendPrincipal
    extends Object
    implements Serializable
    This a javabean class thatabstracts the backend principal. The backend principal consist of the userName and password which is used for authenticating/getting connection from the backend.
    Author:
    Srikanth P
    See Also:
    Serialized Form
    • Constructor Detail

      • EisBackendPrincipal

        public EisBackendPrincipal()
        Default constructor
      • EisBackendPrincipal

        public EisBackendPrincipal​(String userName,
                                   String password)
        Constructor
        Parameters:
        userName - UserName
        password - Password
    • Method Detail

      • setUserName

        public void setUserName​(String userName)
        Setter method for UserName property
        Parameters:
        userName - UserName
      • setPassword

        public void setPassword​(String password)
        Setter method for password property
        Parameters:
        password - Password
      • getUserName

        public String getUserName()
        Getter method for UserName property
        Returns:
        UserName
      • getPassword

        public String getPassword()
        Getter method for Password property
        Returns:
        Password
      • equals

        public boolean equals​(Object backendPrincipal)
        Overloaded method from "Object" class Checks the equality.
        Overrides:
        equals in class Object
        Parameters:
        backendPrincipal - Backend principal against which equality has to
        Returns:
        true if they are equal false if hey are not equal.
      • hashCode

        public int hashCode()
        Overloaded method from "Object" class Generates the hashcode
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for this object