Class AlfrescoAuthenticator
java.lang.Object
org.springframework.extensions.webscripts.connector.AbstractAuthenticator
org.springframework.extensions.webscripts.connector.AlfrescoAuthenticator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,Authenticator
An implementation of an Alfresco ticket or cookie-based Authenticator.
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.
- Author:
- muzquiano, Kevin Roast
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) Authenticate against the given Endpoint URL with the supplied Credentialsprotected StringbooleanisAuthenticated(String endpoint, ConnectorSession connectorSession) Returns whether the current connector session has been authenticated or notMethods inherited from class org.springframework.extensions.webscripts.connector.AbstractAuthenticator
buildRemoteClient, getConnectorService, processResponse, setApplicationContext
-
Field Details
-
CS_PARAM_ALF_TICKET
- See Also:
-
-
Constructor Details
-
AlfrescoAuthenticator
public AlfrescoAuthenticator()
-
-
Method Details
-
authenticate
public ConnectorSession authenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) throws AuthenticationException Description copied from interface:AuthenticatorAuthenticate against the given Endpoint URL with the supplied Credentials- Returns:
- The connector session instance
- Throws:
AuthenticationException- on error
-
isAuthenticated
Description copied from interface:AuthenticatorReturns whether the current connector session has been authenticated or not- Parameters:
endpoint- StringconnectorSession- ConnectorSession- Returns:
- boolean
-
getLoginURL
- Returns:
- the REST URL to be used for login requests
-