Class AbstractAuthentication

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, Serializable
    Direct Known Subclasses:
    BasicAuthentication, NoAuthenticationRequired

    public abstract class AbstractAuthentication
    extends adams.core.option.AbstractOptionHandler
    Ancestor for authentication schemes.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Constructor Detail

      • AbstractAuthentication

        public AbstractAuthentication()
    • Method Detail

      • check

        protected String check​(Map<String,​String> params)
        Hook method for checks.
        Parameters:
        params - the parameters to check
        Returns:
        null if check passed, otherwise error message
      • doAuthenticate

        protected abstract String doAuthenticate​(Map<String,​String> params)
        Performs the authentication.
        Parameters:
        params - the parameters to use use for authentication
        Returns:
        null if successfully authenticated, otherwise error message
      • authenticate

        public String authenticate​(Map<String,​String> params)
        Performs the authentication.
        Parameters:
        params - the parameters to use use for authentication
        Returns:
        null if successfully authenticated, otherwise error message