Digital Authentication Framework  6.0.1.37
Public Member Functions | Static Public Attributes | List of all members
com.good.daf.app.AuthenticationWarning Class Reference

(NEW IN 2.0) Describes warning to be given to user during authentication. More...

Public Member Functions

 AuthenticationWarning (int reason, String message, Bitmap icon)
 DAF applications should not need to call the constructor. More...
 
int getReason ()
 Returns type of operation which is generating the warning. More...
 
String getReasonString ()
 Returns text equivalent of operation type. More...
 
String getMessage ()
 Returns text of warning message. More...
 
Bitmap getIcon ()
 Returns icon to display on warning UI. More...
 

Static Public Attributes

static final int REASON_EASY_ACTIVATION = 1
 Another app is requesting Easy Activation.
 
static final int REASON_GET_KEY_INFO = 2
 Another app is requesting information on our keys.
 
static final int REASON_SIGN_REQUEST = 3
 Another app is requesting that we sign something.
 
static final int REASON_DECRYPT_REQUEST = 4
 Another app is requesting that we decrypt something.
 

Detailed Description

(NEW IN 2.0) Describes warning to be given to user during authentication.

Constructor & Destructor Documentation

com.good.daf.app.AuthenticationWarning.AuthenticationWarning ( int  reason,
String  message,
Bitmap  icon 
)

DAF applications should not need to call the constructor.

Member Function Documentation

Bitmap com.good.daf.app.AuthenticationWarning.getIcon ( )

Returns icon to display on warning UI.

For Easy Activation, will display the app icon for the GD application making the request.

String com.good.daf.app.AuthenticationWarning.getMessage ( )

Returns text of warning message.

This message should be displayed to the user. For Easy Activation, this will include the name of the GD application which is making the request.

int com.good.daf.app.AuthenticationWarning.getReason ( )

Returns type of operation which is generating the warning.

Returns REASON_EASY_ACTIVATION (etc.) to allow programmatic inspection of the current warning type.

String com.good.daf.app.AuthenticationWarning.getReasonString ( )

Returns text equivalent of operation type.

Returns "Easy Activation", or a similar string, to assist in customising the UI for different warning types.

Note that this string is not localised.


The documentation for this class was generated from the following file: