Class BasicCredentials
- java.lang.Object
-
- org.forgerock.http.header.authorization.BasicCredentials
-
public class BasicCredentials extends Object
A rich representation of basic credentials.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
The name of theBasic
challenge scheme.static CredentialsParser<BasicCredentials>
PARSER
The parser forBasic
credentials.
-
Constructor Summary
Constructors Constructor Description BasicCredentials(String username, String password)
Construct a new set ofBasic
authorization credentials.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
Get the password.String
getUsername()
Get the username.String
toString()
String
toString(Charset charset)
Get the string credentials in the specified charset.
-
-
-
Field Detail
-
NAME
public static final String NAME
The name of theBasic
challenge scheme.- See Also:
- Constant Field Values
-
PARSER
public static final CredentialsParser<BasicCredentials> PARSER
The parser forBasic
credentials.
-
-