Package pt.gov.cartaodecidadao
Class PTEID_Certificates
java.lang.Object
pt.gov.cartaodecidadao.PTEID_Object
pt.gov.cartaodecidadao.PTEID_Certificates
Container class for all certificates on the card.
-
Method Summary
Modifier and TypeMethodDescriptionAdd a new certificate to the store.voidaddToSODCAs(PTEID_ByteArray cert) longcountAll()The number of certificates (on the card or not)longThe number of certificates on the cardvoiddelete()Return the authentication certificate from the cardgetCA()Return the ca certificate from the cardgetCert(long ulIndexAll) Return the certificate with the number ulIndexAll.
ATTENTION ulIndexAll and ulIndexCard are two different index.
Index will change if new certificates are added with addCert().getCert(PTEID_CertifType type) Return the certificate by type.getCertFromCard(long ulIndexCard) Get the ulIndex certificate from the card.
Throw PTEID_ExParamRange exception if the index is out of range.getRoot()Return the root certificate from the cardReturn the signature certificate from the cardvoid
-
Method Details
-
delete
public void delete()- Overrides:
deletein classPTEID_Object
-
countFromCard
The number of certificates on the card- Throws:
PTEID_Exception
-
countAll
The number of certificates (on the card or not)- Throws:
PTEID_Exception
-
getCertFromCard
Get the ulIndex certificate from the card.
Throw PTEID_ExParamRange exception if the index is out of range.- Throws:
PTEID_Exception
-
getCert
Return the certificate with the number ulIndexAll.
ATTENTION ulIndexAll and ulIndexCard are two different index.
Index will change if new certificates are added with addCert().- Throws:
PTEID_Exception
-
getCert
Return the certificate by type.- Throws:
PTEID_Exception
-
getRoot
Return the root certificate from the card- Throws:
PTEID_Exception
-
getCA
Return the ca certificate from the card- Throws:
PTEID_Exception
-
getSignature
Return the signature certificate from the card- Throws:
PTEID_Exception
-
getAuthentication
Return the authentication certificate from the card- Throws:
PTEID_Exception
-
addCertificate
Add a new certificate to the store.- Throws:
PTEID_Exception
-
addToSODCAs
- Throws:
PTEID_Exception
-
resetSODCAs
- Throws:
PTEID_Exception
-