Class HttpSecurityTypeImpl<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.web.security.type.HttpSecurityTypeImpl<A,AC,C,O,F>
-
- All Implemented Interfaces:
HttpSecurityType<A,AC,C,O,F>
public class HttpSecurityTypeImpl<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> extends java.lang.Object implements HttpSecurityType<A,AC,C,O,F>
HttpSecurityType
adapted from theManagedObjectType
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpSecurityTypeImpl(java.lang.Class<A> authenticationType, HttpAuthenticationFactory<A,C> httpAuthenticationFactory, java.lang.Class<AC> accessControlType, HttpAccessControlFactory<AC> httpAccessControlFactory, java.lang.Class<C> credentialsType, ManagedObjectType<O> moAccessControlType, HttpSecuritySupportingManagedObjectType<?>[] supportingManagedObjectTypes)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<AC>
getAccessControlType()
Obtains the type for access control.java.lang.Class<A>
getAuthenticationType()
Obtains the type for authentication.java.lang.Class<C>
getCredentialsType()
Obtains the type for credentials.HttpSecurityDependencyType<O>[]
getDependencyTypes()
Obtains theHttpSecurityDependencyType
definitions of the required dependencies for theHttpSecuritySource
.HttpSecurityFlowType<F>[]
getFlowTypes()
Obtains theHttpSecurityFlowType
definitions of theFlow
instances required to be linked for theHttpSecuritySource
.HttpAccessControlFactory<AC>
getHttpAccessControlFactory()
Should the custom access control not implementHttpAccessControl
, then this factory provides a wrappingHttpAccessControl
implementation.HttpAuthenticationFactory<A,C>
getHttpAuthenticationFactory()
Should the custom authentication not implementHttpAuthentication
, then this factory provides a wrappingHttpAuthentication
implementation.HttpSecuritySupportingManagedObjectType<?>[]
getSupportingManagedObjectTypes()
Obtains theHttpSecuritySupportingManagedObjectType
definitions of theHttpSecuritySupportingManagedObject
instances provided by theHttpSecuritySource
.
-
-
-
Constructor Detail
-
HttpSecurityTypeImpl
public HttpSecurityTypeImpl(java.lang.Class<A> authenticationType, HttpAuthenticationFactory<A,C> httpAuthenticationFactory, java.lang.Class<AC> accessControlType, HttpAccessControlFactory<AC> httpAccessControlFactory, java.lang.Class<C> credentialsType, ManagedObjectType<O> moAccessControlType, HttpSecuritySupportingManagedObjectType<?>[] supportingManagedObjectTypes)
Initiate.- Parameters:
authenticationType
- Authentication type.httpAuthenticationFactory
-HttpAccessControlFactory
.moAccessControlType
-ManagedObjectType
.httpAccessControlFactory
-HttpAccessControlFactory
.credentialsType
- Credentials type.supportingManagedObjectTypes
-HttpSecuritySupportingManagedObjectType
instances.
-
-
Method Detail
-
getAuthenticationType
public java.lang.Class<A> getAuthenticationType()
Description copied from interface:HttpSecurityType
Obtains the type for authentication.- Specified by:
getAuthenticationType
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
- Type for authentication.
-
getHttpAuthenticationFactory
public HttpAuthenticationFactory<A,C> getHttpAuthenticationFactory()
Description copied from interface:HttpSecurityType
Should the custom authentication not implementHttpAuthentication
, then this factory provides a wrappingHttpAuthentication
implementation.- Specified by:
getHttpAuthenticationFactory
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
HttpAuthenticationFactory
to create wrappingHttpAuthentication
, ornull
if custom already implementsHttpAuthentication
.
-
getAccessControlType
public java.lang.Class<AC> getAccessControlType()
Description copied from interface:HttpSecurityType
Obtains the type for access control.- Specified by:
getAccessControlType
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
- Type for access control.
-
getHttpAccessControlFactory
public HttpAccessControlFactory<AC> getHttpAccessControlFactory()
Description copied from interface:HttpSecurityType
Should the custom access control not implementHttpAccessControl
, then this factory provides a wrappingHttpAccessControl
implementation.- Specified by:
getHttpAccessControlFactory
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
HttpAccessControlFactory
to create wrappingHttpAccessControl
, ornull
if custom already implementsHttpAccessControl
.
-
getCredentialsType
public java.lang.Class<C> getCredentialsType()
Description copied from interface:HttpSecurityType
Obtains the type for credentials.- Specified by:
getCredentialsType
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
- Type for credentials. May be
null
if no application specific behaviour is required to provide credentials.
-
getDependencyTypes
public HttpSecurityDependencyType<O>[] getDependencyTypes()
Description copied from interface:HttpSecurityType
Obtains theHttpSecurityDependencyType
definitions of the required dependencies for theHttpSecuritySource
.- Specified by:
getDependencyTypes
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
HttpSecurityDependencyType
definitions of the required dependencies for theHttpSecuritySource
.
-
getFlowTypes
public HttpSecurityFlowType<F>[] getFlowTypes()
Description copied from interface:HttpSecurityType
Obtains theHttpSecurityFlowType
definitions of theFlow
instances required to be linked for theHttpSecuritySource
.- Specified by:
getFlowTypes
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
HttpSecurityFlowType
definitions of theFlow
instances required to be linked for theHttpSecuritySource
.
-
getSupportingManagedObjectTypes
public HttpSecuritySupportingManagedObjectType<?>[] getSupportingManagedObjectTypes()
Description copied from interface:HttpSecurityType
Obtains theHttpSecuritySupportingManagedObjectType
definitions of theHttpSecuritySupportingManagedObject
instances provided by theHttpSecuritySource
.- Specified by:
getSupportingManagedObjectTypes
in interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- Returns:
HttpSecuritySupportingManagedObjectType
definitions of theHttpSecuritySupportingManagedObject
instances provided by theHttpSecuritySource
.
-
-