public class HttpAuthenticationManagedObject<S,C> extends Object implements AsynchronousManagedObject, CoordinatingManagedObject<HttpAuthenticationManagedObjectSource.Dependencies>, HttpAuthentication<S,C>
Constructor and Description |
---|
HttpAuthenticationManagedObject(HttpSecuritySource<S,C,?,?> httpSecuritySource,
ManagedObjectExecuteContext<HttpAuthenticationManagedObjectSource.Flows> executeContext)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
authenticate(HttpAuthenticateRequest<C> authenticationRequest)
Undertakes authentication.
|
S |
getHttpSecurity()
Obtains the HTTP security.
|
Object |
getObject()
Obtains the object being managed.
|
void |
loadObjects(ObjectRegistry<HttpAuthenticationManagedObjectSource.Dependencies> registry)
Loads the Objects of the
ManagedObject instances to be referenced
by this CoordinatingManagedObject . |
void |
logout(HttpLogoutRequest logoutRequest)
Undertakes logging out.
|
void |
registerAsynchronousCompletionListener(AsynchronousListener listener)
Provides the
AsynchronousListener to the
AsynchronousManagedObject to enable call back to notify state and
completion of asynchronous processing. |
public HttpAuthenticationManagedObject(HttpSecuritySource<S,C,?,?> httpSecuritySource, ManagedObjectExecuteContext<HttpAuthenticationManagedObjectSource.Flows> executeContext)
httpSecuritySource
- HttpSecuritySource
.executeContext
- ManagedObjectExecuteContext
.public void registerAsynchronousCompletionListener(AsynchronousListener listener)
AsynchronousManagedObject
AsynchronousListener
to the
AsynchronousManagedObject
to enable call back to notify state and
completion of asynchronous processing.registerAsynchronousCompletionListener
in interface AsynchronousManagedObject
listener
- AsynchronousListener
.public void loadObjects(ObjectRegistry<HttpAuthenticationManagedObjectSource.Dependencies> registry) throws Throwable
CoordinatingManagedObject
Loads the Objects of the ManagedObject
instances to be referenced
by this CoordinatingManagedObject
.
References to the loaded Objects must be released on recycling the
ManagedObject
.
loadObjects
in interface CoordinatingManagedObject<HttpAuthenticationManagedObjectSource.Dependencies>
registry
- Registry of the Objects for the ManagedObject
instances.Throwable
- Should this CoordinatingManagedObject
fail to load
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.