public class

PKIXCertPath

extends CertPath
java.lang.Object
   ↳ java.security.cert.CertPath
     ↳ org.bouncycastle.jce.provider.PKIXCertPath

Class Overview

CertPath implementation for X.509 certificates.

Summary

Public Methods
List getCertificates()
Returns the list of certificates in this certification path.
byte[] getEncoded(String encoding)
Returns the encoded form of this certification path, using the specified encoding.
byte[] getEncoded()
Returns the encoded form of this certification path, using the default encoding.
Iterator getEncodings()
Returns an iteration of the encodings supported by this certification path, with the default encoding first.
[Expand]
Inherited Methods
From class java.security.cert.CertPath
From class java.lang.Object

Public Methods

public List getCertificates ()

Returns the list of certificates in this certification path. The List returned must be immutable and thread-safe.

Returns
  • an immutable List of Certificates (may be empty, but not null)

public byte[] getEncoded (String encoding)

Returns the encoded form of this certification path, using the specified encoding.

Parameters
encoding the name of the encoding to use
Returns
  • the encoded bytes
Throws
CertificateEncodingException if an encoding error occurs or the encoding requested is not supported

public byte[] getEncoded ()

Returns the encoded form of this certification path, using the default encoding.

Returns
  • the encoded bytes
Throws
CertificateEncodingException if an encoding error occurs

public Iterator getEncodings ()

Returns an iteration of the encodings supported by this certification path, with the default encoding first. Attempts to modify the returned Iterator via its remove method result in an UnsupportedOperationException.

Returns
  • an Iterator over the names of the supported encodings (as Strings)