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>
HttpSecurityTypeadapted 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 theHttpSecurityDependencyTypedefinitions of the required dependencies for theHttpSecuritySource.HttpSecurityFlowType<F>[]getFlowTypes()Obtains theHttpSecurityFlowTypedefinitions of theFlowinstances required to be linked for theHttpSecuritySource.HttpAccessControlFactory<AC>getHttpAccessControlFactory()Should the custom access control not implementHttpAccessControl, then this factory provides a wrappingHttpAccessControlimplementation.HttpAuthenticationFactory<A,C>getHttpAuthenticationFactory()Should the custom authentication not implementHttpAuthentication, then this factory provides a wrappingHttpAuthenticationimplementation.HttpSecuritySupportingManagedObjectType<?>[]getSupportingManagedObjectTypes()Obtains theHttpSecuritySupportingManagedObjectTypedefinitions of theHttpSecuritySupportingManagedObjectinstances 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-HttpSecuritySupportingManagedObjectTypeinstances.
-
-
Method Detail
-
getAuthenticationType
public java.lang.Class<A> getAuthenticationType()
Description copied from interface:HttpSecurityTypeObtains the type for authentication.- Specified by:
getAuthenticationTypein 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:HttpSecurityTypeShould the custom authentication not implementHttpAuthentication, then this factory provides a wrappingHttpAuthenticationimplementation.- Specified by:
getHttpAuthenticationFactoryin interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
HttpAuthenticationFactoryto create wrappingHttpAuthentication, ornullif custom already implementsHttpAuthentication.
-
getAccessControlType
public java.lang.Class<AC> getAccessControlType()
Description copied from interface:HttpSecurityTypeObtains the type for access control.- Specified by:
getAccessControlTypein 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:HttpSecurityTypeShould the custom access control not implementHttpAccessControl, then this factory provides a wrappingHttpAccessControlimplementation.- Specified by:
getHttpAccessControlFactoryin interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
HttpAccessControlFactoryto create wrappingHttpAccessControl, ornullif custom already implementsHttpAccessControl.
-
getCredentialsType
public java.lang.Class<C> getCredentialsType()
Description copied from interface:HttpSecurityTypeObtains the type for credentials.- Specified by:
getCredentialsTypein 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
nullif no application specific behaviour is required to provide credentials.
-
getDependencyTypes
public HttpSecurityDependencyType<O>[] getDependencyTypes()
Description copied from interface:HttpSecurityTypeObtains theHttpSecurityDependencyTypedefinitions of the required dependencies for theHttpSecuritySource.- Specified by:
getDependencyTypesin interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
HttpSecurityDependencyTypedefinitions of the required dependencies for theHttpSecuritySource.
-
getFlowTypes
public HttpSecurityFlowType<F>[] getFlowTypes()
Description copied from interface:HttpSecurityTypeObtains theHttpSecurityFlowTypedefinitions of theFlowinstances required to be linked for theHttpSecuritySource.- Specified by:
getFlowTypesin interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
HttpSecurityFlowTypedefinitions of theFlowinstances required to be linked for theHttpSecuritySource.
-
getSupportingManagedObjectTypes
public HttpSecuritySupportingManagedObjectType<?>[] getSupportingManagedObjectTypes()
Description copied from interface:HttpSecurityTypeObtains theHttpSecuritySupportingManagedObjectTypedefinitions of theHttpSecuritySupportingManagedObjectinstances provided by theHttpSecuritySource.- Specified by:
getSupportingManagedObjectTypesin interfaceHttpSecurityType<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
HttpSecuritySupportingManagedObjectTypedefinitions of theHttpSecuritySupportingManagedObjectinstances provided by theHttpSecuritySource.
-
-