Class IdBarcodeRecognizer.Result

    • Constructor Detail

      • Result

        protected Result​(long nativeResult)
    • Method Detail

      • getLastName

        public java.lang.String getLastName()
        The last name of the document owner.
      • getExtendedElements

        public BarcodeElements getExtendedElements()
        Document specific extended elements that contain all barcode fields in their original form. Currently this is only filled for AAMVACompliant documents.
      • getDocumentType

        public IdBarcodeDocumentType getDocumentType()
        The document type deduced from the recognized barcode
      • getCity

        public java.lang.String getCity()
        The city address portion of the document owner.
      • getDocumentNumber

        public java.lang.String getDocumentNumber()
        The document number.
      • getPersonalIdNumber

        public java.lang.String getPersonalIdNumber()
        The personal identification number.
      • getBarcodeType

        public BarcodeType getBarcodeType()
        The format of the scanned barcode.
      • getJurisdiction

        public java.lang.String getJurisdiction()
        The jurisdiction code address portion of the document owner.
      • getPostalCode

        public java.lang.String getPostalCode()
        The postal code address portion of the document owner.
      • getRawData

        public byte[] getRawData()
        The raw bytes contained inside barcode.
      • isUncertain

        public boolean isUncertain()
        True if returned result is uncertain, i.e. if scanned barcode was incomplete (i.e. (has parts of it missing).
      • getStreet

        public java.lang.String getStreet()
        The street address portion of the document owner.
      • getResidentialStatus

        public java.lang.String getResidentialStatus()
        The residential status of the document owner.
      • getEmployer

        public java.lang.String getEmployer()
        The employer of the document owner.
      • getVehicleClass

        public java.lang.String getVehicleClass()
        The type of vehicle the driver license owner has privilege to drive.
      • getProfession

        public java.lang.String getProfession()
        The profession of the document owner.
      • getDateOfExpiry

        public DateResult getDateOfExpiry()
        The date of expiry of the document.
      • getPlaceOfBirth

        public java.lang.String getPlaceOfBirth()
        The place of birth of the document owner.
      • getAddress

        public java.lang.String getAddress()
        The address of the document owner.
      • getRace

        public java.lang.String getRace()
        The race of the document owner.
      • getSex

        public java.lang.String getSex()
        The sex of the document owner.
      • getFullName

        public java.lang.String getFullName()
        The full name of the document owner.
      • getRestrictions

        public java.lang.String getRestrictions()
        The restrictions to driving privileges for the driver license owner.
      • getDateOfBirth

        public DateResult getDateOfBirth()
        The date of birth of the document owner.
      • getDocumentAdditionalNumber

        public java.lang.String getDocumentAdditionalNumber()
        The additional number of the document.
      • getDateOfIssue

        public DateResult getDateOfIssue()
        The date of issue of the document.
      • getStringData

        public java.lang.String getStringData()
        String representation of data inside barcode.
      • getReligion

        public java.lang.String getReligion()
        The religion of the document owner.
      • getFirstName

        public java.lang.String getFirstName()
        The first name of the document owner.
      • getIssuingAuthority

        public java.lang.String getIssuingAuthority()
        The issuing authority of the document.
      • getNationality

        public java.lang.String getNationality()
        The nationality of the documet owner.
      • getAdditionalNameInformation

        public java.lang.String getAdditionalNameInformation()
        The additional name information of the document owner.
      • getEndorsements

        public java.lang.String getEndorsements()
        The additional privileges granted to the driver license owner.
      • getMiddleName

        public java.lang.String getMiddleName()
        The middle name of the document owner.
      • getMaritalStatus

        public java.lang.String getMaritalStatus()
        The marital status of the document owner.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
        string version of this result
      • getAge

        public int getAge()
        The current age of the document owner in years. It is calculated difference between now and date of birth. Now is current time on the device.
        current age of the document owner in years or -1 if date of birth is unknown.
      • getAgeLimitStatus

        public AgeLimitStatus getAgeLimitStatus​(int ageLimit)
        Calculates whether the document owner is older than the given ageLimit in years or not. Status is calculated by using the date of birth and the current time on the device.
        ageLimit - age limit in years
        age limit status for the document owner:
      • isExpired

        public boolean isExpired()
        Checks whether the document has expired or not by comparing the current time on the device with the date of expiry.
        true if the document has expired, false if the document has not expired or date of expiry is unknown.