Class HttpAuthenticationFilter.Credentials

java.lang.Object
org.glassfish.jersey.client.authentication.HttpAuthenticationFilter.Credentials
Enclosing class:
HttpAuthenticationFilter

static class HttpAuthenticationFilter.Credentials extends Object
Credentials (username + password).
  • Field Details

    • username

      private final String username
    • password

      private final byte[] password
  • Constructor Details

    • Credentials

      Credentials(String username, byte[] password)
      Create a new credentials from username and password as byte array.
      Parameters:
      username - Username.
      password - Password as byte array.
    • Credentials

      Credentials(String username, String password)
      Create a new credentials from username and password as String.
      Parameters:
      username - Username.
      password - String password.
  • Method Details

    • getUsername

      String getUsername()
      Return username.
      Returns:
      username.
    • getPassword

      byte[] getPassword()
      Return password as byte array.
      Returns:
      Password string in byte array representation.