public abstract class AbstractAuthenticator extends Object implements Authenticator, org.springframework.context.ApplicationContextAware
This abstract implementation provides helper methods for post-processing response elements such as headers.
AbstractConnector| Constructor and Description |
|---|
AbstractAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
protected RemoteClient |
buildRemoteClient(String endpoint)
Build a Remote Client instance by retrieving and configuring the "connector.remoteclient" bean.
|
protected ConnectorService |
getConnectorService()
Helper to return the "connector.service" bean for concrete implementations to make use of
|
protected void |
processResponse(Response response,
ConnectorSession connectorSession)
Retrieves headers from response and stores onto the Connector Session
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the Spring application context
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, isAuthenticatedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the Spring application contextprotected ConnectorService getConnectorService()
protected RemoteClient buildRemoteClient(String endpoint)
endpoint - Configured Endpoint ID for the remote client instanceprotected void processResponse(Response response, ConnectorSession connectorSession)
response - ResponseconnectorSession - ConnectorSessionCopyright © 2005–2018 Alfresco Software. All rights reserved.