de.deepamehta.core.service.accesscontrol
Class Credentials
java.lang.Object
de.deepamehta.core.service.accesscontrol.Credentials
public class Credentials
- extends Object
A pair of username and SHA256 encoded password.
ENCODED_PASSWORD_PREFIX
private static final String ENCODED_PASSWORD_PREFIX
- See Also:
- Constant Field Values
username
public String username
password
public String password
Credentials
public Credentials(String username,
String password)
- Parameters:
password
- as plain text
Credentials
public Credentials(org.codehaus.jettison.json.JSONObject cred)
- Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).
- Parameters:
cred
- A JSON object with 2 properties: "username" and "password".
The password is expected to be SHA256 encoded.
Credentials
public Credentials(String authHeader)
toString
public String toString()
- Overrides:
toString
in class Object
encodePassword
private String encodePassword(String password)
Copyright © 2015. All Rights Reserved.