CertPath.CertPathRep

  • CertPath.CertPathRep is an alternate CertPath class designed specifically for serialization, implementing the Serializable interface.

  • It provides a protected constructor to create an instance with a specified type and encoded certification path data.

  • It includes a protected readResolve method that reconstructs a CertPath object from the stored type and data during deserialization.

  • Inherited methods from Object provide standard functionalities like cloning, equality checks, hash code generation, and more.

protected static class CertPath.CertPathRep extends Object
implements Serializable

Alternate CertPath class for serialization.

Protected Constructor Summary

CertPathRep(String type, byte[] data)
Creates a CertPathRep with the specified type and encoded form of a certification path.

Protected Method Summary

Object
readResolve()
Returns a CertPath constructed from the type and data.

Inherited Method Summary

Protected Constructors

protected CertPathRep (String type, byte[] data)

Creates a CertPathRep with the specified type and encoded form of a certification path.

Parameters
type the standard name of a CertPath type
data the encoded form of the certification path

Protected Methods

protected Object readResolve ()

Returns a CertPath constructed from the type and data.

Returns
  • the resolved CertPath object
Throws
ObjectStreamException if a CertPath could not be constructed