public class AuthInfo extends Object
| 构造器和说明 |
|---|
AuthInfo(CallbackHandler callbackHandler,
String[] mechanisms) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AuthInfo |
cramMD5(String username,
String password)
Get a typical auth descriptor for CRAM-MD5 auth with the given username
and password.
|
CallbackHandler |
getCallbackHandler() |
int |
getMaxAttempts() |
String[] |
getMechanisms() |
void |
increaseAttempts() |
boolean |
isFirstTime() |
boolean |
isValid() |
static AuthInfo |
plain(String username,
String password)
Get a typical auth descriptor for PLAIN auth with the given username and
password.
|
static AuthInfo |
typical(String username,
String password)
Get a typical auth descriptor for CRAM-MD5 or PLAIN auth with the given
username and password.
|
public AuthInfo(CallbackHandler callbackHandler, String[] mechanisms)
public boolean isValid()
public boolean isFirstTime()
public void increaseAttempts()
public int getMaxAttempts()
public static AuthInfo plain(String username, String password)
u - the usernamep - the passwordpublic static AuthInfo cramMD5(String username, String password)
u - the usernamep - the passwordpublic static AuthInfo typical(String username, String password)
u - the usernamep - the passwordpublic CallbackHandler getCallbackHandler()
public String[] getMechanisms()
Copyright © 2013. All Rights Reserved.