Gallagher Mobile Connect SDK
Public Member Functions | List of all members
com.gallagher.security.mobileaccess.DigitalId Class Reference

Inherits Serializable.

Public Member Functions

byte[] getId ()
 Returns the unique identifier for this Digital ID Card. More...
 
String getCredentialId ()
 Returns the ID of the Mobile Credential which this Digital ID is associated with. More...
 
String getName ()
 Returns the Display Name of this Digital ID card. More...
 
Date getActivationTime ()
 Returns the Date/Time after which this Digital ID card should be considered active. More...
 
Date getExpiryTime ()
 Returns the Date/Time after which this Digital ID card should be considered expired. More...
 
String getStatusValue ()
 Returns a Display String representing the status of this Digital ID Card (e.g. "Expired") More...
 
DigitalIdStatusType getStatusType ()
 Returns the status of this Digital ID Card. More...
 
byte[] getFrontSide ()
 
byte[] getRearSide ()
 
int getSourceSiteFacilityId ()
 
boolean equals (@Nullable Object obj)
 
int hashCode ()
 

Member Function Documentation

◆ equals()

boolean com.gallagher.security.mobileaccess.DigitalId.equals ( @Nullable Object  obj)
94 {
95 if (this == obj)
96 return true;
97
98 return obj instanceof DigitalId &&
99 Arrays.equals(mId, ((DigitalId) obj).mId) && mCredentialId.equals(((DigitalId) obj).mCredentialId);
100 }

◆ getActivationTime()

Date com.gallagher.security.mobileaccess.DigitalId.getActivationTime ( )

Returns the Date/Time after which this Digital ID card should be considered active.

60{ return mActivationTime; }

◆ getCredentialId()

String com.gallagher.security.mobileaccess.DigitalId.getCredentialId ( )

Returns the ID of the Mobile Credential which this Digital ID is associated with.

52{ return mCredentialId; }

◆ getExpiryTime()

Date com.gallagher.security.mobileaccess.DigitalId.getExpiryTime ( )

Returns the Date/Time after which this Digital ID card should be considered expired.

64{ return mExpiryTime; }

◆ getFrontSide()

byte[] com.gallagher.security.mobileaccess.DigitalId.getFrontSide ( )

Returns the raw image bytes of the Front Side image for this Digital ID card. This is most likely a JPEG image that you can decode with BitmapFactory.decodeByteArray

77{ return mFrontSide; }

◆ getId()

byte[] com.gallagher.security.mobileaccess.DigitalId.getId ( )

Returns the unique identifier for this Digital ID Card.

48{ return mId; }

◆ getName()

String com.gallagher.security.mobileaccess.DigitalId.getName ( )

Returns the Display Name of this Digital ID card.

56{ return mName; }

◆ getRearSide()

byte[] com.gallagher.security.mobileaccess.DigitalId.getRearSide ( )

Returns the raw image bytes of the Rear Side image for this Digital ID card. Will return null if the card does not have a Rear Side. This is most likely a JPEG image that you can decode with BitmapFactory.decodeByteArray

83{ return mRearSide; }

◆ getSourceSiteFacilityId()

int com.gallagher.security.mobileaccess.DigitalId.getSourceSiteFacilityId ( )

If the associated Mobile Credential has Credential Sharing enabled, this Digital ID may have been issued by a share-destination site, rather than the original credential issuer. This value can be used to reference which site issued the Digital ID

88{ return mSourceSiteFacilityId; }

◆ getStatusType()

DigitalIdStatusType com.gallagher.security.mobileaccess.DigitalId.getStatusType ( )

Returns the status of this Digital ID Card.

72{ return mStatusType; }

◆ getStatusValue()

String com.gallagher.security.mobileaccess.DigitalId.getStatusValue ( )

Returns a Display String representing the status of this Digital ID Card (e.g. "Expired")

68{ return mStatusValue; }

◆ hashCode()

int com.gallagher.security.mobileaccess.DigitalId.hashCode ( )
106 {
107 return Arrays.hashCode(mId) ^ mCredentialId.hashCode();
108 }

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