public class AnonymousHttpAuthenticationManagedObjectSource<S,C> extends AbstractManagedObjectSource<None,None> implements ManagedObject, HttpAuthentication<S,C>
HttpAuthentication
that always provide anonymous authentication (
null
HTTP Security).
This allows the HttpAuthentication
to be available when not
explicitly configured. Note that the HTTP Security will always be
null
and therefore anything requiring authentication may not be
accessible.
AbstractAsyncManagedObjectSource.DependencyLabeller, AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
Constructor and Description |
---|
AnonymousHttpAuthenticationManagedObjectSource() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(HttpAuthenticateRequest<C> authenticationRequest)
Undertakes authentication.
|
S |
getHttpSecurity()
Obtains the HTTP security.
|
protected ManagedObject |
getManagedObject()
Synchronously obtains the
ManagedObject . |
Object |
getObject()
Obtains the object being managed.
|
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context)
Overridden to load meta-data.
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.
|
void |
logout(HttpLogoutRequest logoutRequest)
Undertakes logging out.
|
sourceManagedObject
getMetaData, getSpecification, init, start, stop
public AnonymousHttpAuthenticationManagedObjectSource()
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
AbstractAsyncManagedObjectSource
loadSpecification
in class AbstractAsyncManagedObjectSource<None,None>
context
- Specifications.protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,None> context) throws Exception
AbstractAsyncManagedObjectSource
loadMetaData
in class AbstractAsyncManagedObjectSource<None,None>
context
- Meta-data.Exception
- If fails to load the meta-data.protected ManagedObject getManagedObject() throws Throwable
AbstractManagedObjectSource
ManagedObject
.getManagedObject
in class AbstractManagedObjectSource<None,None>
ManagedObject
.Throwable
- If fails to obtain the ManagedObject
.public Object getObject() throws Throwable
ManagedObject
getObject
in interface ManagedObject
Throwable
- Indicating failed to obtain the object for use.public void authenticate(HttpAuthenticateRequest<C> authenticationRequest)
HttpAuthentication
authenticate
in interface HttpAuthentication<S,C>
authenticationRequest
- HttpAuthenticateRequest
.public S getHttpSecurity() throws IOException
HttpAuthentication
getHttpSecurity
in interface HttpAuthentication<S,C>
null
if not authenticated.IOException
- If authentication has been attempted but there were failures
communicating to necessary security services.public void logout(HttpLogoutRequest logoutRequest)
HttpAuthentication
logout
in interface HttpAuthentication<S,C>
logoutRequest
- HttpLogoutRequest
.Copyright © 2005–2016. All rights reserved.