Interface SaslServerHandler

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    AbstractSaslServerHandler, SaslServerHandlerPlain

    public interface SaslServerHandler
    extends java.lang.AutoCloseable
    Interface for authentication scheme specific SaslServer management.
    • Method Detail

      • handleMessage

        alluxio.grpc.SaslMessage handleMessage​(alluxio.grpc.SaslMessage message)
                                        throws javax.security.sasl.SaslException
        Handles given SaslMessage from the client.
        Parameters:
        message - client Sasl message
        Returns:
        server's response to given client message
        Throws:
        javax.security.sasl.SaslException
      • setAuthenticatedUserInfo

        void setAuthenticatedUserInfo​(AuthenticatedUserInfo userinfo)
        To be called by callbacks to store authenticated user information.
        Parameters:
        userinfo - user info
      • getAuthenticatedUserInfo

        AuthenticatedUserInfo getAuthenticatedUserInfo()
        Used to get the authenticated user info after the completed session.
        Returns:
        the authenticated user info
      • close

        void close()
        Close the handler and dispose internal resources. Implementations should be idempotent.
        Specified by:
        close in interface java.lang.AutoCloseable