Package org.trellisldp.auth.basic
Class Credentials
- java.lang.Object
-
- org.trellisldp.auth.basic.Credentials
-
public class Credentials extends Object
-
-
Constructor Summary
Constructors Constructor Description Credentials(String username, String password)Create a credentials object with username and password.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()Get the password value.StringgetUsername()Get the username value.static Credentialsparse(String encoded)Create a set of credentials.StringtoString()
-
-
-
Method Detail
-
getUsername
public String getUsername()
Get the username value.- Returns:
- the username value
-
getPassword
public String getPassword()
Get the password value.- Returns:
- the password
-
parse
public static Credentials parse(String encoded)
Create a set of credentials.- Parameters:
encoded- the encoded header- Returns:
- credentials or null on error
-
-