Class BasicAuth

java.lang.Object
io.micronaut.http.BasicAuth

public final class BasicAuth extends Object
A class representing basic auth authorization header. Used in declarative clients and server routes.
Since:
1.3.0
Author:
Ashwini Mutalik Desai
  • Constructor Details

    • BasicAuth

      public BasicAuth(String username, String password)
      Parameters:
      username - The username
      password - The password
  • Method Details

    • getUsername

      public String getUsername()
      Returns:
      username
    • getPassword

      public String getPassword()
      Returns:
      password