public class AuthInfo extends Object
Constructor and Description |
---|
AuthInfo(CallbackHandler callbackHandler,
String[] mechanisms) |
Modifier and Type | Method and Description |
---|---|
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 © 2021. All rights reserved.