Class ActivitiAuthenticator
- java.lang.Object
-
- org.springframework.extensions.webscripts.connector.AbstractAuthenticator
-
- org.springframework.extensions.webscripts.connector.ActivitiAuthenticator
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,Authenticator
public class ActivitiAuthenticator extends AbstractAuthenticator
Activiti API endpoint authenticator.Used to connect to
https://activiti.alfresco.com/activiti-app/app
endpoint.This connector will post a URL encoded form with the login credentials to:
https://activiti.alfresco.com/activiti-app/app/authentication
content type: application/x-www-form-urlencodedResponse should be a 200 OK with no body content and ACTIVITI_REMEMBER_ME Cookie header set.
- Author:
- Kevin Roast
-
-
Constructor Summary
Constructors Constructor Description ActivitiAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorSessionauthenticate(java.lang.String endpoint, Credentials credentials, ConnectorSession connectorSession)Authenticate against the given Endpoint URL with the supplied CredentialsbooleanisAuthenticated(java.lang.String endpoint, ConnectorSession connectorSession)Returns whether the current connector session has been authenticated or not-
Methods inherited from class org.springframework.extensions.webscripts.connector.AbstractAuthenticator
buildRemoteClient, getConnectorService, processResponse, setApplicationContext
-
-
-
-
Method Detail
-
authenticate
public ConnectorSession authenticate(java.lang.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
public boolean isAuthenticated(java.lang.String endpoint, ConnectorSession connectorSession)Description copied from interface:AuthenticatorReturns whether the current connector session has been authenticated or not- Parameters:
endpoint- StringconnectorSession- ConnectorSession- Returns:
- boolean
-
-