Class AbstractHttpSecurable
- java.lang.Object
-
- net.officefloor.web.security.build.AbstractHttpSecurable
-
- All Implemented Interfaces:
HttpSecurable,HttpSecurableBuilder
public abstract class AbstractHttpSecurable extends java.lang.Object implements HttpSecurable, HttpSecurableBuilder
Abstract
HttpSecurableimplementation to be configured asHttpSecurableBuilder.This is useful to extend for configuration items requiring to be configured HTTP secure.
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpSecurable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRequiredRole(java.lang.String requiredRole)Adds to listing of required roles that must have all for access.voidaddRole(java.lang.String anyRole)Adds to listing of roles that must have at least one for access.java.lang.String[]getAnyRoles()Obtains the list of roles that must have at least one for access.java.lang.StringgetHttpSecurityName()Obtains the name for theHttpSecurityto use.java.lang.String[]getRequiredRoles()Obtains the list of roles that must have all for access.voidsetHttpSecurityName(java.lang.String httpSecurityName)Specifies the particularHttpSecurity.
-
-
-
Method Detail
-
getHttpSecurityName
public java.lang.String getHttpSecurityName()
Description copied from interface:HttpSecurable- Specified by:
getHttpSecurityNamein interfaceHttpSecurable- Returns:
- Name of
HttpSecurityornullfor genericHttpSecurity.
-
getAnyRoles
public java.lang.String[] 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
public java.lang.String[] 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
public void setHttpSecurityName(java.lang.String httpSecurityName)
Description copied from interface:HttpSecurableBuilderSpecifies the particularHttpSecurity.- Specified by:
setHttpSecurityNamein interfaceHttpSecurableBuilder- Parameters:
httpSecurityName- Name of theHttpSecurityto use.
-
addRole
public void addRole(java.lang.String anyRole)
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
public void addRequiredRole(java.lang.String requiredRole)
Description copied from interface:HttpSecurableBuilderAdds to listing of required roles that must have all for access.- Specified by:
addRequiredRolein interfaceHttpSecurableBuilder- Parameters:
requiredRole- Required roles.
-
-