Interface HttpSecurityArchitect
-
- All Known Implementing Classes:
HttpSecurityArchitectEmployer
public interface HttpSecurityArchitect
Builds theHttpSecurityBuilder
instances for theWebArchitect
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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
.void
informWebArchitect()
Informs theWebArchitect
of the necessary security.
-
-
-
Method Detail
-
addHttpSecurity
<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)
Adds aHttpSecurity
.- 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
<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)
Adds aHttpSecurity
.- 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
HttpSecurer createHttpSecurer(HttpSecurable securable)
Creates aHttpSecurer
.- Parameters:
securable
-HttpSecurable
to provide the access configuration. May benull
to just require authentication.- Returns:
HttpSecurer
.
-
addHttpSecurityExplorer
void addHttpSecurityExplorer(HttpSecurityExplorer explorer)
Adds aHttpSecurityExplorer
.- Parameters:
explorer
-HttpSecurityExplorer
.
-
informWebArchitect
void informWebArchitect()
Informs theWebArchitect
of the necessary security. This is to be invoked once all security is configured.
-
-