Package net.officefloor.web.spi.security
Interface HttpSecuritySource<A,AC extends Serializable,C,O extends Enum<O>,F extends Enum<F>>
- All Known Implementing Classes:
AbstractHttpSecuritySource,AbstractMockHttpSecuritySource,AnonymousHttpSecuritySource,BasicHttpSecuritySource,DigestHttpSecuritySource,FormHttpSecuritySource,JwtHttpSecuritySource,MockChallengeHttpSecuritySource,MockFlowHttpSecuritySource
public interface HttpSecuritySource<A,AC extends Serializable,C,O extends Enum<O>,F extends 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
Modifier and TypeMethodDescriptionObtains the specification for this.init(HttpSecuritySourceContext context) Initialises theHttpSecuritySource.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 Details
-
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
Initialises theHttpSecuritySource.- Parameters:
context-HttpSecuritySourceContextto use in initialising.- Returns:
- Meta-data to describe this.
- Throws:
Exception- Should theHttpSecuritySourcefail to configure itself from the input properties.
-
start
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:
Exception- Should theHttpSecuritySourcefail to start execution.
-
sourceHttpSecurity
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.
-