public class Credentials extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
ENCODED_PASSWORD_PREFIX |
String |
methodName |
String |
password |
String |
plaintextPassword |
String |
username |
Constructor and Description |
---|
Credentials(org.codehaus.jettison.json.JSONObject cred)
Used to create an user account programmatically (via Webclient).
|
Credentials(String authHeader)
Used to authorize a request.
|
Credentials(String username,
String password)
Used to create an user account programmatically (via migration).
|
private static final String ENCODED_PASSWORD_PREFIX
public String plaintextPassword
public String methodName
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 © 2018. All Rights Reserved.