Interface HttpSecurityTypeBuilder
public interface HttpSecurityTypeBuilder
Builder for the
HttpSecurityType to validate the loaded
HttpSecurityType from the HttpSecuritySource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(Enum<?> key, Class<?> type, String typeQualifier) Convenience method to add aHttpSecurityDependencyTypebased on the key.voidaddDependency(String name, Class<?> type, String typeQualifier, int index, Enum<?> key) Adds aHttpSecurityDependencyType.voidConvenience method to add aHttpSecurityFlowTypebased on the key.voidAdds aHttpSecurityFlowType.<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>
HttpSecurityType<A,AC, C, O, F> build()Builds theHttpSecurityType.voidsetAccessControlClass(Class<?> accessControlClass) Specifies the access control class.voidsetAuthenticationClass(Class<?> authenticationClass) Specifies the authentication class.voidsetCredentialsClass(Class<?> credentialsClass) Specifies the credentials class.voidsetInput(boolean isInput) Indicates if input.
-
Method Details
-
setAuthenticationClass
Specifies the authentication class.- Parameters:
authenticationClass- Class of the authentication.
-
setAccessControlClass
Specifies the access control class.- Parameters:
accessControlClass- Class of the access control.
-
setCredentialsClass
Specifies the credentials class.
May be not specified if no application behaviour required to provide credentials.
- Parameters:
credentialsClass- Class of the credentials.
-
addDependency
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
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
Adds aHttpSecurityFlowType.- Parameters:
name- Name of theHttpSecurityFlowType.argumentType- Type of argument passed to theHttpSecurityFlowType.index- Index of theHttpSecurityFlowType.key- Key identifying theHttpSecurityFlowType.
-
addFlow
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 Serializable, HttpSecurityType<A,C, O extends Enum<O>, F extends Enum<F>> AC, build()C, O, F> Builds theHttpSecurityType.- Type Parameters:
A- Authorization type.AC- Access control type.C- Credentials type.O- Dependency keys.F- Flow keys.- Returns:
HttpSecurityType.
-