public class SaslServerPlainImpl extends Object implements SaslServer
client ----- {authzid, authcid, password} -----> server
Each paramater sent to the server is seperated by a null character The authorization ID (authzid) may be empty.| Constructor and Description |
|---|
SaslServerPlainImpl(String protocol,
String serverFqdn,
Map props,
CallbackHandler cbh) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of any system resources or security-sensitive information
the SaslServer might be using.
|
byte[] |
evaluateResponse(byte[] response)
Evaluates the response data and generates a challenge.
|
String |
getAuthorizationID()
Reports the authorization ID in effect for the client of this
session.
|
String |
getMechanismName()
Returns the IANA-registered mechanism name of this SASL server.
|
Object |
getNegotiatedProperty(String propName)
Retrieves the negotiated property.
|
boolean |
isComplete()
Determines whether the authentication exchange has completed.
|
byte[] |
unwrap(byte[] incoming,
int offset,
int len)
Unwraps a byte array received from the client.
|
byte[] |
wrap(byte[] outgoing,
int offset,
int len)
Wraps a byte array to be sent to the client.
|
public SaslServerPlainImpl(String protocol, String serverFqdn, Map props, CallbackHandler cbh) throws SaslException
SaslExceptionpublic String getMechanismName()
getMechanismName in interface SaslServerpublic byte[] evaluateResponse(byte[] response)
throws SaslException
evaluateResponse in interface SaslServerresponse - The non-null (but possibly empty) response sent
by the client.SaslException - If an error occurred while processing
the response or generating a challenge.public boolean isComplete()
isComplete in interface SaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerIllegalStateException - if this authentication session has not completedpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslServerSaslException - if attempted to use this method.public byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslServerSaslException - if attempted to use this method.public Object getNegotiatedProperty(String propName)
getNegotiatedProperty in interface SaslServerpropName - the propertyIllegalStateException - if this authentication exchange has not completedpublic void dispose()
throws SaslException
dispose in interface SaslServerSaslException - If a problem was encountered while disposing
the resources.Copyright © 2003-2008 Jive Software.