Package net.officefloor.web.spi.security
Interface HttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
AbstractHttpSecuritySource,AbstractMockHttpSecuritySource,AnonymousHttpSecuritySource,BasicHttpSecuritySource,DigestHttpSecuritySource,FormHttpSecuritySource,JwtHttpSecuritySource,MockChallengeHttpSecuritySource,MockFlowHttpSecuritySource
public interface HttpSecuritySource<A,AC extends java.io.Serializable,C,O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>Source for obtaining
HttpSecurity.As security is specific to applications, both the security object and credentials are specified by the application.
- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpSecuritySourceSpecificationgetSpecification()Obtains the specification for this.HttpSecuritySourceMetaData<A,AC,C,O,F>init(HttpSecuritySourceContext context)Initialises theHttpSecuritySource.HttpSecurity<A,AC,C,O,F>sourceHttpSecurity(HttpSecurityContext context)Sources theHttpSecurity.voidstart(HttpSecurityExecuteContext<F> context)Called once afterinit(HttpSecuritySourceContext)to indicate thisHttpSecuritySourceshould start execution.voidstop()Called to notify that theOfficeFlooris being closed.
-
-
-
Method Detail
-
getSpecification
HttpSecuritySourceSpecification getSpecification()
Obtains 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.
- Returns:
- Specification of this.
-
init
HttpSecuritySourceMetaData<A,AC,C,O,F> init(HttpSecuritySourceContext context) throws java.lang.Exception
Initialises theHttpSecuritySource.- 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.
-
start
void start(HttpSecurityExecuteContext<F> context) throws java.lang.Exception
Called once after
init(HttpSecuritySourceContext)to indicate thisHttpSecuritySourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theHttpSecurityExecuteContext.- Parameters:
context-HttpSecurityExecuteContextto use in starting thisHttpSecuritySource.- Throws:
java.lang.Exception- Should theHttpSecuritySourcefail to start execution.
-
sourceHttpSecurity
HttpSecurity<A,AC,C,O,F> sourceHttpSecurity(HttpSecurityContext context) throws HttpException
Sources theHttpSecurity.- Parameters:
context-HttpSecurity.- Returns:
HttpSecurity.- Throws:
HttpException- If fails to source theHttpSecurity.
-
stop
void stop()
Called to notify that the
OfficeFlooris being closed.On return from this method, no further
ProcessStateinstances may be invoked.
-
-