org.springframework.extensions.webscripts.connector
Class AlfrescoAuthenticator

java.lang.Object
  extended by org.springframework.extensions.webscripts.connector.AbstractAuthenticator
      extended by 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

Field Summary
static String CS_PARAM_ALF_TICKET
           
 
Constructor Summary
AlfrescoAuthenticator()
           
 
Method Summary
 ConnectorSession authenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession)
          Authenticate against the given Endpoint URL with the supplied Credentials
 boolean isAuthenticated(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
processResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CS_PARAM_ALF_TICKET

public static final String CS_PARAM_ALF_TICKET
See Also:
Constant Field Values
Constructor Detail

AlfrescoAuthenticator

public AlfrescoAuthenticator()
Method Detail

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.