Interface UserCredentials


public interface UserCredentials
Represents the credentials a user and password for authentication purposes.
Author:
James R. Perkins
  • Method Summary

    Modifier and Type
    Method
    Description
    clear(String username, char[] password)
    Creates a user credential for the username and password provided.
    byte[]
    A byte array which represents the password for authentication.
    The username used for authentication.
    of(String username, byte[] password)
    Creates a user credential for the username and password provided.
  • Method Details

    • getUsername

      String getUsername()
      The username used for authentication.
      Returns:
      the username
    • getPassword

      byte[] getPassword()
      A byte array which represents the password for authentication.
      Returns:
      the password
    • clear

      static UserCredentials clear(String username, char[] password)
      Creates a user credential for the username and password provided.
      Parameters:
      username - the username used for authentication
      password - the password used for authentication
      Returns:
      the user credentials
    • of

      static UserCredentials of(String username, byte[] password)
      Creates a user credential for the username and password provided.
      Parameters:
      username - the username used for authentication
      password - the password used for authentication
      Returns:
      the user credentials