Class SaslConfig
java.lang.Object
org.freedesktop.dbus.connections.config.SaslConfig
Bean contains configuration for SASL authentication.
- Since:
- 4.2.0 - 2022-07-22
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate Stringprivate SASL.SaslModeprivate OptionalLongprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaslConfigcreate()Deprecated, for removal: This API element is subject to removal in a future version.only intended for internal backward compatibility, will be removed soonintgetGuid()getMode()booleanWhether file descriptor passing is allowed.booleanWhether the permissions of the cookie files (used for DBUS_COOKIE_SHA1) should be checked.
Cookie permission check will only be used on Linux/Unix like OSes.voidsetAuthMode(int _types) voidsetFileDescriptorSupport(boolean _fileDescriptorSupport) Enable/disable support of file descriptor passing.voidvoidsetMode(SASL.SaslMode _mode) voidsetSaslUid(OptionalLong _saslUid) voidsetStrictCookiePermissions(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.
-
Field Details
-
mode
-
authMode
private int authMode -
guid
-
saslUid
-
strictCookiePermissions
private boolean strictCookiePermissions -
fileDescriptorSupport
private boolean fileDescriptorSupport
-
-
Constructor Details
-
SaslConfig
SaslConfig()
-
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.only intended for internal backward compatibility, will be removed soonCreates a new empty SaslConfig object- Returns:
- SaslConfig
-
getMode
-
setMode
-
getAuthMode
public int getAuthMode() -
setAuthMode
public void setAuthMode(int _types) -
getGuid
-
setGuid
-
getSaslUid
-
setSaslUid
-
isStrictCookiePermissions
public boolean isStrictCookiePermissions()Whether the permissions of the cookie files (used for DBUS_COOKIE_SHA1) should be checked.
Cookie permission check will only be used on Linux/Unix like OSes.- Returns:
- boolean
- Since:
- v4.2.2 - 2023-02-03
-
setStrictCookiePermissions
public void setStrictCookiePermissions(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.- Since:
- v4.2.2 - 2023-02-03
-
isFileDescriptorSupport
public boolean isFileDescriptorSupport()Whether file descriptor passing is allowed.- Returns:
- boolean
- Since:
- v4.2.2 - 2023-02-03
-
setFileDescriptorSupport
public void setFileDescriptorSupport(boolean _fileDescriptorSupport) Enable/disable support of file descriptor passing.- Since:
- v4.2.2 - 2023-02-03
-