Beispiel #1
0
 internal PteidId(PTEID_EId id)
 {
     try {
         version         = 0;
         deliveryEntity  = id.getIssuingEntity();
         country         = id.getCountry();
         documentType    = id.getDocumentType();
         cardNumber      = id.getDocumentNumber();
         cardNumberPAN   = id.getDocumentPAN();
         cardVersion     = id.getDocumentVersion();
         deliveryDate    = id.getValidityBeginDate();
         locale          = id.getLocalofRequest();
         validityDate    = id.getValidityEndDate();
         name            = id.getSurname();
         firstname       = id.getGivenName();
         sex             = id.getGender();
         nationality     = id.getNationality();
         birthDate       = id.getDateOfBirth();
         height          = id.getHeight();
         numBI           = id.getCivilianIdNumber();
         nameFather      = id.getSurnameFather();
         firstnameFather = id.getGivenNameFather();
         nameMother      = id.getSurnameMother();
         firstnameMother = id.getGivenNameMother();
         numNIF          = id.getTaxNo();
         numSS           = id.getSocialSecurityNumber();
         numSNS          = id.getHealthNumber();
         notes           = id.getAccidentalIndications();
         mrz1            = id.getMRZ1();
         mrz2            = id.getMRZ2();
         mrz3            = id.getMRZ3();
     } catch (Exception) {
         throw new PteidException(0);
     }
 }
Beispiel #2
0
        /*
         * Initializes the SDK and sets main variables
         */
        public void Initiate()
        {
            //Must always be called in the beginning of the program
            PTEID_ReaderSet.initSDK();

            //Gets the set of connected readers, if there is any inserted
            readerSet = PTEID_ReaderSet.instance();

            //Gets the first reader
            //When multiple readers are connected, you should iterate through the various indexes with the methods getReaderName and getReaderByName
            readerContext = readerSet.getReader();

            //Gets the card instance
            eidCard = readerContext.getEIDCard();
            eid     = eidCard.getID();
        }
Beispiel #3
0
 internal PTEID_ID(PTEID_EId id)
 {
     try {
         version = 0;
         deliveryEntity = id.getIssuingEntity();
         country = id.getCountry();
         documentType = id.getDocumentType();
         cardNumber = id.getDocumentNumber();
         cardNumberPAN = id.getDocumentPAN();
         cardVersion = id.getDocumentVersion();
         deliveryDate = id.getValidityBeginDate();
         locale = id.getLocalofRequest();
         validityDate = id.getValidityEndDate();
         name = id.getSurname();
         firstname = id.getGivenName();
         sex = id.getGender();
         nationality = id.getNationality();
         birthDate = id.getDateOfBirth();
         height = id.getHeight();
         numBI = id.getCivilianIdNumber();
         nameFather = id.getSurnameFather();
         firstnameFather = id.getGivenNameFather();
         nameMother = id.getSurnameMother();
         firstnameMother = id.getGivenNameMother();
         numNIF = id.getTaxNo();
         numSS = id.getSocialSecurityNumber();
         numSNS = id.getHealthNumber();
         notes = id.getAccidentalIndications();
         mrz1 = id.getMRZ1();
         mrz2 = id.getMRZ2();
         mrz3 = id.getMRZ3();
     } catch (Exception) {
         throw new PteidException(0);
     }
 }