Class HttpAccessControlImpl
java.lang.Object
net.officefloor.web.security.scheme.HttpAccessControlImpl
- All Implemented Interfaces:
Serializable,HttpAccessControl
HttpAccessControl implementation.- Author:
- Daniel Sagenschneider
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the authentication scheme used.Obtains thePrincipal.booleanIndicates if within role.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.web.security.HttpAccessControl
isAccess
-
Constructor Details
-
HttpAccessControlImpl
Initiate.- Parameters:
authenticationScheme- Authentication scheme.principal-Principal.roles- Roles for the user.
-
HttpAccessControlImpl
Initiate with simplePrincipal.- Parameters:
authenticationScheme- Authentication scheme.principalName-Principalname.roles- Roles for the user.
-
-
Method Details
-
getAuthenticationScheme
Description copied from interface:HttpAccessControlObtains the authentication scheme used.- Specified by:
getAuthenticationSchemein interfaceHttpAccessControl- Returns:
- Authentication scheme.
-
getPrincipal
Description copied from interface:HttpAccessControlObtains thePrincipal.- Specified by:
getPrincipalin interfaceHttpAccessControl- Returns:
Principal.
-
inRole
Description copied from interface:HttpAccessControlIndicates if within role.- Specified by:
inRolein interfaceHttpAccessControl- Parameters:
role- Role to check if have access.- Returns:
trueif supports the role.
-