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