Class Credentials


  • public class Credentials
    extends Object
    • Constructor Detail

      • Credentials

        public Credentials​(String username,
                           String password)
        Create a credentials object with username and password.
        Parameters:
        username - the username
        password - the password
    • Method Detail

      • getUsername

        public String getUsername()
        Get the username value.
        Returns:
        the username value
      • getPassword

        public String getPassword()
        Get the password value.
        Returns:
        the password
      • parse

        public static Credentials parse​(String encoded)
        Create a set of credentials.
        Parameters:
        encoded - the encoded header
        Returns:
        credentials or null on error