Class Credentials


  • public class Credentials
    extends java.lang.Object
    Class that provides the security parameters for authorization.
    • Constructor Summary

      Constructors 
      Constructor Description
      Credentials()  
      Credentials​(java.lang.String userId, java.lang.String password)
      Creates an instance of the Credentials.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPassword()
      Gets the password for the credentials.
      java.lang.String getUserID()
      Gets the user id for the credentials.
      void setPassword​(java.lang.String value)
      Sets the password for the credentials.
      void setUserID​(java.lang.String value)
      Sets the user id for the credentials.
      • Methods inherited from class java.lang.Object

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

      • Credentials

        public Credentials()
      • Credentials

        public Credentials​(java.lang.String userId,
                           java.lang.String password)
        Creates an instance of the Credentials.
        Parameters:
        userId - User id used to authenticate the user.
        password - Password used to authenticate the user.
    • Method Detail

      • getUserID

        public java.lang.String getUserID()
        Gets the user id for the credentials.
        Returns:
        The user-id in form of a string.
      • setUserID

        public void setUserID​(java.lang.String value)
        Sets the user id for the credentials.
        Parameters:
        value - The user-id in form of a string.
      • getPassword

        public java.lang.String getPassword()
        Gets the password for the credentials.
        Returns:
        The password in form of a string.
      • setPassword

        public void setPassword​(java.lang.String value)
        Sets the password for the credentials.
        Parameters:
        value - The password in form of a string.