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>
ManagedObjectSource
for the custom authentication.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationContextManagedObjectSource.Dependencies
Dependency keys.static class
AuthenticationContextManagedObjectSource.Flows
Flow 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 ManagedObject
getManagedObject()
Synchronously obtains theManagedObject
.static java.lang.String
getQualifiedAttributeName(java.lang.String qualifier, java.lang.String attributeName)
Obtains the qualified attribute name.protected void
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.void
start(ManagedObjectExecuteContext<AuthenticationContextManagedObjectSource.Flows> context)
Called once afterManagedObjectSource.init(ManagedObjectSourceContext)
to indicate thisManagedObjectSource
should 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
-HttpSecurity
qualifier.attributeName
- Attribute name.- Returns:
- Qualified attribute name.
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Specified by:
loadSpecification
in 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:AbstractAsyncManagedObjectSource
Overridden to load meta-data.- Specified by:
loadMetaData
in 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:ManagedObjectSource
Called once after
ManagedObjectSource.init(ManagedObjectSourceContext)
to indicate thisManagedObjectSource
should start execution.On invocation of this method,
ProcessState
instances may be invoked via theManagedObjectExecuteContext
.- Specified by:
start
in interfaceManagedObjectSource<A,AC extends java.io.Serializable>
- Overrides:
start
in classAbstractAsyncManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
- Parameters:
context
-ManagedObjectExecuteContext
to use in starting thisManagedObjectSource
.- Throws:
java.lang.Exception
- Should theManagedObjectSource
fail to start execution.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSource
Synchronously obtains theManagedObject
.- Specified by:
getManagedObject
in classAbstractManagedObjectSource<AuthenticationContextManagedObjectSource.Dependencies,AuthenticationContextManagedObjectSource.Flows>
- Returns:
ManagedObject
.- Throws:
java.lang.Throwable
- If fails to obtain theManagedObject
.
-
-