Class SaslConfigBuilder<R>

java.lang.Object
org.freedesktop.dbus.connections.config.SaslConfigBuilder<R>

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

    • 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
    • withAuthMode

      public SaslConfigBuilder<R> withAuthMode(TransportBuilder.SaslAuthMode _types)
      Setup the authentication mode to use.
      null values will be ignored.
      Parameters:
      _types - auth mode to set
      Returns:
      this
    • withSaslUid

      public SaslConfigBuilder<R> withSaslUid(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:
      _saslUid - uid 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