com.sun.identity.authentication.spi
インタフェース AMAuthCallBack


public interface AMAuthCallBack

The AMAuthCallBack interface should be implemented by external business logic code, in order to receive callbacks from the authentication framework when one of the following events happens :

The event type and related information are passed through the method call AMAuthCallBack.authEventCallback(int, java.util.Map). The event parameters are stored in a hash map. See information about public static fields for more details.

A plug-in class, which implements this interface, can retrieve the event parameters using the get() function of the Map interface : eventParams.get(TIME_KEY); eventParams.get(USER_KEY); etc.


フィールドの概要
static int ACCOUNT_LOCKOUT
          The constant for the ACCOUNT LOCKOUT event type.
static int PASSWORD_CHANGE
          The constant for the PASSWORD CHANGE event type.
static String REALM_KEY
          The key for the value of the module's realm, for which the callback was triggered.
static String TIME_KEY
          The key for the value of the callback notification time (i.e. when the event occured).
static String USER_KEY
          The key for the value of the user's identity for which the callback was triggered.
 
メソッドの概要
 void authEventCallback(int eventType, Map eventParams)
          Receives the event notifications when the user status changes during the authentication process.
 

フィールドの詳細

TIME_KEY

static final String TIME_KEY
The key for the value of the callback notification time (i.e. when the event occured).

関連項目:
定数フィールド値

REALM_KEY

static final String REALM_KEY
The key for the value of the module's realm, for which the callback was triggered.

関連項目:
定数フィールド値

USER_KEY

static final String USER_KEY
The key for the value of the user's identity for which the callback was triggered.

関連項目:
定数フィールド値

PASSWORD_CHANGE

static final int PASSWORD_CHANGE
The constant for the PASSWORD CHANGE event type.

関連項目:
定数フィールド値

ACCOUNT_LOCKOUT

static final int ACCOUNT_LOCKOUT
The constant for the ACCOUNT LOCKOUT event type.

関連項目:
定数フィールド値
メソッドの詳細

authEventCallback

void authEventCallback(int eventType,
                       Map eventParams)
                       throws AMAuthCallBackException
Receives the event notifications when the user status changes during the authentication process. It includes the type of event and other information pertinent to this event.

パラメータ:
eventType - the type of event for which this method is being called
eventParams - a map of different parameters meaningful for this event.
例外:
AMAuthCallBackException - can be thrown back if necessary (currently not supported). It will be ignored by authentication processing classes.