public class ScramSha1SaslServer extends Object implements SaslServer
| Constructor and Description |
|---|
ScramSha1SaslServer() |
| 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 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.