Class HttpSecurityArchitectEmployer
- java.lang.Object
-
- net.officefloor.web.security.build.HttpSecurityArchitectEmployer
-
- All Implemented Interfaces:
HttpSecurityArchitect
public class HttpSecurityArchitectEmployer extends java.lang.Object implements HttpSecurityArchitect
Employs theHttpSecurityArchitect.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
HttpSecurityBuilderaddHttpSecurity(java.lang.String securityName, java.lang.String httpSecuritySourceClassName)Adds aHttpSecurity.<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
HttpSecurityBuilderaddHttpSecurity(java.lang.String securityName, HttpSecuritySource<A,AC,C,O,F> httpSecuritySource)Adds aHttpSecurity.voidaddHttpSecurityExplorer(HttpSecurityExplorer explorer)Adds aHttpSecurityExplorer.HttpSecurercreateHttpSecurer(HttpSecurable securable)Creates aHttpSecurer.static HttpSecurityArchitectemployHttpSecurityArchitect(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)Employs theHttpSecurityArchitect.static HttpSecurityLoaderemployHttpSecurityLoader(OfficeFloorCompiler compiler)Employs theHttpSecurityLoader.voidinformWebArchitect()Informs theWebArchitectof the necessary security.
-
-
-
Method Detail
-
employHttpSecurityArchitect
public static HttpSecurityArchitect employHttpSecurityArchitect(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theHttpSecurityArchitect.- Parameters:
webArchitect-WebArchitect.officeArchitect-OfficeArchitect.officeSourceContext-OfficeSourceContext.- Returns:
HttpSecurityArchitect.
-
employHttpSecurityLoader
public static HttpSecurityLoader employHttpSecurityLoader(OfficeFloorCompiler compiler) throws java.lang.Exception
Employs theHttpSecurityLoader.- Parameters:
compiler-OfficeFloorCompiler.- Returns:
HttpSecurityLoader.- Throws:
java.lang.Exception- If fails to load theHttpSecurityLoader.
-
addHttpSecurity
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> HttpSecurityBuilder addHttpSecurity(java.lang.String securityName, java.lang.String httpSecuritySourceClassName)
Description copied from interface:HttpSecurityArchitectAdds aHttpSecurity.- Specified by:
addHttpSecurityin interfaceHttpSecurityArchitect- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency key type.F-Flowkey type.- Parameters:
securityName- Name of theHttpSecurityBuilder. This name is use to qualify dependency injection, should this particularHttpSecurityBuilderbe required.httpSecuritySourceClassName- Name of theHttpSecuritySourceClass.- Returns:
HttpSecurityBuilder.
-
addHttpSecurity
public <A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> HttpSecurityBuilder addHttpSecurity(java.lang.String securityName, HttpSecuritySource<A,AC,C,O,F> httpSecuritySource)
Description copied from interface:HttpSecurityArchitectAdds aHttpSecurity.- Specified by:
addHttpSecurityin interfaceHttpSecurityArchitect- Type Parameters:
A- Authentication type.AC- Access control type.C- Credentials type.O- Dependency key type.F-Flowkey type.- Parameters:
securityName- Name of theHttpSecurityBuilder. This name is use to qualify dependency injection, should this particularHttpSecurityBuilderbe required.httpSecuritySource-HttpSecuritySource.- Returns:
HttpSecurityBuilder.
-
createHttpSecurer
public HttpSecurer createHttpSecurer(HttpSecurable securable)
Description copied from interface:HttpSecurityArchitectCreates aHttpSecurer.- Specified by:
createHttpSecurerin interfaceHttpSecurityArchitect- Parameters:
securable-HttpSecurableto provide the access configuration. May benullto just require authentication.- Returns:
HttpSecurer.
-
addHttpSecurityExplorer
public void addHttpSecurityExplorer(HttpSecurityExplorer explorer)
Description copied from interface:HttpSecurityArchitectAdds aHttpSecurityExplorer.- Specified by:
addHttpSecurityExplorerin interfaceHttpSecurityArchitect- Parameters:
explorer-HttpSecurityExplorer.
-
informWebArchitect
public void informWebArchitect()
Description copied from interface:HttpSecurityArchitectInforms theWebArchitectof the necessary security. This is to be invoked once all security is configured.- Specified by:
informWebArchitectin interfaceHttpSecurityArchitect
-
-