Class AbstractSaslClientHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.security.sasl.SaslClient mSaslClient
      Underlying SaslClient.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractSaslClientHandler​(alluxio.grpc.ChannelAuthenticationScheme authScheme)
      Creates an abstract sasl handler for given scheme.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      This is synchronized in order to protect mSaslClient.
      alluxio.grpc.SaslMessage handleMessage​(alluxio.grpc.SaslMessage message)
      This is synchronized in order to protect mSaslClient.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mSaslClient

        protected javax.security.sasl.SaslClient mSaslClient
        Underlying SaslClient.
    • Constructor Detail

      • AbstractSaslClientHandler

        public AbstractSaslClientHandler​(alluxio.grpc.ChannelAuthenticationScheme authScheme)
        Creates an abstract sasl handler for given scheme.
        Parameters:
        authScheme - channel authentication scheme
    • Method Detail

      • handleMessage

        public alluxio.grpc.SaslMessage handleMessage​(alluxio.grpc.SaslMessage message)
                                               throws javax.security.sasl.SaslException
        This is synchronized in order to protect mSaslClient.
        Specified by:
        handleMessage in interface SaslClientHandler
        Parameters:
        message - server-side Sasl message to handle
        Returns:
        client's answer. null if client is completed
        Throws:
        javax.security.sasl.SaslException
      • close

        public void close()
        This is synchronized in order to protect mSaslClient.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface SaslClientHandler