Class AbstractAuthenticator

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, Authenticator
    Direct Known Subclasses:
    ActivitiAuthenticator, AlfrescoAuthenticator

    public abstract class AbstractAuthenticator
    extends java.lang.Object
    implements Authenticator, org.springframework.context.ApplicationContextAware
    Implementation of an Authenticator base class.

    This abstract implementation provides helper methods for post-processing response elements such as headers.

    Author:
    muzquiano, Kevin Roast
    See Also:
    AbstractConnector
    • Constructor Detail

      • AbstractAuthenticator

        public AbstractAuthenticator()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Sets the Spring application context
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Parameters:
        applicationContext - the Spring application context
      • getConnectorService

        protected ConnectorService getConnectorService()
        Helper to return the "connector.service" bean for concrete implementations to make use of
        Returns:
        ConnectorService
      • buildRemoteClient

        protected RemoteClient buildRemoteClient​(java.lang.String endpoint)
        Build a Remote Client instance by retrieving and configuring the "connector.remoteclient" bean.
        Parameters:
        endpoint - Configured Endpoint ID for the remote client instance
      • processResponse

        protected void processResponse​(Response response,
                                       ConnectorSession connectorSession)
        Retrieves headers from response and stores onto the Connector Session
        Parameters:
        response - Response
        connectorSession - ConnectorSession