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
.void
addHttpSecurityExplorer(HttpSecurityExplorer explorer)
Adds aHttpSecurityExplorer
.HttpSecurer
createHttpSecurer(HttpSecurable securable)
Creates aHttpSecurer
.static HttpSecurityArchitect
employHttpSecurityArchitect(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theHttpSecurityArchitect
.static HttpSecurityLoader
employHttpSecurityLoader(OfficeFloorCompiler compiler)
Employs theHttpSecurityLoader
.void
informWebArchitect()
Informs theWebArchitect
of 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:HttpSecurityArchitect
Adds aHttpSecurity
.- Specified by:
addHttpSecurity
in interfaceHttpSecurityArchitect
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency key type.F
-Flow
key type.- Parameters:
securityName
- Name of theHttpSecurityBuilder
. This name is use to qualify dependency injection, should this particularHttpSecurityBuilder
be required.httpSecuritySourceClassName
- Name of theHttpSecuritySource
Class
.- 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:HttpSecurityArchitect
Adds aHttpSecurity
.- Specified by:
addHttpSecurity
in interfaceHttpSecurityArchitect
- Type Parameters:
A
- Authentication type.AC
- Access control type.C
- Credentials type.O
- Dependency key type.F
-Flow
key type.- Parameters:
securityName
- Name of theHttpSecurityBuilder
. This name is use to qualify dependency injection, should this particularHttpSecurityBuilder
be required.httpSecuritySource
-HttpSecuritySource
.- Returns:
HttpSecurityBuilder
.
-
createHttpSecurer
public HttpSecurer createHttpSecurer(HttpSecurable securable)
Description copied from interface:HttpSecurityArchitect
Creates aHttpSecurer
.- Specified by:
createHttpSecurer
in interfaceHttpSecurityArchitect
- Parameters:
securable
-HttpSecurable
to provide the access configuration. May benull
to just require authentication.- Returns:
HttpSecurer
.
-
addHttpSecurityExplorer
public void addHttpSecurityExplorer(HttpSecurityExplorer explorer)
Description copied from interface:HttpSecurityArchitect
Adds aHttpSecurityExplorer
.- Specified by:
addHttpSecurityExplorer
in interfaceHttpSecurityArchitect
- Parameters:
explorer
-HttpSecurityExplorer
.
-
informWebArchitect
public void informWebArchitect()
Description copied from interface:HttpSecurityArchitect
Informs theWebArchitect
of the necessary security. This is to be invoked once all security is configured.- Specified by:
informWebArchitect
in interfaceHttpSecurityArchitect
-
-