Class AbstractUserAuth

    • Constructor Detail

      • AbstractUserAuth

        protected AbstractUserAuth​(String name)
    • Method Detail

      • getService

        public String getService()
      • isCancellable

        public boolean isCancellable()
        Description copied from interface: UserAuth
        Tells whether the authentication protocol is cancellable currently.
        Specified by:
        isCancellable in interface UserAuth
        Returns:
        true if the protocol can be canceled at its current state; false if not.
      • setCancellable

        protected void setCancellable​(boolean cancellable)
        Sets whether the authentication protocol is currently cancellable.
        Parameters:
        cancellable - true if the protocol may be canceled in its current state; false if not
      • process

        public boolean process​(Buffer buffer)
                        throws Exception
        Specified by:
        process in interface UserAuth
        Parameters:
        buffer - The Buffer to process - null if not a response buffer, i.e., the underlying authentication mechanism should initiate whatever challenge/response mechanism is required
        Returns:
        true if request handled - false if the next authentication mechanism should be used
        Throws:
        Exception - If failed to process the request
      • destroy

        public void destroy()
        Description copied from interface: UserAuth
        Called to release any allocated resources
        Specified by:
        destroy in interface UserAuth