Package net.officefloor.web.security
Interface HttpAccessControl
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
JwtHttpAccessControl<C>
- All Known Implementing Classes:
AnonymousHttpSecuritySource,HttpAccessControlImpl,MockHttpAccessControl
Adapting interface to provide standard access control by the
HttpSecuritySource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains the authentication scheme used.Obtains thePrincipal.booleanIndicates if within role.default booleanIndicates if have access.
-
Method Details
-
getAuthenticationScheme
String getAuthenticationScheme()Obtains the authentication scheme used.- Returns:
- Authentication scheme.
-
getPrincipal
Principal getPrincipal()Obtains thePrincipal.- Returns:
Principal.
-
inRole
Indicates if within role.- Parameters:
role- Role to check if have access.- Returns:
trueif supports the role.
-
isAccess
Indicates if have access.- Parameters:
anyRoles- Listing of roles that must have access to at least one. May benull.allRoles- Listing of roles that must have access to all. May benull.- Returns:
trueif have access.
-