Package com.lucimber.dbus.netty.sasl
Class CookieSaslMechanism
java.lang.Object
com.lucimber.dbus.netty.sasl.CookieSaslMechanism
- All Implemented Interfaces:
SaslMechanism
SASL mechanism implementation for D-Bus COOKIE_SHA1 authentication.
Security Warning: This mechanism uses SHA-1 hashing as mandated by the D-Bus specification. While SHA-1 is cryptographically weak, it cannot be replaced without breaking compatibility with the D-Bus protocol standard.
The DBUS_COOKIE_SHA1 mechanism is defined in the D-Bus specification and requires SHA-1 for compatibility with all D-Bus implementations. This is a protocol-level requirement, not an implementation choice.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
io.netty.util.concurrent.Future<String>
getInitialResponseAsync
(io.netty.channel.ChannelHandlerContext ctx) getName()
void
init
(io.netty.channel.ChannelHandlerContext ctx) boolean
io.netty.util.concurrent.Future<String>
processChallengeAsync
(io.netty.channel.ChannelHandlerContext ctx, String challengeHex)
-
Constructor Details
-
CookieSaslMechanism
public CookieSaslMechanism()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceSaslMechanism
-
init
- Specified by:
init
in interfaceSaslMechanism
- Throws:
SaslMechanismException
-
getInitialResponseAsync
public io.netty.util.concurrent.Future<String> getInitialResponseAsync(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
getInitialResponseAsync
in interfaceSaslMechanism
-
processChallengeAsync
public io.netty.util.concurrent.Future<String> processChallengeAsync(io.netty.channel.ChannelHandlerContext ctx, String challengeHex) - Specified by:
processChallengeAsync
in interfaceSaslMechanism
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceSaslMechanism
-
dispose
public void dispose()- Specified by:
dispose
in interfaceSaslMechanism
-