Class Credentials

java.lang.Object
com.caplin.credentials.Credentials

public class Credentials extends Object

Contains the username and token (or password) to be used to login to a Liberator or other remote Caplin server.

  • Constructor Details

    • Credentials

      public Credentials(String username, String token)
      Creates an instance of Credentials with the specified username and token.
      Parameters:
      username - The uesrname to be used to login.
      token - The token (or password) to be used to login.
      Throws:
      IllegalArgumentException - If either the username or token arguments are null.
  • Method Details

    • getUsername

      public final String getUsername()
      Gets the username to be used to login.
      Returns:
      The username to be used to login.
    • getToken

      public final String getToken()
      The token (or password) to be used to login.
      Returns:
      The token (or password) to be used to login.
    • toString

      public String toString()
      Overrides:
      toString in class Object