Class AbstractHttpSecuritySource<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.spi.security.impl.AbstractHttpSecuritySource<A,AC,C,O,F>
-
- All Implemented Interfaces:
HttpSecuritySource<A,AC,C,O,F>
- Direct Known Subclasses:
AbstractMockHttpSecuritySource,AnonymousHttpSecuritySource,BasicHttpSecuritySource,DigestHttpSecuritySource,FormHttpSecuritySource,JwtHttpSecuritySource,MockChallengeHttpSecuritySource,MockFlowHttpSecuritySource
public abstract class AbstractHttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> extends java.lang.Object implements HttpSecuritySource<A,AC,C,O,F>
AbstractHttpSecuritySource.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractHttpSecuritySource.DependencyLabellerProvideAbstractHttpSecuritySource.Labellerfunctionality along with qualifying type of dependency.static interfaceAbstractHttpSecuritySource.LabellerProvides the ability to label the required dependency orFlow.static interfaceAbstractHttpSecuritySource.MetaDataContext<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>Context for theHttpSecuritySource.init(HttpSecuritySourceContext).static interfaceAbstractHttpSecuritySource.SpecificationContextContext for theHttpSecuritySource.getSpecification().
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetUTF_8UTF-8Charset.
-
Constructor Summary
Constructors Constructor Description AbstractHttpSecuritySource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description HttpSecuritySourceSpecificationgetSpecification()Obtains the specification for this.HttpSecuritySourceMetaData<A,AC,C,O,F>init(HttpSecuritySourceContext context)Initialises theHttpSecuritySource.protected abstract voidloadMetaData(AbstractHttpSecuritySource.MetaDataContext<A,AC,C,O,F> context)Overridden to load meta-data.protected abstract voidloadSpecification(AbstractHttpSecuritySource.SpecificationContext context)Overridden to load specifications.voidstart(HttpSecurityExecuteContext<F> context)Called once afterHttpSecuritySource.init(HttpSecuritySourceContext)to indicate thisHttpSecuritySourceshould start execution.voidstop()Called to notify that theOfficeFlooris being closed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.web.spi.security.HttpSecuritySource
sourceHttpSecurity
-
-
-
-
Method Detail
-
getSpecification
public HttpSecuritySourceSpecification getSpecification()
Description copied from interface:HttpSecuritySourceObtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
- Specified by:
getSpecificationin interfaceHttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Returns:
- Specification of this.
-
loadSpecification
protected abstract void loadSpecification(AbstractHttpSecuritySource.SpecificationContext context)
Overridden to load specifications.- Parameters:
context- Specifications.
-
init
public HttpSecuritySourceMetaData<A,AC,C,O,F> init(HttpSecuritySourceContext context) throws java.lang.Exception
Description copied from interface:HttpSecuritySourceInitialises theHttpSecuritySource.- Specified by:
initin interfaceHttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Parameters:
context-HttpSecuritySourceContextto use in initialising.- Returns:
- Meta-data to describe this.
- Throws:
java.lang.Exception- Should theHttpSecuritySourcefail to configure itself from the input properties.
-
loadMetaData
protected abstract void loadMetaData(AbstractHttpSecuritySource.MetaDataContext<A,AC,C,O,F> context) throws java.lang.Exception
Overridden to load meta-data.- Parameters:
context- Meta-data.- Throws:
java.lang.Exception- If fails to load the meta-data.
-
start
public void start(HttpSecurityExecuteContext<F> context) throws java.lang.Exception
Description copied from interface:HttpSecuritySourceCalled once after
HttpSecuritySource.init(HttpSecuritySourceContext)to indicate thisHttpSecuritySourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theHttpSecurityExecuteContext.- Specified by:
startin interfaceHttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>- Parameters:
context-HttpSecurityExecuteContextto use in starting thisHttpSecuritySource.- Throws:
java.lang.Exception- Should theHttpSecuritySourcefail to start execution.
-
stop
public void stop()
Description copied from interface:HttpSecuritySourceCalled to notify that the
OfficeFlooris being closed.On return from this method, no further
ProcessStateinstances may be invoked.
-
-