X.509 certificates have several base data elements, including:
DerEncoder, X509CertImpl
| Modifier and Type | Field and Description |
|---|---|
| protected CertificateAlgorithmId | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected CertificateExtensions | |
| protected CertificateValidity | |
| public static final String | |
| protected X500Name | |
| public static final String | |
| protected UniqueIdentity | |
| public static final String | |
| public static final String | |
| protected CertificateX509Key | |
| private byte[] | |
| public static final String | |
| protected CertificateSerialNumber | |
| public static final String | |
| protected X500Name | |
| public static final String | |
| protected UniqueIdentity | |
| public static final String | |
| public static final String | |
| protected CertificateVersion |
| Access | Constructor and Description |
|---|---|
| public | X509CertInfo()
Construct an uninitialized X509CertInfo on which decode must later be called (or which may be deserialized). |
| public | X509CertInfo(byte[]
the encoded bytes, with no trailing data. cert)Unmarshals a certificate from its encoded form, parsing the encoded bytes. |
| public | X509CertInfo(DerValue
the der value containing the encoded cert. derVal)Unmarshal a certificate from its encoded form, parsing a DER value. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | encode(DerOutputStream
an output stream to which the certificate is appended. out)Appends the certificate to an output stream. |
| public boolean | Returns: true iff the certificates are equivalentthe object being compared with this one obj)Overrides java. Compares two X509CertInfo objects. |
| public CertificateAlgorithmId | |
| public byte[] | |
| public CertificateExtensions | |
| public X500Name | |
| public UniqueIdentity | |
| public CertificateX509Key | |
| public CertificateSerialNumber | |
| public X500Name | |
| public UniqueIdentity | |
| public CertificateValidity | |
| public CertificateVersion | |
| private Object | |
| public int | |
| private void | |
| public void | setAlgorithmId(CertificateAlgorithmId
the Object class value for the AlgorithmId val)Set the algorithm id of the certificate. |
| public void | setExtensions(CertificateExtensions
the Object class value for the Extensions val)Set the extensions in the certificate. |
| public void | |
| public void | setIssuerUniqueId(UniqueIdentity
the Object class value for the IssuerUniqueId val)Set the Issuer Unique Identity in the certificate. |
| public void | setKey(CertificateX509Key
the Object class value for the PublicKey val)Set the public key in the certificate. |
| public void | setSerialNumber(CertificateSerialNumber
the Object class value for the CertificateSerialNumber val)Set the serial number of the certificate. |
| public void | setSubject(X500Name
the Object class value for the Subject val)Set the subject name of the certificate. |
| public void | setSubjectUniqueId(UniqueIdentity
the Object class value for the SubjectUniqueId val)Set the Subject Unique Identity in the certificate. |
| public void | setValidity(CertificateValidity
the Object class value for the CertificateValidity val)Set the validity interval of the certificate. |
| public void | setVersion(CertificateVersion
the Object class value for the Extensions val)Set the version number of the certificate. |
| public String | toString()
Overrides java. Returns a printable representation of the certificate. |
| private void |
| algId | back to summary |
|---|---|
| protected CertificateAlgorithmId algId | |
| ALGORITHM_ID | back to summary |
|---|---|
| public static final String ALGORITHM_ID | |
| DN_NAME | back to summary |
|---|---|
| public static final String DN_NAME | |
| EXTENSIONS | back to summary |
|---|---|
| public static final String EXTENSIONS | |
| extensions | back to summary |
|---|---|
| protected CertificateExtensions extensions | |
| interval | back to summary |
|---|---|
| protected CertificateValidity interval | |
| ISSUER | back to summary |
|---|---|
| public static final String ISSUER | |
| issuer | back to summary |
|---|---|
| protected X500Name issuer | |
| ISSUER_ID | back to summary |
|---|---|
| public static final String ISSUER_ID | |
| issuerUniqueId | back to summary |
|---|---|
| protected UniqueIdentity issuerUniqueId | |
| KEY | back to summary |
|---|---|
| public static final String KEY | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| pubKey | back to summary |
|---|---|
| protected CertificateX509Key pubKey | |
| rawCertInfo | back to summary |
|---|---|
| private byte[] rawCertInfo | |
| SERIAL_NUMBER | back to summary |
|---|---|
| public static final String SERIAL_NUMBER | |
| serialNum | back to summary |
|---|---|
| protected CertificateSerialNumber serialNum | |
| SUBJECT | back to summary |
|---|---|
| public static final String SUBJECT | |
| subject | back to summary |
|---|---|
| protected X500Name subject | |
| SUBJECT_ID | back to summary |
|---|---|
| public static final String SUBJECT_ID | |
| subjectUniqueId | back to summary |
|---|---|
| protected UniqueIdentity subjectUniqueId | |
| VALIDITY | back to summary |
|---|---|
| public static final String VALIDITY | |
| VERSION | back to summary |
|---|---|
| public static final String VERSION | |
| version | back to summary |
|---|---|
| protected CertificateVersion version | |
| X509CertInfo | back to summary |
|---|---|
| public X509CertInfo() Construct an uninitialized X509CertInfo on which decode must later be called (or which may be deserialized). | |
| X509CertInfo | back to summary |
|---|---|
| public X509CertInfo(byte[] cert) throws CertificateParsingException Unmarshals a certificate from its encoded form, parsing the encoded bytes. This form of constructor is used by agents which need to examine and use certificate contents. That is, this is one of the more commonly used constructors. Note that the buffer must include only a certificate, and no "garbage" may be left at the end. If you need to ignore data at the end of a certificate, use another constructor.
| |
| X509CertInfo | back to summary |
|---|---|
| public X509CertInfo(DerValue derVal) throws CertificateParsingException Unmarshal a certificate from its encoded form, parsing a DER value. This form of constructor is used by agents which need to examine and use certificate contents.
| |
| emit | back to summary |
|---|---|
| private void emit(DerOutputStream out) throws CertificateException | |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) throws CertificateException Appends the certificate to an output stream.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares two X509CertInfo objects. This is false if the certificates are not both X.509 certs, otherwise it compares them as binary data. | |
| getAlgorithmId | back to summary |
|---|---|
| public CertificateAlgorithmId getAlgorithmId() | |
| getEncodedInfo | back to summary |
|---|---|
| public byte[] getEncodedInfo() throws CertificateEncodingException Returns the encoded certificate info.
| |
| getExtensions | back to summary |
|---|---|
| public CertificateExtensions getExtensions() | |
| getIssuer | back to summary |
|---|---|
| public X500Name getIssuer() | |
| getIssuerUniqueId | back to summary |
|---|---|
| public UniqueIdentity getIssuerUniqueId() | |
| getKey | back to summary |
|---|---|
| public CertificateX509Key getKey() | |
| getSerialNumber | back to summary |
|---|---|
| public CertificateSerialNumber getSerialNumber() | |
| getSubject | back to summary |
|---|---|
| public X500Name getSubject() | |
| getSubjectUniqueId | back to summary |
|---|---|
| public UniqueIdentity getSubjectUniqueId() | |
| getValidity | back to summary |
|---|---|
| public CertificateValidity getValidity() | |
| getVersion | back to summary |
|---|---|
| public CertificateVersion getVersion() | |
| getX500Name | back to summary |
|---|---|
| private Object getX500Name(String name, boolean getIssuer) throws IOException | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Calculates a hash code value for the object. Objects which are equal will also have the same hashcode.
| |
| parse | back to summary |
|---|---|
| private void parse(DerValue val) throws CertificateParsingException, IOException | |
| setAlgorithmId | back to summary |
|---|---|
| public void setAlgorithmId(CertificateAlgorithmId val) Set the algorithm id of the certificate.
| |
| setExtensions | back to summary |
|---|---|
| public void setExtensions(CertificateExtensions val) throws CertificateException Set the extensions in the certificate.
| |
| setIssuer | back to summary |
|---|---|
| public void setIssuer(X500Name val) Set the issuer name of the certificate.
| |
| setIssuerUniqueId | back to summary |
|---|---|
| public void setIssuerUniqueId(UniqueIdentity val) throws CertificateException Set the Issuer Unique Identity in the certificate.
| |
| setKey | back to summary |
|---|---|
| public void setKey(CertificateX509Key val) Set the public key in the certificate.
| |
| setSerialNumber | back to summary |
|---|---|
| public void setSerialNumber(CertificateSerialNumber val) Set the serial number of the certificate.
| |
| setSubject | back to summary |
|---|---|
| public void setSubject(X500Name val) throws CertificateException Set the subject name of the certificate.
| |
| setSubjectUniqueId | back to summary |
|---|---|
| public void setSubjectUniqueId(UniqueIdentity val) throws CertificateException Set the Subject Unique Identity in the certificate.
| |
| setValidity | back to summary |
|---|---|
| public void setValidity(CertificateValidity val) Set the validity interval of the certificate.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(CertificateVersion val) Set the version number of the certificate.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a printable representation of the certificate. | |
| verifyCert | back to summary |
|---|---|
| private void verifyCert(X500Name subject, CertificateExtensions extensions) throws CertificateParsingException | |