SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Cartão de Cidadão: Novo middleware OpenSource ,[object Object],Parceria:
Estado actual ,[object Object]
Violação da GNU GPL
Conceito obsoleto (tecnologias antigas)
Dificuldade em suportar multiplicas plataformas
Pouca documentação técnica
Novo middleware ,[object Object]
Fornecer um projecto modular
Baseado no Belgian eID middleware

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 

Kürzlich hochgeladen (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 

Empfohlen

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Empfohlen (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Apresentacao seminariotecnicocc

  • 1.
  • 2.
  • 5. Dificuldade em suportar multiplicas plataformas
  • 7.
  • 9. Baseado no Belgian eID middleware
  • 11. Manter uma base coerente para o futuro
  • 12. Suporte aplicacional (Ms Office, Firefox, LibreOffice, Outlook, IE e etc...)
  • 13. “ Big Picture” PCSC-lite Kernel PKCS11 CardLayer eidlib AppLayer eidgui Crypto API CSP SDK Java .Net MS Windows PKCS11 apps
  • 14.
  • 16. Compreensão das applets (IAS/GEMSAFE)
  • 17. Compatibilidade com o Middleware anterior
  • 21. Hello World C++ //***************************************************************************** // PTeID SDK sample code. // This sample demonstrates how to use the eID SDK to read a Portuguese eID card. // The program will dump the data to the standard output for each card reader // it finds. //***************************************************************************** #include <iostream> #include &quot;eidlib.h&quot; using namespace eIDMW; //***************************************************************************** // Get the data and dump to the screen // Beware: The data coming from the cards is encoded in UTF8! //***************************************************************************** void getEIDData( PTEID_EIDCard& card ) { PTEID_EId& eid = card.getID(); if ( card.isTestCard() ) { std::cout << &quot;Error: This is a test card. Can not read data...&quot; << std::endl; return; } std::cout << &quot;DocumentType : &quot; << eid.getDocumentType() << std::endl; std::cout << &quot;Personal data:&quot; << std::endl; std::cout << &quot;FirstName : &quot; << eid.getFirstName() << std::endl; std::cout << &quot;Surname : &quot; << eid.getSurname() << std::endl; std::cout << &quot;Gender : &quot; << eid.getGender() << std::endl; std::cout << &quot;DateOfBirth : &quot; << eid.getDateOfBirth() << std::endl; std::cout << &quot;LocationOfBirth : &quot; << eid.getLocationOfBirth() << std::endl; std::cout << &quot;Nationality : &quot; << eid.getNationality() << std::endl; std::cout << &quot;NationalNumber : &quot; << eid.getNationalNumber() << std::endl; std::cout << &quot;MemberOfFamily : &quot; << eid.getMemberOfFamily() << std::endl; std::cout << &quot;ValidityBeginDate : &quot; << eid.getValidityBeginDate() << std::endl; std::cout << &quot;ValidityEndDate : &quot; << eid.getValidityEndDate() << std::endl; PTEID_EIdAddress& eidaddress = card.getAddr(); std::cout << &quot;Street : &quot; << eidaddress.getStreet() << std::endl; std::cout << &quot;ZipCode : &quot; << eidaddress.getZipCode() << std::endl; std::cout << &quot;Municipality : &quot; << eidaddress.getMunicipality() << std::endl; std::cout << &quot;IssuingMunicipality: &quot; << eidaddress.getIssuingMunicipality() << std::endl; } //***************************************************************************** // Get the data from a Portuguese EID card //***************************************************************************** void getEidCardData( PTID_ReaderContext& readerContext ) { PTEID_EIDCard& card = readerContext.getEIDCard(); getEIDData(card); } //***************************************************************************** // Show the info of the card in the reader //***************************************************************************** void showCardInfo( const char* readerName ) { PTEID_ReaderContext& readerContext = ReaderSet.getReaderByName( readerName ); if ( readerContext.isCardPresent() ) { //PTEID_CARDTYPE_EID: getEidCardData( readerContext ); } } //***************************************************************************** // Show the reader info an get the data of the card if present //***************************************************************************** void showReaderCardInfo( const char* readerName ) { PTEID_ReaderContext& readerContext = ReaderSet.getReaderByName( readerName ); std::cout << &quot;Reader: &quot; << readerName << std::endl; std::cout << &quot;Card present: &quot; << (readerContext.isCardPresent()? &quot;yes&quot; :&quot;no&quot;) << std::endl; showCardInfo( readerName ); std::cout << std::endl; } //***************************************************************************** // scan all the card readers and if a card is present, show the content of the // card. //***************************************************************************** void scanReaders( void ) { unsigned long nrReaders = ReaderSet.readerCount(); const char* const* readerList = ReaderSet.readerList(); std::cout << &quot;Nr of card readers detected: &quot; << nrReaders << std::endl; for ( size_t readerIdx=0; readerIdx<nrReaders; readerIdx++) { showReaderCardInfo( readerList[readerIdx] ); } } //***************************************************************************** // Main entry point //***************************************************************************** int main( int argc, char* argv[] ) { std::cout << &quot;PTeID SDK C++ sample program: read_eid&quot; << std::endl; scanReaders(); PTEID_ReleaseSDK(); }
  • 22. Hello World Java //***************************************************************************** // eID SDK sample code. // This sample demonstrates how to use the eID SDK to read a Portuguese eID card. // The program will dump the data to the standard output for each card reader // it finds. // // compile: // javac -classpath <path_to>teid[35]libJava.jar main.java // // run (windows): // set PATH=<path_to_dll's>;%PATH% // java -cp <path_to>teid35libJava.jar;. main //***************************************************************************** import java.lang.*; import pt.portuguese.eid.*; public class main { //***************************************************************************** // Get the data and dump to the screen // Beware: The data coming from the cards is encoded in UTF8! //***************************************************************************** private static void getEIDData(PTEID_EIDCard card) throws Exception { PTEID_EId eid = card.getID(); System.out.println( &quot;DocumentType : &quot; + eid.getDocumentType() ); System.out.println( &quot;Peronal data:&quot; ); System.out.println( &quot;-------------&quot; ); System.out.println( &quot;FirstName1 : &quot; + eid.getFirstName1() ); System.out.println( &quot;Surname : &quot; + eid.getSurname() ); System.out.println( &quot;Gender : &quot; + eid.getGender() ); System.out.println( &quot;DateOfBirth : &quot; + eid.getDateOfBirth() ); System.out.println( &quot;LocationOfBirth : &quot; + eid.getLocationOfBirth() ); System.out.println( &quot;Nationality : &quot; + eid.getNationality() ); System.out.println( &quot;NationalNumber : &quot; + eid.getNationalNumber() ); System.out.println( &quot;SpecialOrganization: &quot; + eid.getSpecialOrganization() ); System.out.println( &quot;MemberOfFamily : &quot; + eid.getMemberOfFamily() ); System.out.println( &quot;ValidityBeginDate : &quot; + eid.getValidityBeginDate() ); System.out.println( &quot;ValidityEndDate : &quot; + eid.getValidityEndDate() ); PTEIDAddress_EId eidaddress = card.getAddr(); System.out.println( &quot;Street : &quot; + eid.getStreet() ); System.out.println( &quot;ZipCode : &quot; + eid.getZipCode() ); System.out.println( &quot;Municipality : &quot; + eid.getMunicipality() ); System.out.println( &quot;Country : &quot; + eid.getCountry() ); System.out.println( &quot;IssuingMunicipality: &quot; + eid.getIssuingMunicipality() ); } //***************************************************************************** // Get the data from a Portuguese EID card //***************************************************************************** private static void getEidCardData(PTEID_ReaderContext readerContext) throws Exception { PTEID_EIDCard card = readerContext.getEIDCard(); getEIDData(card); } //***************************************************************************** // Show the info of the card in the reader //***************************************************************************** private static void showCardInfo(String readerName) throws Exception { PTEID_ReaderContext readerContext = PTEID_ReaderSet.instance().getReaderByName( readerName ); if ( readerContext.isCardPresent() ) { System.out.println(&quot;Type : &quot; + getCardTypeStr(readerContext)); PTEID_CardType cardType = readerContext.getCardType(); getEidCardData(readerContext); } } //***************************************************************************** // Show the reader info an get the data of the card if present //***************************************************************************** private static void showReaderCardInfo(String readerName) throws Exception { PTEID_ReaderContext readerContext = PTEID_ReaderSet.instance().getReaderByName( readerName ); System.out.println(&quot;Reader: &quot;+readerName); System.out.println(&quot;Card present: &quot; + (readerContext.isCardPresent()? &quot;yes&quot; :&quot;no&quot;)); showCardInfo( readerName ); System.out.println(&quot;&quot;); } //***************************************************************************** // scan all the card readers and if a card is present, show the content of the // card. //***************************************************************************** private static void scanReaders() throws Exception { long nrReaders = PTEID_ReaderSet.instance().readerCount(); System.out.println(&quot;Nr of card readers detected: &quot;+nrReaders); for ( int readerIdx=0; readerIdx<nrReaders; readerIdx++) { String readerName = PTEID_ReaderSet.instance().getReaderName(readerIdx); showReaderCardInfo(readerName); } }
  • 23. Hello World Java (cont.) //***************************************************************************** // Main entry point //***************************************************************************** public static void main(String argv[]) { System.out.println(&quot;[Info] PTeID SDK Java sample program: read_eid&quot;); String osName = System.getProperty(&quot;os.name&quot;); if ( -1 != osName.indexOf(&quot;Windows&quot;) ) { System.out.println(&quot;[Info] Windows system!!&quot;); System.loadLibrary(&quot;beid35libJava_Wrapper&quot;); } else { System.loadLibrary(&quot;beidlibJava_Wrapper&quot;); } try { BEID_ReaderSet.initSDK(); scanReaders(); } catch( BEID_Exception e) { System.out.println(&quot;[Catch] BEID_Exception:&quot; + e.GetError()); } catch( Exception e) { System.out.println(&quot;[Catch] Exception:&quot; + e.getMessage()); } try { BEID_ReaderSet.releaseSDK(); } catch (BEID_Exception e) { System.out.println(&quot;[Catch] BEID_Exception:&quot; + e.GetError()); } catch (Exception e) { System.out.println(&quot;[Catch] Exception:&quot; + e.getMessage()); } } }
  • 24.