net.spy.memcached.auth
Class AuthDescriptor

java.lang.Object
  extended by net.spy.memcached.auth.AuthDescriptor

public class AuthDescriptor
extends java.lang.Object

Information required to specify authentication mechanisms and callbacks.


Constructor Summary
AuthDescriptor(java.lang.String[] m, javax.security.auth.callback.CallbackHandler h)
          Request authentication using the given list of mechanisms and callback handler.
 
Method Summary
 boolean authThresholdReached()
           
 javax.security.auth.callback.CallbackHandler getCallback()
           
 java.lang.String[] getMechs()
           
static AuthDescriptor typical(java.lang.String u, java.lang.String p)
          Get a typical auth descriptor for CRAM-MD5 or PLAIN auth with the given username and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthDescriptor

public AuthDescriptor(java.lang.String[] m,
                      javax.security.auth.callback.CallbackHandler h)
Request authentication using the given list of mechanisms and callback handler.

Parameters:
m - list of mechanisms
h - the callback handler for grabbing credentials and stuff
Method Detail

typical

public static AuthDescriptor typical(java.lang.String u,
                                     java.lang.String p)
Get a typical auth descriptor for CRAM-MD5 or PLAIN auth with the given username and password.

Parameters:
u - the username
p - the password
Returns:
an AuthDescriptor

authThresholdReached

public boolean authThresholdReached()

getMechs

public java.lang.String[] getMechs()

getCallback

public javax.security.auth.callback.CallbackHandler getCallback()


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.