Class MockCredentials
- java.lang.Object
-
- net.officefloor.web.security.scheme.MockCredentials
-
public class MockCredentials extends java.lang.Object
Mock credentials.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MockCredentials(java.lang.String userName, java.lang.String password, java.lang.String... roles)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPassword()
Obtains the password.java.lang.String[]
getRoles()
Obtain the roles.java.lang.String
getUserName()
Obtains the user name.MockHttpRequestBuilder
loadHttpRequest(MockHttpRequestBuilder request)
Loads theMockHttpRequestBuilder
with the credentials.
-
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
Obtains the user name.- Returns:
- User name.
-
getPassword
public java.lang.String getPassword()
Obtains the password.- Returns:
- Password.
-
getRoles
public java.lang.String[] getRoles()
Obtain the roles.- Returns:
- Roles.
-
loadHttpRequest
public MockHttpRequestBuilder loadHttpRequest(MockHttpRequestBuilder request)
Loads theMockHttpRequestBuilder
with the credentials.- Parameters:
request
-MockHttpRequestBuilder
.- Returns:
- Input
MockHttpRequestBuilder
.
-
-