Class SaslConfigBuilder<R>


  • public final class SaslConfigBuilder<R>
    extends java.lang.Object
    Configuration used to setup a sasl authentication.
    Since:
    v4.2.2 - 2023-02-03
    • Method Detail

      • back

        public TransportConfigBuilder<?,​R> back()
        Return to the previous builder.

        This allows you to return from the this builder to the builder which started this builder so you can continue using the previous builder.

        Returns:
        previous builder, maybe null
      • withSaslUid

        public SaslConfigBuilder<R> withSaslUid​(java.lang.Long _saslUid)
        Setup the user ID to use for authentication when using unix sockets.
        Will default to the user ID of the user running the current process.
        Parameters:
        _guid - guid to use
        Returns:
        this
      • withStrictCookiePermissions

        public SaslConfigBuilder<R> withStrictCookiePermissions​(boolean _strictCookiePermissions)
        Enable/disable checking of file permissions of the cookie files (used for DBUS_COOKIE_SHA1).
        Cookie permission check will only be used on Linux/Unix like OSes.
        Default is false (no strict checking).
        Parameters:
        _strictCookiePermissions - boolean
        Returns:
        this
      • build

        public SaslConfig build()
        Returns the created configuration.
        Returns:
        SaslConfig