java.security.cert
protected static class Certificate.CertificateRep extends Object implements Serializable
Constructor Summary | |
---|---|
protected | CertificateRep(String type, byte[] data)
Create an alternative representation of this certificate. |
Method Summary | |
---|---|
protected Object | readResolve()
Deserialize this certificate replacement into the appropriate
certificate object. |
(type, data)
pair is typically the certificate's
type as returned by getType (i.e. the
canonical name of the certificate type) and the encoded form as
returned by getEncoded.
For example, X.509 certificates would create an instance of this class with the parameters "X.509" and the ASN.1 representation of the certificate, encoded as DER bytes.
Parameters: type The certificate type. data The encoded certificate data.
Returns: The deserialized certificate.
Throws: ObjectStreamException If there is no appropriate certificate factory for the given type, or if the encoded form cannot be parsed.