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,
String networkId) |
| Modifier and Type | Method and Description |
|---|---|
String |
authenticationId() |
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
boolean |
isComplete() |
Optional<String> |
networkId() |
io.confluent.kafka.multitenant.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, String networkId)
public byte[] evaluateResponse(byte[] response)
throws SaslException
evaluateResponse in interface SaslServerSaslExceptionpublic io.confluent.kafka.multitenant.TenantMetadata tenantMetadata()
tenantMetadata in interface MultiTenantSaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerpublic String authenticationId()
authenticationId in interface MultiTenantSaslServerpublic 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 MultiTenantSaslServerpublic Optional<String> networkId()
networkId in interface MultiTenantSaslServer