org.springframework.extensions.webscripts.connector
Class AlfrescoAuthenticator
java.lang.Object
org.springframework.extensions.webscripts.connector.AbstractAuthenticator
org.springframework.extensions.webscripts.connector.AlfrescoAuthenticator
- All Implemented Interfaces:
- Authenticator
public class AlfrescoAuthenticator
- extends AbstractAuthenticator
An implementation of an Alfresco ticket-based Authenticator.
This Authenticator can be plugged into a connector to allo the connector
to handshake with an Alfresco Repository. This handshake involves POSTing
the username and password to the /api/login WebScript.
A ticket is returned that is then plugged into a connector session.
- Author:
- muzquiano, kevinr
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CS_PARAM_ALF_TICKET
public static final String CS_PARAM_ALF_TICKET
- See Also:
- Constant Field Values
AlfrescoAuthenticator
public AlfrescoAuthenticator()
authenticate
public ConnectorSession authenticate(String endpoint,
Credentials credentials,
ConnectorSession connectorSession)
throws AuthenticationException
- Description copied from interface:
Authenticator
- Authenticate against the given Endpoint URL with the supplied Credentials
- Specified by:
authenticate
in interface Authenticator
- Specified by:
authenticate
in class AbstractAuthenticator
- Returns:
- The connector session instance
- Throws:
AuthenticationException
- on error
isAuthenticated
public boolean isAuthenticated(String endpoint,
ConnectorSession connectorSession)
- Description copied from interface:
Authenticator
- Returns whether the current connector session has been authenticated or not
- Specified by:
isAuthenticated
in interface Authenticator
- Specified by:
isAuthenticated
in class AbstractAuthenticator
- Returns:
Copyright © 2009 SpringSource, Inc. All Rights Reserved.