public class PlainSaslServer extends Object implements SaslServer
SaslServer for Plain text mechanism.
Response data will be in following format.
message = [authzid] UTF8NUL authcid UTF8NUL passwd
authzid = authorization identity
authcid = authentication identity
passwd = password| Constructor and Description |
|---|
PlainSaslServer(PlainSaslCallbackHandler callbackHandler) |
| 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 PlainSaslServer(PlainSaslCallbackHandler callbackHandler)
public String getMechanismName()
getMechanismName in interface SaslServerpublic byte[] evaluateResponse(byte[] response)
throws SaslException
evaluateResponse in interface SaslServerSaslExceptionpublic boolean isComplete()
isComplete in interface SaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslServerSaslExceptionpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslServerSaslExceptionpublic Object getNegotiatedProperty(String propName)
getNegotiatedProperty in interface SaslServerpublic void dispose()
throws SaslException
dispose in interface SaslServerSaslExceptionCopyright © 2018 WSO2. All rights reserved.