@NotThreadSafe public final class PlainSaslServer extends Object implements SaslServer
evaluateResponse(byte[])
, it always assigns authentication ID to authorization ID
currently.Modifier and Type | Class and Description |
---|---|
static class |
PlainSaslServer.Factory
This class is used to create an instances of
PlainSaslServer . |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
boolean |
isComplete() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
public String getMechanismName()
getMechanismName
in interface SaslServer
@Nullable public byte[] evaluateResponse(byte[] response) throws SaslException
evaluateResponse
in interface SaslServer
SaslException
public boolean isComplete()
isComplete
in interface SaslServer
public String getAuthorizationID()
getAuthorizationID
in interface SaslServer
public byte[] unwrap(byte[] incoming, int offset, int len)
unwrap
in interface SaslServer
public byte[] wrap(byte[] outgoing, int offset, int len)
wrap
in interface SaslServer
@Nullable public Object getNegotiatedProperty(String propName)
getNegotiatedProperty
in interface SaslServer
public void dispose()
dispose
in interface SaslServer
Copyright © 2023. All Rights Reserved.