Interface HttpSecurityTypeBuilder
-
public interface HttpSecurityTypeBuilderBuilder for theHttpSecurityTypeto validate the loadedHttpSecurityTypefrom theHttpSecuritySource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)Convenience method to add aHttpSecurityDependencyTypebased on the key.voidaddDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key)Adds aHttpSecurityDependencyType.voidaddFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)Convenience method to add aHttpSecurityFlowTypebased on the key.voidaddFlow(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.voidsetAccessControlClass(java.lang.Class<?> accessControlClass)Specifies the access control class.voidsetAuthenticationClass(java.lang.Class<?> authenticationClass)Specifies the authentication class.voidsetCredentialsClass(java.lang.Class<?> credentialsClass)Specifies the credentials class.voidsetInput(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-trueif input.
-
addDependency
void addDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)Convenience method to add a
HttpSecurityDependencyTypebased on the key.Both the
nameandindexare 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
HttpSecurityFlowTypebased on the key.Both the
nameandindexare 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.
-
-