Class SaslConfigBuilder<R>
java.lang.Object
org.freedesktop.dbus.connections.config.SaslConfigBuilder<R>
Configuration used to setup a sasl authentication.
- Since:
- v4.2.2 - 2023-02-03
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptionback()Return to the previous builder.build()Returns the created configuration.Setup the authentication mode to use.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.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).
-
Method Details
-
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
Setup the authentication mode to use.
nullvalues will be ignored.- Parameters:
_types- auth mode to set- Returns:
- this
-
withSaslUid
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
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
-