public class PKIXCertPath
extends java.security.cert.CertPath
Modifier and Type | Field and Description |
---|---|
private java.util.List |
certificates |
(package private) static java.util.List |
certPathEncodings |
Constructor and Description |
---|
PKIXCertPath(java.io.InputStream inStream,
java.lang.String encoding)
Creates a CertPath of the specified type.
|
PKIXCertPath(java.util.List certificates) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getCertificates()
Returns the list of certificates in this certification
path.
|
byte[] |
getEncoded()
Returns the encoded form of this certification path, using
the default encoding.
|
byte[] |
getEncoded(java.lang.String encoding)
Returns the encoded form of this certification path, using
the specified encoding.
|
java.util.Iterator |
getEncodings()
Returns an iteration of the encodings supported by this
certification path, with the default encoding
first.
|
private java.util.List |
sortCerts(java.util.List certs) |
private DERObject |
toASN1Object(java.security.cert.X509Certificate cert)
Return a DERObject containing the encoded certificate.
|
private byte[] |
toDEREncoded(ASN1Encodable obj) |
static final java.util.List certPathEncodings
private java.util.List certificates
PKIXCertPath(java.util.List certificates)
PKIXCertPath(java.io.InputStream inStream, java.lang.String encoding) throws java.security.cert.CertificateException
java.security.cert.CertificateException
private java.util.List sortCerts(java.util.List certs)
certs
- public java.util.Iterator getEncodings()
getEncodings
in class java.security.cert.CertPath
public byte[] getEncoded() throws java.security.cert.CertificateEncodingException
getEncoded
in class java.security.cert.CertPath
java.security.cert.CertificateEncodingException
- if an encoding error occurspublic byte[] getEncoded(java.lang.String encoding) throws java.security.cert.CertificateEncodingException
getEncoded
in class java.security.cert.CertPath
encoding
- the name of the encoding to usejava.security.cert.CertificateEncodingException
- if an encoding error
occurs or the encoding requested is not supportedpublic java.util.List getCertificates()
getCertificates
in class java.security.cert.CertPath
private DERObject toASN1Object(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
cert
- the X509Certificate object to be encodedjava.security.cert.CertificateEncodingException
private byte[] toDEREncoded(ASN1Encodable obj) throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.