public class PlainSaslServer extends Object implements MultiTenantSaslServer
| Modifier and Type | Class and Description |
|---|---|
static class |
PlainSaslServer.PlainSaslServerFactory |
| Modifier and Type | Field and Description |
|---|---|
static String |
PLAIN_MECHANISM |
| Constructor and Description |
|---|
PlainSaslServer(List<AppConfigurationEntry> jaasContextEntries,
io.confluent.kafka.server.plugins.auth.SaslAuthenticator authenticator) |
PlainSaslServer(List<AppConfigurationEntry> jaasContextEntries,
io.confluent.kafka.server.plugins.auth.SaslAuthenticator authenticator,
org.apache.kafka.common.security.authenticator.PathAwareSniHostName sniHostName) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
boolean |
isComplete() |
TenantMetadata |
tenantMetadata() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
String |
userIdentifier() |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
public static final String PLAIN_MECHANISM
public PlainSaslServer(List<AppConfigurationEntry> jaasContextEntries, io.confluent.kafka.server.plugins.auth.SaslAuthenticator authenticator)
public PlainSaslServer(List<AppConfigurationEntry> jaasContextEntries, io.confluent.kafka.server.plugins.auth.SaslAuthenticator authenticator, org.apache.kafka.common.security.authenticator.PathAwareSniHostName sniHostName)
public byte[] evaluateResponse(byte[] response)
throws SaslException
evaluateResponse in interface SaslServerSaslExceptionpublic TenantMetadata tenantMetadata()
tenantMetadata in interface MultiTenantSaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerpublic String getMechanismName()
getMechanismName in interface SaslServerpublic Object getNegotiatedProperty(String propName)
getNegotiatedProperty in interface SaslServerpublic boolean isComplete()
isComplete in interface SaslServerpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
unwrap in interface SaslServerpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
wrap in interface SaslServerpublic void dispose()
dispose in interface SaslServerpublic String userIdentifier()
userIdentifier in interface MultiTenantSaslServer