Klasse 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.
Seit:
v4.2.2 - 2023-02-03
Autor:
hypfvieh
  • Methodendetails

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

      Gibt zurück:
      previous builder, maybe null
    • withAuthMode

      public SaslConfigBuilder<R> withAuthMode(TransportBuilder.SaslAuthMode _types)
      Setup the authentication mode to use.
      null values will be ignored.
      Parameter:
      _types - auth mode to set
      Gibt zurück:
      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.
      Parameter:
      _saslUid - uid to use
      Gibt zurück:
      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).
      Parameter:
      _strictCookiePermissions - boolean
      Gibt zurück:
      this
    • build

      public SaslConfig build()
      Returns the created configuration.
      Gibt zurück:
      SaslConfig