Class PKIXCertPath
java.lang.Object
java.security.cert.CertPath
org.bouncycastle.jcajce.provider.asymmetric.x509.PKIXCertPath
- All Implemented Interfaces:
Serializable
CertPath implementation for X.509 certificates.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.security.cert.CertPath
CertPath.CertPathRep
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of certificates in this certification path.byte[]
Returns the encoded form of this certification path, using the default encoding.byte[]
getEncoded
(String encoding) Returns the encoded form of this certification path, using the specified encoding.Returns an iteration of the encodings supported by this certification path, with the default encoding first.
-
Method Details
-
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.- Specified by:
getEncodings
in classCertPath
- Returns:
- an Iterator over the names of the supported encodings (as Strings)
-
getEncoded
Returns the encoded form of this certification path, using the default encoding.- Specified by:
getEncoded
in classCertPath
- Returns:
- the encoded bytes
- Throws:
CertificateEncodingException
- if an encoding error occurs
-
getEncoded
Returns the encoded form of this certification path, using the specified encoding.- Specified by:
getEncoded
in classCertPath
- 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
-
getCertificates
Returns the list of certificates in this certification path. The List returned must be immutable and thread-safe.- Specified by:
getCertificates
in classCertPath
- Returns:
- an immutable List of Certificates (may be empty, but not null)
-