|
JMRTD 0.4.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmrtd.Passport
public class Passport
A passport object is basically a collection of buffered input streams for the data groups, combined with some status information (progress). Contains methods for creating instances from scratch, from file, and from card service. Also contains the document verification logic.
| Constructor Summary | |
|---|---|
Passport(File file,
MRTDTrustStore trustManager)
|
|
Passport(int docType,
MRTDTrustStore trustManager)
Creates passport from scratch. |
|
Passport(PassportService service,
BACKeySpec bacKeySpec,
MRTDTrustStore trustManager)
|
|
Passport(PassportService service,
MRTDTrustStore trustManager,
BACStore bacStore)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Passport(int docType,
MRTDTrustStore trustManager)
throws GeneralSecurityException
docType - either MRZInfo.DOC_TYPE_ID1 or MRZInfo.DOC_TYPE_ID3
GeneralSecurityException - if something wrong
public Passport(PassportService service,
MRTDTrustStore trustManager,
BACStore bacStore)
throws CardServiceException
CardServiceException
public Passport(PassportService service,
BACKeySpec bacKeySpec,
MRTDTrustStore trustManager)
throws IOException,
CardServiceException
IOException
CardServiceException
public Passport(File file,
MRTDTrustStore trustManager)
throws IOException
IOException| Method Detail |
|---|
public InputStream getInputStream(short fid)
throws CardServiceException
fid -
fid
CardServiceException
public void putFile(short fid,
byte[] bytes)
public void updateCOMSODFile(X509Certificate newCertificate)
public byte[] getFileBytes(short fid)
public BACKeySpec getBACKeySpec()
public void setDocSigningPrivateKey(PrivateKey key)
public void setDocSigningCertificate(X509Certificate newCertificate)
public void setCVCertificate(CardVerifiableCertificate cert)
public CardVerifiableCertificate getCVCertificate()
public PrivateKey getDocSigningPrivateKey()
public MRTDTrustStore getTrustManager()
public void setEACPrivateKey(PrivateKey privateKey)
public void setEACPublicKey(PublicKey publicKey)
public PrivateKey getAAPrivateKey()
public void setAAPrivateKey(PrivateKey key)
public void setAAPublicKey(PublicKey key)
public PrivateKey getEACPrivateKey()
public int getTotalLength()
public int getBytesRead()
public List<Short> getFileList()
public void verifySecurity()
public List<Certificate> getCertificateChain()
throws ExtCertPathValidatorException
ExtCertPathValidatorException - if could not be checkedpublic void addAuthenticationListener(AuthListener l)
l - an authentication listenerpublic VerificationStatus getVerificationStatus()
VerificationStatus
|
JMRTD 0.4.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||