• BlackBerry Spark AppSecure
  • Security library for Android applications
  • 0.7.915.0
AppIdentity Class Reference

Class providing a unique application instance identifier. More...

Description

One source of potential fraud is a malicious user pretending to be valid user but accessing from a unknown device.

This identifier can be used to determine if the user's session is originating from the same application instance and device when authenticating with your application server.

Public Member Functions

String getAppInstanceIdentifier ()
 Returns an unique ID for the application instance. More...
 
Map< String, String > getApplicationAuthenticityIdentifiers ()
 Returns a map containing several authenticity identifiers. More...
 

Static Public Attributes

static final String AUTHENTICITY_ID = "AUTHENTICITY_ID"
 Constant key value for the authenticity identifier. More...
 
static final String AUTHENTICITY_ID_VERSIONED = "AUTHENTICITY_ID_VERSIONED"
 Constant key value for the versioned authenticity identifier. More...
 
static final String AUTHENTICITY_ID_EPHEMERAL = "AUTHENTICITY_ID_EPHEMERAL"
 Constant key value for the ephemeral authenticity identifier. More...
 

Member Function Documentation

◆ getAppInstanceIdentifier()

String getAppInstanceIdentifier ( )

Returns an unique ID which is constant for a single activated instance of the application.

This identifier is never shared or known by BlackBerry.

Returns
String with unique ID.

◆ getApplicationAuthenticityIdentifiers()

Map<String, String> getApplicationAuthenticityIdentifiers ( )

Returns a map containing several authenticity identifiers.

These identifiers are never shared or known by BlackBerry.

Member Data Documentation

◆ AUTHENTICITY_ID

final String AUTHENTICITY_ID = "AUTHENTICITY_ID"
static

Constant key value for the authenticity identifier. This value remains constant.

◆ AUTHENTICITY_ID_VERSIONED

final String AUTHENTICITY_ID_VERSIONED = "AUTHENTICITY_ID_VERSIONED"
static

Constant key value for the authenticity identifier which is unique to the version of the application.

◆ AUTHENTICITY_ID_EPHEMERAL

final String AUTHENTICITY_ID_EPHEMERAL = "AUTHENTICITY_ID_EPHEMERAL"
static

Constant key value for the authenticity identifier which changes every 10-12 days.