public class AlfrescoAuthenticator extends AbstractAuthenticator
This Authenticator can be plugged into a connector to allow the connector to handshake with an Alfresco Repository. This handshake involves POSTing the username and password to the /api/login WebScript.
A ticket or cookie is returned that is then stored in a connector session.
| Modifier and Type | Field and Description |
|---|---|
static String |
CS_PARAM_ALF_TICKET |
| Constructor and Description |
|---|
AlfrescoAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
ConnectorSession |
authenticate(String endpoint,
Credentials credentials,
ConnectorSession connectorSession)
Authenticate against the given Endpoint URL with the supplied Credentials
|
protected String |
getLoginURL() |
boolean |
isAuthenticated(String endpoint,
ConnectorSession connectorSession)
Returns whether the current connector session has been authenticated or not
|
buildRemoteClient, processResponse, setApplicationContextpublic static final String CS_PARAM_ALF_TICKET
public ConnectorSession authenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) throws AuthenticationException
AuthenticatorAuthenticationException - on errorpublic boolean isAuthenticated(String endpoint, ConnectorSession connectorSession)
Authenticatorendpoint - StringconnectorSession - ConnectorSessionprotected String getLoginURL()
Copyright © 2005–2015 Alfresco Software. All rights reserved.