Package org.apache.zookeeper.util.scram
Class ScramSaslClient
java.lang.Object
org.apache.zookeeper.util.scram.ScramSaslClient
- All Implemented Interfaces:
SaslClient
SCRAM-SHA-256 client per RFC 5802/7677, without channel binding or a
security layer. Constructed directly (no SASL provider registration).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()byte[]evaluateChallenge(byte[] challenge) getNegotiatedProperty(String propName) booleanbooleanbyte[]unwrap(byte[] incoming, int offset, int len) byte[]wrap(byte[] outgoing, int offset, int len)
-
Constructor Details
-
ScramSaslClient
-
-
Method Details
-
getMechanismName
- Specified by:
getMechanismNamein interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()- Specified by:
hasInitialResponsein interfaceSaslClient
-
evaluateChallenge
- Specified by:
evaluateChallengein interfaceSaslClient- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceSaslClient
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) - Specified by:
unwrapin interfaceSaslClient
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) - Specified by:
wrapin interfaceSaslClient
-
getNegotiatedProperty
- Specified by:
getNegotiatedPropertyin interfaceSaslClient
-
dispose
public void dispose()- Specified by:
disposein interfaceSaslClient
-