Interface HttpSecurityArchitect
- All Known Implementing Classes:
HttpSecurityArchitectEmployer
public interface HttpSecurityArchitect
Builds the
HttpSecurityBuilder instances for the
WebArchitect.- 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.voidInforms theWebArchitectof the necessary security.
-
Method Details
-
addHttpSecurity
<A,AC extends Serializable, HttpSecurityBuilder addHttpSecurityC, O extends Enum<O>, F extends Enum<F>> (String securityName, String httpSecuritySourceClassName) Adds aHttpSecurity.- 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
<A,AC extends Serializable, HttpSecurityBuilder addHttpSecurityC, O extends Enum<O>, F extends Enum<F>> (String securityName, HttpSecuritySource<A, AC, C, O, F> httpSecuritySource) Adds aHttpSecurity.- 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
HttpSecurityBuilder addHttpSecurity(String securityName, String securityLocation, PropertyList properties) throws Exception - Parameters:
securityName- Name of theHttpSecurityBuilder.securityLocation- Location of the yml configuration.properties-PropertyListfor configuration.- Returns:
HttpSecurityBuilder.- Throws:
Exception- If fails to load theHttpSecurity.
-
addHttpSecurities
Map<String,HttpSecurityBuilder> addHttpSecurities(String securityDirectory, PropertyList properties) throws Exception Adds multipleHttpSecurityinstances loaded from viaComposeArchitectwiring theFlowinstances of theHttpSecurity.- Parameters:
securityDirectory- Directory containing yml configurations.properties-PropertyListfor configuration.- Returns:
MapofHttpSecurityBuilderby security name.- Throws:
Exception- If fails to load theHttpSecurityinstances.
-
createHttpSecurer
Creates aHttpSecurer.- Parameters:
securable-HttpSecurableto provide the access configuration. May benullto just require authentication.- Returns:
HttpSecurer.
-
addHttpSecurityExplorer
Adds aHttpSecurityExplorer.- Parameters:
explorer-HttpSecurityExplorer.
-
informWebArchitect
void informWebArchitect()Informs theWebArchitectof the necessary security. This is to be invoked once all security is configured.
-