Class AbstractHttpSecurable
java.lang.Object
net.officefloor.web.security.build.AbstractHttpSecurable
- All Implemented Interfaces:
HttpSecurable,HttpSecurableBuilder
public abstract class AbstractHttpSecurable
extends Object
implements HttpSecurable, HttpSecurableBuilder
Abstract HttpSecurable implementation to be configured as
HttpSecurableBuilder.
This is useful to extend for configuration items requiring to be configured HTTP secure.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiredRole(String requiredRole) Adds to listing of required roles that must have all for access.voidAdds to listing of roles that must have at least one for access.String[]Obtains the list of roles that must have at least one for access.Obtains the name for theHttpSecurityto use.String[]Obtains the list of roles that must have all for access.voidsetHttpSecurityName(String httpSecurityName) Specifies the particularHttpSecurity.
-
Constructor Details
-
AbstractHttpSecurable
public AbstractHttpSecurable()
-
-
Method Details
-
getHttpSecurityName
Description copied from interface:HttpSecurable- Specified by:
getHttpSecurityNamein interfaceHttpSecurable- Returns:
- Name of
HttpSecurityornullfor genericHttpSecurity.
-
getAnyRoles
Description copied from interface:HttpSecurableObtains the list of roles that must have at least one for access.
Empty/
nulllist means needs only be authenticated.- Specified by:
getAnyRolesin interfaceHttpSecurable- Returns:
- List of any roles.
-
getRequiredRoles
Description copied from interface:HttpSecurableObtains the list of roles that must have all for access.
Empty/
nulllist means needs only be authenticated.- Specified by:
getRequiredRolesin interfaceHttpSecurable- Returns:
- List of required roles.
-
setHttpSecurityName
Description copied from interface:HttpSecurableBuilderSpecifies the particularHttpSecurity.- Specified by:
setHttpSecurityNamein interfaceHttpSecurableBuilder- Parameters:
httpSecurityName- Name of theHttpSecurityto use.
-
addRole
Description copied from interface:HttpSecurableBuilderAdds to listing of roles that must have at least one for access.- Specified by:
addRolein interfaceHttpSecurableBuilder- Parameters:
anyRole- Any role.
-
addRequiredRole
Description copied from interface:HttpSecurableBuilderAdds to listing of required roles that must have all for access.- Specified by:
addRequiredRolein interfaceHttpSecurableBuilder- Parameters:
requiredRole- Required roles.
-