public class AuthenticatorHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AuthenticatorHelper.AuthenticatorCallback
Provide a callback with a properly configured authenticator, in most
cases the protected method getPasswordAuthentication will be called
come JDK 8 I could I would just pass in a method reference here instead
but this is probably the best way to deal with this at the moment
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearAuthenticatorCallback()
Clear the callback for this thread
|
static AuthenticatorHelper.AuthenticatorCallback |
getAuthenticatorCallback() |
static void |
setAuthenticatorCallback(AuthenticatorHelper.AuthenticatorCallback cb) |
public static AuthenticatorHelper.AuthenticatorCallback getAuthenticatorCallback()
public static void setAuthenticatorCallback(AuthenticatorHelper.AuthenticatorCallback cb)
cb - To be set for just this threadjava.lang.IllegalStateException - If a callback has already been setpublic static void clearAuthenticatorCallback()
java.lang.IllegalStateException - If there is no callback to set