public class Credentials extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
ENCODED_PASSWORD_PREFIX |
String |
password |
String |
username |
Constructor and Description |
---|
Credentials(org.codehaus.jettison.json.JSONObject cred)
Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).
|
Credentials(String authHeader) |
Credentials(String username,
String password) |
private static final String ENCODED_PASSWORD_PREFIX
public Credentials(String username, String password)
password
- as plain textpublic Credentials(org.codehaus.jettison.json.JSONObject cred)
cred
- A JSON object with 2 properties: "username" and "password".
The password is expected to be SHA256 encoded.public Credentials(String authHeader)
Copyright © 2016. All Rights Reserved.