Class AuthenticationContextManagedObjectSource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
-
- net.officefloor.web.security.impl.AuthenticationContextManagedObjectSource<A,AC,C,O,F>
-
- All Implemented Interfaces:
ManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
@PrivateSource public class AuthenticationContextManagedObjectSource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> extends AbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
ManagedObjectSourcefor the custom authentication.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticationContextManagedObjectSource.DependenciesDependency keys.static classAuthenticationContextManagedObjectSource.FlowsFlow keys.-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description AuthenticationContextManagedObjectSource(java.lang.String qualifier, HttpSecurity<A,AC,C,O,F> httpSecurity)Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedObjectgetManagedObject()Synchronously obtains theManagedObject.static java.lang.StringgetQualifiedAttributeName(java.lang.String qualifier, java.lang.String attributeName)Obtains the qualified attribute name.protected voidloadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> context)Overridden to load meta-data.protected voidloadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)Overridden to load specifications.voidstart(ManagedObjectExecuteContext<AuthenticationContextManagedObjectSource.Flows> context)Called once afterManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, stop
-
-
-
-
Constructor Detail
-
AuthenticationContextManagedObjectSource
public AuthenticationContextManagedObjectSource(java.lang.String qualifier, HttpSecurity<A,AC,C,O,F> httpSecurity)Instantiate.- Parameters:
qualifier- Qualifier for theHttpSecurity.httpSecurity-HttpSecurity.
-
-
Method Detail
-
getQualifiedAttributeName
public static java.lang.String getQualifiedAttributeName(java.lang.String qualifier, java.lang.String attributeName)Obtains the qualified attribute name.- Parameters:
qualifier-HttpSecurityqualifier.attributeName- Attribute name.- Returns:
- Qualified attribute name.
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>- Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>- Parameters:
context- Meta-data.- Throws:
java.lang.Exception- If fails to load the meta-data.
-
start
public void start(ManagedObjectExecuteContext<AuthenticationContextManagedObjectSource.Flows> context) throws java.lang.Exception
Description copied from interface:ManagedObjectSourceCalled once after
ManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theManagedObjectExecuteContext.- Specified by:
startin interfaceManagedObjectSource<A,AC extends java.io.Serializable>- Overrides:
startin classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>- Parameters:
context-ManagedObjectExecuteContextto use in starting thisManagedObjectSource.- Throws:
java.lang.Exception- Should theManagedObjectSourcefail to start execution.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>- Returns:
ManagedObject.- Throws:
java.lang.Throwable- If fails to obtain theManagedObject.
-
-