public class PlatformCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler
TenantCallback,
ChallengeResponseCallback,
PlatformContext| Constructor and Description |
|---|
PlatformCallbackHandler(java.lang.String userID,
java.util.Locale locale)
Deprecated.
Constructs the handler with a user id and locale.
|
PlatformCallbackHandler(java.lang.String userID,
java.lang.String password)
Deprecated.
Constructs the handler with a user id and password.
|
PlatformCallbackHandler(java.lang.String tenantID,
java.lang.String userID,
java.util.Locale locale)
Deprecated.
Constructs the handler with a user id, locale, and tenant id.
|
PlatformCallbackHandler(java.lang.String tenantID,
java.lang.String userID,
java.lang.String password)
Deprecated.
Constructs the handler with a user id, password, and tenant id.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
getChallenges()
Deprecated.
Use getUserChallenges() instead
|
int |
getRemainingAttempts()
Deprecated.
Returns the number of unsuccessful login attempts remain before
the user's account is suspended.
|
java.util.Map |
getUserChallenges()
Deprecated.
Retrieves the required challenges to be fulfilled by client for
authentication without password.
|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Deprecated.
Handles the required callbacks.
|
void |
setPlatformContext(PlatformContext context)
Deprecated.
Sets the platform context.
|
void |
setProperties(java.util.Hashtable properties)
Deprecated.
Sets the custom properties required for custom authentication provider.
|
void |
setResponses(java.util.Map responses)
Deprecated.
Changes the responses to the challenges for the user.
|
public PlatformCallbackHandler(java.lang.String userID,
java.lang.String password)
userID - ID representing authenticating user.password - Private password of the user.public PlatformCallbackHandler(java.lang.String tenantID,
java.lang.String userID,
java.lang.String password)
tenantID - ID representing the tenant of the user.userID - ID representing authenticating user.password - Private password of the user.public PlatformCallbackHandler(java.lang.String userID,
java.util.Locale locale)
userID - ID representing authenticating user.locale - Locale of the user.public PlatformCallbackHandler(java.lang.String tenantID,
java.lang.String userID,
java.util.Locale locale)
tenantID - ID representing the tenant of the user.userID - ID representing authenticating user.locale - Locale of the user.public void setPlatformContext(PlatformContext context)
context - PlatformContext to connect with.public void setProperties(java.util.Hashtable properties)
public java.util.Map getChallenges()
throws java.rmi.RemoteException,
ApplicationException,
AuthenticationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to locate user.AuthenticationException - Thrown if unable to retrieve challenges.public java.util.Map getUserChallenges()
throws java.rmi.RemoteException,
ApplicationException,
javax.security.auth.login.FailedLoginException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to locate user.javax.security.auth.login.FailedLoginException - Thrown if unable to retrieve challenges.public int getRemainingAttempts()
throws java.rmi.RemoteException,
ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if unable to locate user.public void setResponses(java.util.Map responses)
responses - Map of challenges and the corresponding responses
for the user.The challenges must be the same as the
ones obtained from the getChallenges() call.public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - Callback[] of authentication callbacks to be
handled.javax.security.auth.callback.UnsupportedCallbackException - Thrown if a callback is passed
to the handler it does not support.java.io.IOException