All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.CertificateChain

netscape.security.x509.CertificateChain

public class CertificateChain

Constructor Index

 o CertificateChain()
 o CertificateChain(X509Certificate)
constructs a certificate chain from a certificate.
 o CertificateChain(X509Certificate[])
constructs a certificate chain from a X509 certificate array.

Method Index

 o decode(InputStream)
decode from PKCS7 blob.
 o encode(OutputStream)
 o encode(OutputStream, boolean)
encode in PKCS7 blob.
 o getCertificate(int)
returns the certificate at specified index in chain.
 o getChain()
returns the certificate chain as an array of X509 certificates.
 o getFirstCertificate()
returns the first certificate in chain.

Constructors

 o CertificateChain
 public CertificateChain()
 o CertificateChain
 public CertificateChain(X509Certificate cert)
constructs a certificate chain from a certificate.

Parameters:
cert - a certificate
 o CertificateChain
 public CertificateChain(X509Certificate chain[])
constructs a certificate chain from a X509 certificate array.

Parameters:
cert - a certificate array.

Methods

 o getCertificate
 public X509Certificate getCertificate(int index)
returns the certificate at specified index in chain.

Parameters:
index - the index.
Returns:
the X509 certificate at the given index.
 o getFirstCertificate
 public X509Certificate getFirstCertificate()
returns the first certificate in chain.

Parameters:
index - the index.
Returns:
the X509 certificate at the given index.
 o getChain
 public X509Certificate[] getChain()
returns the certificate chain as an array of X509 certificates.

Returns:
an array of X509 Certificates.
 o encode
 public void encode(OutputStream out) throws IOException
 o encode
 public void encode(OutputStream out,
                    boolean sort) throws IOException
encode in PKCS7 blob.

 o decode
 public void decode(InputStream in) throws IOException
decode from PKCS7 blob.


All Packages  Class Hierarchy  This Package  Previous  Next  Index