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 StringNAMEThe name of theBasicchallenge scheme.static CredentialsParser<BasicCredentials>PARSERThe parser forBasiccredentials.
-
Constructor Summary
Constructors Constructor Description BasicCredentials(String username, String password)Construct a new set ofBasicauthorization credentials.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()Get the password.StringgetUsername()Get the username.StringtoString()StringtoString(Charset charset)Get the string credentials in the specified charset.
-
-
-
Field Detail
-
NAME
public static final String NAME
The name of theBasicchallenge scheme.- See Also:
- Constant Field Values
-
PARSER
public static final CredentialsParser<BasicCredentials> PARSER
The parser forBasiccredentials.
-
-