@InterfaceAudience.Private public class SaslPlainServer extends Object implements SaslServer
Modifier and Type | Class and Description |
---|---|
static class |
SaslPlainServer.SaslPlainServerFactory |
static class |
SaslPlainServer.SecurityProvider |
Modifier and Type | Field and Description |
---|---|
private String |
authz |
private CallbackHandler |
cbh |
private boolean |
completed |
Constructor and Description |
---|
SaslPlainServer(CallbackHandler callback) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
boolean |
isComplete() |
private void |
throwIfNotComplete() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
private CallbackHandler cbh
private boolean completed
SaslPlainServer(CallbackHandler callback)
public String getMechanismName()
getMechanismName
in interface SaslServer
public byte[] evaluateResponse(byte[] response) throws SaslException
evaluateResponse
in interface SaslServer
SaslException
private void throwIfNotComplete()
public boolean isComplete()
isComplete
in interface SaslServer
public String getAuthorizationID()
getAuthorizationID
in interface SaslServer
public Object getNegotiatedProperty(String propName)
getNegotiatedProperty
in interface SaslServer
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
wrap
in interface SaslServer
SaslException
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
unwrap
in interface SaslServer
SaslException
public void dispose() throws SaslException
dispose
in interface SaslServer
SaslException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.