public abstract class AbstractHttpSecuritySource<S,C,D extends Enum<D>,F extends Enum<F>> extends Object implements HttpSecuritySource<S,C,D,F>
HttpSecuritySource
.Modifier and Type | Class and Description |
---|---|
static interface |
AbstractHttpSecuritySource.DependencyLabeller
Provide
AbstractHttpSecuritySource.Labeller functionality along with qualifying type of
dependency. |
static interface |
AbstractHttpSecuritySource.Labeller
Provides the ability to label the required dependency or
JobSequence . |
static interface |
AbstractHttpSecuritySource.MetaDataContext<S,C,D extends Enum<D>,F extends Enum<F>>
Context for the
HttpSecuritySource.getMetaData() . |
static interface |
AbstractHttpSecuritySource.SpecificationContext
Context for the
HttpSecuritySource.getSpecification() . |
Constructor and Description |
---|
AbstractHttpSecuritySource() |
Modifier and Type | Method and Description |
---|---|
HttpSecuritySourceMetaData<S,C,D,F> |
getMetaData()
Obtains the meta-data to describe this.
|
HttpSecuritySourceSpecification |
getSpecification()
Obtains the specification for this.
|
void |
init(HttpSecuritySourceContext context)
Called only once after the
HttpSecuritySource is instantiated. |
protected abstract void |
loadMetaData(AbstractHttpSecuritySource.MetaDataContext<S,C,D,F> context)
Overridden to load meta-data.
|
protected abstract void |
loadSpecification(AbstractHttpSecuritySource.SpecificationContext context)
Overridden to load specifications.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, challenge, logout, ratify
public HttpSecuritySourceSpecification getSpecification()
HttpSecuritySource
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.
getSpecification
in interface HttpSecuritySource<S,C,D extends Enum<D>,F extends Enum<F>>
protected abstract void loadSpecification(AbstractHttpSecuritySource.SpecificationContext context)
context
- Specifications.public void init(HttpSecuritySourceContext context) throws Exception
HttpSecuritySource
HttpSecuritySource
is instantiated.init
in interface HttpSecuritySource<S,C,D extends Enum<D>,F extends Enum<F>>
context
- HttpSecuritySourceContext
to use in initialising.Exception
- Should the HttpSecuritySource
fail to configure
itself from the input properties.protected abstract void loadMetaData(AbstractHttpSecuritySource.MetaDataContext<S,C,D,F> context) throws Exception
context
- Meta-data.Exception
- If fails to load the meta-data.public HttpSecuritySourceMetaData<S,C,D,F> getMetaData()
HttpSecuritySource
Obtains the meta-data to describe this.
This is called after the HttpSecuritySource.init(HttpSecuritySourceContext)
method
and therefore may use the configuration.
This should always return non-null. If there is a problem due to
incorrect configuration, the HttpSecuritySource.init(HttpSecuritySourceContext)
should indicate this via an exception.
getMetaData
in interface HttpSecuritySource<S,C,D extends Enum<D>,F extends Enum<F>>
Copyright © 2005–2016. All rights reserved.