| java.lang.Object com.sun.satsa.pki.Certificate
Certificate | class Certificate (Code) | | This class represents WIM certificate.
|
Field Summary | |
Location | body Location (path, offset, length) of certificate on card. | TLV | cert Parsed X.509 certificate or null if its not loaded. | Location | header Location (path, offset, length) of certificate DF entry on
card. | byte[] | id Certificate ID. | String | label Certificate label. | byte[] | requestId Issuer certificate ID. |
Method Summary | |
static String | getInfo(TLV cert) Returns description of given certificate (subject, issuer, serial
number and validity). | TLV | getIssuer() Returns issuer name for this certificate which can be used
only for comparison. | TLV | getIssuerAndSerialNumber() Returns new IssuerAndSerialNumber TLV object which can be used
as element of new data structure. | TLV | getKeyAlgorithmID() Returns key algorithm identifier for this certificate which can
be used as element of new data structure. | TLV | getSerialNumber() Returns serial number of this certificate. | TLV | getSubject() Returns subject name for this certificate which can be used
only for comparison. | static Calendar | getValidity(TLV cert, boolean notBefore) Returns notBefore or notAfter date for the given certificate.
Parameters: cert - parsed x.509 certificate. Parameters: notBefore - if true returns notBefore field value,otherwise - notAfter. | boolean | isExpired() Verifies if this certificate is expired. | boolean | isIssuedBy(Certificate next) Verifies if this certificate was issued by subject of the
specified certificate. |
body | Location body(Code) | | Location (path, offset, length) of certificate on card.
|
cert | TLV cert(Code) | | Parsed X.509 certificate or null if its not loaded.
|
header | Location header(Code) | | Location (path, offset, length) of certificate DF entry on
card.
|
id | byte[] id(Code) | | Certificate ID.
|
requestId | byte[] requestId(Code) | | Issuer certificate ID.
|
getInfo | static String getInfo(TLV cert)(Code) | | Returns description of given certificate (subject, issuer, serial
number and validity).
Parameters: cert - parsed certificate certificate description or null if any error occurs |
getIssuer | TLV getIssuer()(Code) | | Returns issuer name for this certificate which can be used
only for comparison.
TLV object containing issuer name. |
getIssuerAndSerialNumber | TLV getIssuerAndSerialNumber()(Code) | | Returns new IssuerAndSerialNumber TLV object which can be used
as element of new data structure.
IssuerAndSerialNumber TLV object |
getKeyAlgorithmID | TLV getKeyAlgorithmID()(Code) | | Returns key algorithm identifier for this certificate which can
be used as element of new data structure.
key algorithm identifier |
getSerialNumber | TLV getSerialNumber()(Code) | | Returns serial number of this certificate. The result can be used
only for comparison, not for the construction of new DER
structure.
TLV object containing serial number. |
getSubject | TLV getSubject()(Code) | | Returns subject name for this certificate which can be used
only for comparison.
TLV object containing subject name. |
getValidity | static Calendar getValidity(TLV cert, boolean notBefore) throws TLVException(Code) | | Returns notBefore or notAfter date for the given certificate.
Parameters: cert - parsed x.509 certificate. Parameters: notBefore - if true returns notBefore field value,otherwise - notAfter. the requested date throws: TLVException - in case of parsing error |
isExpired | boolean isExpired()(Code) | | Verifies if this certificate is expired.
true if the certificate is expired. |
isIssuedBy | boolean isIssuedBy(Certificate next)(Code) | | Verifies if this certificate was issued by subject of the
specified certificate. Returns false for self-signed certificates.
Parameters: next - certificate true if the certificate was issued by subject of thespecified certificate. |
|
|