net.spy.memcached.auth
Class AuthDescriptor
java.lang.Object
net.spy.memcached.auth.AuthDescriptor
public class AuthDescriptor
- extends Object
Information required to specify authentication mechanisms and callbacks.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mechs
public final String[] mechs
cbh
public final CallbackHandler cbh
AuthDescriptor
public AuthDescriptor(String[] m,
CallbackHandler h)
- Request authentication using the given list of mechanisms and callback
handler.
- Parameters:
m - list of mechanismsh - the callback handler for grabbing credentials and stuff
typical
public static AuthDescriptor typical(String u,
String p)
- Get a typical auth descriptor for CRAM-MD5 or PLAIN auth with the given
username and password.
- Parameters:
u - the usernamep - the password
- Returns:
- an AuthDescriptor
authThresholdReached
public boolean authThresholdReached()