Class MockAccessControl
- java.lang.Object
-
- net.officefloor.web.security.scheme.MockAccessControl
-
- All Implemented Interfaces:
java.io.Serializable
public class MockAccessControl extends java.lang.Object implements java.io.Serializable
Mock access control.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MockAccessControl(java.lang.String userName, java.lang.String... roles)
Instantiate.MockAccessControl(MockCredentials credentials)
Instantiate fromMockCredentials
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAuthenticationScheme()
Obtains the authentication scheme.java.util.Set<java.lang.String>
getRoles()
Obtains the roles.java.lang.String
getUserName()
Obtains the user name.
-
-
-
Constructor Detail
-
MockAccessControl
public MockAccessControl(java.lang.String userName, java.lang.String... roles)
Instantiate.- Parameters:
userName
- User name.roles
- Roles.
-
MockAccessControl
public MockAccessControl(MockCredentials credentials)
Instantiate fromMockCredentials
.- Parameters:
credentials
-MockCredentials
.
-
-
Method Detail
-
getAuthenticationScheme
public java.lang.String getAuthenticationScheme()
Obtains the authentication scheme.- Returns:
- Authentication scheme.
-
getUserName
public java.lang.String getUserName()
Obtains the user name.- Returns:
- User name.
-
getRoles
public java.util.Set<java.lang.String> getRoles()
Obtains the roles.- Returns:
- Roles.
-
-