public class ECard
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
ECard.Information
Class for storing information on an
ECard. |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
Serial
Serial number of the card.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(AuthProcess authentication,
BinData additionalData,
int selector)
Executes an authentication process.
|
boolean |
checkHash(File fileId)
Checks the integrity of a file.
|
boolean |
checkHash(FileId fileId)
Checks the integrity of a file.
|
File |
convertFileId(File file)
Converts file identifier values: general IDs to data
group number and vice versa.
|
void |
disconnect()
Finishes usage of the
ECard. |
java.util.ArrayList<Application> |
getApplications()
Returns a list of available
ECard applications. |
BinData |
getAuthReferenceData()
Returns data necessary for the next authentication process.
|
Document |
getAuthResult()
Returns the
ECard authentication results in document form. |
Certificates |
getCertificateManager()
Returns the certificate manager that stores
certificates for the current
ECard only. |
BinData |
getFile(File fileId)
Returns the data of a file.
|
BinData |
getFile(FileId fileId)
Returns the data of a file.
|
java.util.ArrayList<File> |
getFiles()
Returns a list of identifiers of the available files.
|
ECard.Information |
getInfo()
Returns the card information.
|
AuthProcess |
getNextAuthentication(boolean forceNext)
Returns the identifier of the next suggested authentication to proceed.
|
public final java.lang.String Serial
public BinData getAuthReferenceData()
public ECard.Information getInfo() throws General
Generalpublic java.util.ArrayList<Application> getApplications() throws General
ECard applications. When the list is empty or contains only
Application.None that means that the list cannot be requested
from the ECard, but the system tries to select application on
card.ECard
applications.Generalpublic java.util.ArrayList<File> getFiles() throws General
Generalpublic BinData getFile(FileId fileId) throws General
fileId - File identifier.Generalpublic BinData getFile(File fileId) throws General
fileId - File identifier.Generalpublic boolean checkHash(FileId fileId) throws General
fileId - File identifier.Generalpublic boolean checkHash(File fileId) throws General
fileId - File identifier.Generalpublic AuthProcess getNextAuthentication(boolean forceNext) throws General
forceNext - Skip the next authentication and return the one
suggested after that.Generalpublic void authenticate(AuthProcess authentication, BinData additionalData, int selector) throws General
additionalData. These pieces of information can be requested by
the getAuthReferenceData() method.authentication - Authentication identifier.additionalData - Data needed for authentication.selector - Selector parameter for certain authentications.Generalpublic Certificates getCertificateManager() throws General
ECard only.Generalpublic File convertFileId(File file) throws General
ARH Passport Reader v 2.2.0.17 / 2017 July 19 14:58