public class AMAuthCallBackImpl extends Object
AMAuthCallBackImpl
class provides 2 convenient methods
that correspond to the use cases mentioned above : account lockout and
password change . These methods
should be called when one of the events has happened. Each method calls
the private utility method, processedEvent
, and takes care
of associating the appropriate event type.
Instances of this class should be called via the getInstance
method. It returns a singleton associated with the corresponding
realm or organization. The class holds a map of instantiated objects. Each
object holds a map of instantiated plug-in classes for a particular
realm or organization. These plug-in classes are accessed via the
AMAuthCallBack
plug-in class, which serves as a base for the
custom business logic.
Sample call :
callbackImpl = AMAuthCallBackImpl.getInstance( realm ); callbackImpl.processedAccounttLockout( now, userDN );
AMAuthCallBackException
,
AMAuthCallBack
Modifier and Type | Method and Description |
---|---|
static AMAuthCallBackImpl |
getInstance(String aRealm)
Public accessor for the singleton.
|
void |
processedAccounttLockout(Long eventTime,
String userDN)
Calls the plug-in class(es) when an account lockout has been processed
by an authentication module.
|
void |
processedEvent(int eventType,
Map eventParams)
Calls the plug-in class(es) when an event has been processed
by an authentication module.
|
void |
processedPasswordChange(Long eventTime,
String userDN)
Calls the plug-in class(es) when a password change has been processed
by an authentication module.
|
public static final AMAuthCallBackImpl getInstance(String aRealm) throws AMAuthCallBackException
aRealm
- the name of the realm for which to get the callbacksAMAuthCallBackException
- if there was an initialization error
during the construction of the singleton.public void processedPasswordChange(Long eventTime, String userDN) throws AMAuthCallBackException
eventTime
- the time when the event occurreduserDN
- the user's DN for which the event occurredAMAuthCallBackException
- the exception raised by the plug-inpublic void processedAccounttLockout(Long eventTime, String userDN) throws AMAuthCallBackException
eventTime
- the time when the event occurreduserDN
- the user's DN for which the event occurredAMAuthCallBackException
- the exception raised by the plug-inpublic void processedEvent(int eventType, Map eventParams) throws AMAuthCallBackException
eventType
- the type of event being processedeventParams
- the map of parameters for the current eventAMAuthCallBackException
- the exception raised by the plug-inCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.