public class AuthDescriptor
extends java.lang.Object
Constructor and Description |
---|
AuthDescriptor(java.lang.String[] m,
javax.security.auth.callback.CallbackHandler h)
Request authentication using the given list of mechanisms and callback
handler.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AuthDescriptor(java.lang.String[] m, javax.security.auth.callback.CallbackHandler h)
m
- list of mechanismsh
- the callback handler for grabbing credentials and stuffpublic static AuthDescriptor typical(java.lang.String u, java.lang.String p)
u
- the usernamep
- the passwordpublic boolean authThresholdReached()
public java.lang.String[] getMechs()
public javax.security.auth.callback.CallbackHandler getCallback()
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.