Class HttpSecurityArchitectEmployer
java.lang.Object
net.officefloor.web.security.build.HttpSecurityArchitectEmployer
- All Implemented Interfaces:
HttpSecurityArchitect
Employs the
HttpSecurityArchitect.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionaddHttpSecurities(String securityDirectory, PropertyList properties) Adds multipleHttpSecurityinstances loaded from viaComposeArchitectwiring theFlowinstances of theHttpSecurity.<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>
HttpSecurityBuilderaddHttpSecurity(String securityName, String httpSecuritySourceClassName) Adds aHttpSecurity.addHttpSecurity(String securityName, String securityLocation, PropertyList properties) <A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>
HttpSecurityBuilderaddHttpSecurity(String securityName, HttpSecuritySource<A, AC, C, O, F> httpSecuritySource) Adds aHttpSecurity.voidaddHttpSecurityExplorer(HttpSecurityExplorer explorer) Adds aHttpSecurityExplorer.createHttpSecurer(HttpSecurable securable) Creates aHttpSecurer.static HttpSecurityArchitectemployHttpSecurityArchitect(WebArchitect webArchitect, ComposeArchitect composeArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext) Employs theHttpSecurityArchitect.static HttpSecurityLoaderemployHttpSecurityLoader(OfficeFloorCompiler compiler) Employs theHttpSecurityLoader.voidInforms theWebArchitectof the necessary security.
-
Method Details
-
employHttpSecurityArchitect
public static HttpSecurityArchitect employHttpSecurityArchitect(WebArchitect webArchitect, ComposeArchitect composeArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext) Employs theHttpSecurityArchitect.- Parameters:
webArchitect-WebArchitect.composeArchitect-ComposeArchitect.officeArchitect-OfficeArchitect.officeSourceContext-OfficeSourceContext.- Returns:
HttpSecurityArchitect.
-
employHttpSecurityLoader
public static HttpSecurityLoader employHttpSecurityLoader(OfficeFloorCompiler compiler) throws Exception Employs theHttpSecurityLoader.- Parameters:
compiler-OfficeFloorCompiler.- Returns:
HttpSecurityLoader.- Throws:
Exception- If fails to load theHttpSecurityLoader.
-
addHttpSecurity
public <A,AC extends Serializable, HttpSecurityBuilder addHttpSecurityC, O extends Enum<O>, F extends Enum<F>> (String securityName, 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 Serializable, HttpSecurityBuilder addHttpSecurityC, O extends Enum<O>, F extends Enum<F>> (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.
-
addHttpSecurity
public HttpSecurityBuilder addHttpSecurity(String securityName, String securityLocation, PropertyList properties) throws Exception Description copied from interface:HttpSecurityArchitect- Specified by:
addHttpSecurityin interfaceHttpSecurityArchitect- Parameters:
securityName- Name of theHttpSecurityBuilder.securityLocation- Location of the yml configuration.properties-PropertyListfor configuration.- Returns:
HttpSecurityBuilder.- Throws:
Exception- If fails to load theHttpSecurity.
-
addHttpSecurities
public Map<String,HttpSecurityBuilder> addHttpSecurities(String securityDirectory, PropertyList properties) throws Exception Description copied from interface:HttpSecurityArchitectAdds multipleHttpSecurityinstances loaded from viaComposeArchitectwiring theFlowinstances of theHttpSecurity.- Specified by:
addHttpSecuritiesin interfaceHttpSecurityArchitect- Parameters:
securityDirectory- Directory containing yml configurations.properties-PropertyListfor configuration.- Returns:
MapofHttpSecurityBuilderby security name.- Throws:
Exception- If fails to load theHttpSecurityinstances.
-
createHttpSecurer
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
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
-