Class HttpCredentialsImpl
- java.lang.Object
-
- net.officefloor.web.security.scheme.HttpCredentialsImpl
-
- All Implemented Interfaces:
HttpCredentials
public class HttpCredentialsImpl extends java.lang.Object implements HttpCredentials
HttpCredentials
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpCredentialsImpl(java.lang.String username, byte[] password)
Initiate.HttpCredentialsImpl(java.lang.String username, java.lang.String password)
Convenience constructor for providing aString
password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getPassword()
Obtains the password.java.lang.String
getUsername()
Obtains the username.
-
-
-
Constructor Detail
-
HttpCredentialsImpl
public HttpCredentialsImpl(java.lang.String username, byte[] password)
Initiate.- Parameters:
username
- Username.password
- Password.
-
HttpCredentialsImpl
public HttpCredentialsImpl(java.lang.String username, java.lang.String password)
Convenience constructor for providing aString
password.- Parameters:
username
- Username.password
- Password.
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Description copied from interface:HttpCredentials
Obtains the username.- Specified by:
getUsername
in interfaceHttpCredentials
- Returns:
- Username.
-
getPassword
public byte[] getPassword()
Description copied from interface:HttpCredentials
Obtains the password.- Specified by:
getPassword
in interfaceHttpCredentials
- Returns:
- Password.
-
-