public class JiveSharedSecretSaslServer extends Object implements SaslServer
| Constructor and Description |
|---|
JiveSharedSecretSaslServer() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
authenticateSharedSecret(String digest)
Returns true if the supplied digest matches the shared secret value.
|
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
static String |
getSharedSecret()
Returns the shared secret value, or null if shared secret authentication is disabled.
|
boolean |
isComplete() |
static boolean |
isSharedSecretAllowed()
Returns true if shared secret authentication is enabled.
|
static void |
setSharedSecretAllowed(boolean sharedSecretAllowed)
Sets whether shared secret authentication is enabled.
|
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
public static final String NAME
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 SaslServerSaslExceptionpublic static boolean authenticateSharedSecret(String digest)
digest - the MD5 hash of the secret key, encoded as hex.public static boolean isSharedSecretAllowed()
public static String getSharedSecret()
public static void setSharedSecretAllowed(boolean sharedSecretAllowed)
sharedSecretAllowed - true if shared secret authentication should be enabled.Copyright © 2003-2008 Jive Software.