CertPath (certification path)
consisting exclusively of
X509Certificates.
By convention, X.509 CertPaths are stored from target
to trust anchor.
That is, the issuer of one certificate is the subject of the following
one. However, unvalidated X.509 CertPaths may not follow
this convention. PKIX CertPathValidators will detect any
departure from this convention and throw a
CertPathValidatorException.
| Modifier and Type | Field and Description |
|---|---|
| private final List | certs
List of certificates in this chain |
| private static final String | COUNT_ENCODING
The names of our encodings. |
| private static final Collection | encodingList
List of supported encodings |
| private static final String | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | X509CertPath(List<? extends Certificate>
a certs)List of X509CertificatesCreates an |
| public | X509CertPath(InputStream
the is)InputStream to read the data fromCreates an |
| public | X509CertPath(InputStream
the is, String InputStream to read the data fromthe encoding used encoding)Creates an |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | Returns: a byte array containing the binary encoding of the PKCS#7 objectEncode the CertPath using PKCS#7 format. |
| private byte[] | Returns: a byte array containing the binary encoding of the PkiPath objectEncode the CertPath using PKIPATH format. |
| public List | Returns: an immutableList of X509Certificates
(may be empty, but not null)Implements abstract java. Returns the list of certificates in this certification path. |
| public byte[] | Returns: the encoded bytesImplements abstract java. Returns the encoded form of this certification path, using the default encoding. |
| public byte[] | Returns: the encoded bytesthe name of the encoding to use encoding)Implements abstract java. Returns the encoded form of this certification path, using the specified encoding. |
| public Iterator | Returns: anIterator over the names of the supported
encodings (as Strings)Implements abstract java. Returns an iteration of the encodings supported by this certification path, with the default encoding first. |
| public static Iterator | Returns: anIterator over the names of the supported
encodings (as Strings)Returns the encodings supported by this certification path, with the default encoding first. |
| private static List | Returns: an unmodifiable List of the certificatesthe is)InputStream to read the data fromParse a PKCS#7 format CertPath from an InputStream. |
| private static List | Returns: an unmodifiable List of the certificatesthe is)InputStream to read the data fromParse a PKIPATH format CertPath from an InputStream. |
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| certs | back to summary |
|---|---|
| private final List<X509Certificate> certs List of certificates in this chain
| |
| COUNT_ENCODING | back to summary |
|---|---|
| private static final String COUNT_ENCODING The names of our encodings. PkiPath is the default. | |
| encodingList | back to summary |
|---|---|
| private static final Collection<String> encodingList List of supported encodings | |
| PKCS7_ENCODING | back to summary |
|---|---|
| private static final String PKCS7_ENCODING | |
| PKIPATH_ENCODING | back to summary |
|---|---|
| private static final String PKIPATH_ENCODING | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| X509CertPath | back to summary |
|---|---|
| public X509CertPath(List<? extends Certificate> certs) throws CertificateException Creates an
The certificates are copied out of the supplied
| |
| X509CertPath | back to summary |
|---|---|
| public X509CertPath(InputStream is) throws CertificateException Creates an
| |
| X509CertPath | back to summary |
|---|---|
| public X509CertPath(InputStream is, String encoding) throws CertificateException Creates an
| |
| encodePKCS7 | back to summary |
|---|---|
| private byte[] encodePKCS7() throws CertificateEncodingException Encode the CertPath using PKCS#7 format.
| |
| encodePKIPATH | back to summary |
|---|---|
| private byte[] encodePKIPATH() throws CertificateEncodingException Encode the CertPath using PKIPATH format.
| |
| getCertificates | back to summary |
|---|---|
| public List Implements abstract java. Returns the list of certificates in this certification path.
The
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws CertificateEncodingException Implements abstract java. Returns the encoded form of this certification path, using the default encoding.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded(String encoding) throws CertificateEncodingException Implements abstract java. Returns the encoded form of this certification path, using the specified encoding.
| |
| getEncodings | back to summary |
|---|---|
| public Iterator Implements abstract java. Returns an iteration of the encodings supported by this certification path, with the default encoding first.
Attempts to modify the returned | |
| getEncodingsStatic | back to summary |
|---|---|
| public static Iterator Returns the encodings supported by this certification path, with the default encoding first. | |
| parsePKCS7 | back to summary |
|---|---|
| private static List Parse a PKCS#7 format CertPath from an InputStream. Return an unmodifiable List of the certificates.
| |
| parsePKIPATH | back to summary |
|---|---|
| private static List Parse a PKIPATH format CertPath from an InputStream. Return an unmodifiable List of the certificates.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream. Deserialization of this object is not supported.
| |