Interface AuthenticationServer

  • All Superinterfaces:
    java.lang.AutoCloseable, io.grpc.BindableService, java.io.Closeable
    All Known Implementing Classes:
    DefaultAuthenticationServer

    public interface AuthenticationServer
    extends io.grpc.BindableService, java.io.Closeable
    Interface for authentication server implementations.
    • Method Detail

      • registerChannel

        void registerChannel​(java.util.UUID channelId,
                             AuthenticatedUserInfo userInfo,
                             AuthenticatedChannelServerDriver saslDriver)
        Registers new user against given channel.
        Parameters:
        channelId - channel id
        userInfo - authanticated user info
        saslDriver - sasl server driver
      • unregisterChannel

        void unregisterChannel​(java.util.UUID channelId)
        Unregisters given channel.
        Parameters:
        channelId - channel id
      • createSaslHandler

        SaslServerHandler createSaslHandler​(alluxio.grpc.ChannelAuthenticationScheme scheme)
                                     throws javax.security.sasl.SaslException
        Creates server-side Sasl handler for given scheme.
        Parameters:
        scheme - the authentication scheme
        Returns:
        the created SaslServerHandler instance
        Throws:
        javax.security.sasl.SaslException
      • close

        void close()
            throws java.io.IOException
        Closes the server, releases all authentication sessions.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException