Class AlfrescoAuthenticator

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, Authenticator

    public class AlfrescoAuthenticator
    extends AbstractAuthenticator
    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 Detail

      • CS_PARAM_ALF_TICKET

        public static final java.lang.String CS_PARAM_ALF_TICKET
        See Also:
        Constant Field Values
    • Constructor Detail

      • AlfrescoAuthenticator

        public AlfrescoAuthenticator()
    • Method Detail

      • isAuthenticated

        public boolean isAuthenticated​(java.lang.String endpoint,
                                       ConnectorSession connectorSession)
        Description copied from interface: Authenticator
        Returns whether the current connector session has been authenticated or not
        Parameters:
        endpoint - String
        connectorSession - ConnectorSession
        Returns:
        boolean
      • getLoginURL

        protected java.lang.String getLoginURL()
        Returns:
        the REST URL to be used for login requests