Package com.lucimber.dbus.netty.sasl
package com.lucimber.dbus.netty.sasl
Netty-specific SASL authentication mechanism implementations.
This package contains the Netty channel handlers and mechanism implementations for D-Bus SASL authentication. It provides concrete implementations of the authentication mechanisms defined in the D-Bus specification:
ExternalSaslMechanism
- EXTERNAL mechanism using Unix credentialsCookieSaslMechanism
- DBUS_COOKIE_SHA1 mechanismAnonymousSaslMechanism
- ANONYMOUS mechanism
Getting Started
For first-time users: This package handles authentication automatically. You
typically won't interact with these classes directly. To configure authentication, use com.lucimber.dbus.connection.sasl.SaslAuthConfig
with your connection configuration.
The authentication process is handled by:
SaslInitiationHandler
- Initiates SASL handshakeSaslAuthenticationHandler
- Manages authentication state machineSaslCodec
- Encodes/decodes SASL messages
-
ClassDescriptionImplements the ANONYMOUS SASL mechanism as defined in the D-Bus specification.Utility to determine the authorization identity for use with the EXTERNAL SASL mechanism.SASL mechanism implementation for D-Bus COOKIE_SHA1 authentication.A Netty channel handler that initiates the DBus SASL authentication process by sending a NUL byte when the channel becomes active.Decoder: Accumulates ASCII bytes until CRLF, then maps to SaslMessage.Encodes a SaslMessage into a US-ASCII line terminated with CRLF, as required by the D-Bus SASL protocol.