Interface HttpSecurityTypeBuilder
-
public interface HttpSecurityTypeBuilder
Builder for theHttpSecurityType
to validate the loadedHttpSecurityType
from theHttpSecuritySource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)
Convenience method to add aHttpSecurityDependencyType
based on the key.void
addDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key)
Adds aHttpSecurityDependencyType
.void
addFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)
Convenience method to add aHttpSecurityFlowType
based on the key.void
addFlow(java.lang.String name, java.lang.Class<?> argumentType, int index, java.lang.Enum<?> key)
Adds aHttpSecurityFlowType
.<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
HttpSecurityType<A,AC,C,O,F>build()
Builds theHttpSecurityType
.void
setAccessControlClass(java.lang.Class<?> accessControlClass)
Specifies the access control class.void
setAuthenticationClass(java.lang.Class<?> authenticationClass)
Specifies the authentication class.void
setCredentialsClass(java.lang.Class<?> credentialsClass)
Specifies the credentials class.void
setInput(boolean isInput)
Indicates if input.
-
-
-
Method Detail
-
setAuthenticationClass
void setAuthenticationClass(java.lang.Class<?> authenticationClass)
Specifies the authentication class.- Parameters:
authenticationClass
- Class of the authentication.
-
setAccessControlClass
void setAccessControlClass(java.lang.Class<?> accessControlClass)
Specifies the access control class.- Parameters:
accessControlClass
- Class of the access control.
-
setCredentialsClass
void setCredentialsClass(java.lang.Class<?> credentialsClass)
Specifies the credentials class.
May be not specified if no application behaviour required to provide credentials.
- Parameters:
credentialsClass
- Class of the credentials.
-
addDependency
void addDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key)
Adds aHttpSecurityDependencyType
.- Parameters:
name
- Name of theHttpSecurityDependencyType
.type
- Type of theHttpSecurityDependencyType
.typeQualifier
- Qualifier for the type ofHttpSecurityDependencyType
.index
- Index of theHttpSecurityDependencyType
.key
- Key identifying theHttpSecurityDependencyType
.
-
setInput
void setInput(boolean isInput)
Indicates if input.- Parameters:
isInput
-true
if input.
-
addDependency
void addDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)
Convenience method to add a
HttpSecurityDependencyType
based on the key.Both the
name
andindex
are extracted from the key.- Parameters:
key
- Key identifying theHttpSecurityDependencyType
.type
- Type of theHttpSecurityDependencyType
.typeQualifier
- Qualifier for the type ofHttpSecurityDependencyType
.
-
addFlow
void addFlow(java.lang.String name, java.lang.Class<?> argumentType, int index, java.lang.Enum<?> key)
Adds aHttpSecurityFlowType
.- Parameters:
name
- Name of theHttpSecurityFlowType
.argumentType
- Type of argument passed to theHttpSecurityFlowType
.index
- Index of theHttpSecurityFlowType
.key
- Key identifying theHttpSecurityFlowType
.
-
addFlow
void addFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)
Convenience method to add a
HttpSecurityFlowType
based on the key.Both the
name
andindex
are extracted from the key.- Parameters:
key
- Key identifying theHttpSecurityFlowType
.argumentType
- Type of argument passed to theHttpSecurityFlowType
.
-
build
<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> HttpSecurityType<A,AC,C,O,F> build()
Builds theHttpSecurityType
.- Type Parameters:
A
- Authorization type.AC
- Access control type.C
- Credentials type.O
- Dependency keys.F
- Flow keys.- Returns:
HttpSecurityType
.
-
-