Class AbstractHttpSecuritySource<A,AC extends Serializable,C,O extends Enum<O>,F extends 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 Serializable,C,O extends Enum<O>,F extends Enum<F>>
extends Object
implements HttpSecuritySource<A,AC,C,O,F>
Abstract
HttpSecuritySource.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvideAbstractHttpSecuritySource.Labellerfunctionality along with qualifying type of dependency.static interfaceProvides the ability to label the required dependency orFlow.static interfaceAbstractHttpSecuritySource.MetaDataContext<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>> Context for theHttpSecuritySource.init(HttpSecuritySourceContext).static interfaceContext for theHttpSecuritySource.getSpecification(). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the specification for this.init(HttpSecuritySourceContext context) Initialises theHttpSecuritySource.protected abstract voidloadMetaData(AbstractHttpSecuritySource.MetaDataContext<A, AC, C, O, F> context) Overridden to load meta-data.protected abstract voidOverridden 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, waitMethods inherited from interface net.officefloor.web.spi.security.HttpSecuritySource
sourceHttpSecurity
-
Field Details
-
UTF_8
UTF-8Charset.
-
-
Constructor Details
-
AbstractHttpSecuritySource
public AbstractHttpSecuritySource()
-
-
Method Details
-
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 Serializable, C, O extends Enum<O>, F extends Enum<F>> - Returns:
- Specification of this.
-
loadSpecification
Overridden to load specifications.- Parameters:
context- Specifications.
-
init
public HttpSecuritySourceMetaData<A,AC, initC, O, F> (HttpSecuritySourceContext context) throws Exception Description copied from interface:HttpSecuritySourceInitialises theHttpSecuritySource.- Specified by:
initin interfaceHttpSecuritySource<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>> - Parameters:
context-HttpSecuritySourceContextto use in initialising.- Returns:
- Meta-data to describe this.
- Throws:
Exception- Should theHttpSecuritySourcefail to configure itself from the input properties.
-
loadMetaData
protected abstract void loadMetaData(AbstractHttpSecuritySource.MetaDataContext<A, AC, throws ExceptionC, O, F> context) Overridden to load meta-data.- Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
start
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 Serializable, C, O extends Enum<O>, F extends Enum<F>> - Parameters:
context-HttpSecurityExecuteContextto use in starting thisHttpSecuritySource.- Throws:
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.
-