java.security.cert
protected static class: Certificate.CertificateRep [javadoc |
source]
java.lang.Object
java.security.cert.Certificate$CertificateRep
All Implemented Interfaces:
java$io$Serializable
Alternate Certificate class for serialization.
Constructor: |
protected CertificateRep(String type,
byte[] data) {
this.type = type;
this.data = data;
}
Construct the alternate Certificate class with the Certificate
type and Certificate encoding bytes.
Parameters:
type - the standard name of the Certificate type.
data - the Certificate data.
|
Method from java.security.cert.Certificate$CertificateRep Summary: |
---|
readResolve |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.security.cert.Certificate$CertificateRep Detail: |
protected Object readResolve() throws ObjectStreamException {
try {
CertificateFactory cf = CertificateFactory.getInstance(type);
return cf.generateCertificate
(new java.io.ByteArrayInputStream(data));
} catch (CertificateException e) {
throw new java.io.NotSerializableException
("java.security.cert.Certificate: " +
type +
": " +
e.getMessage());
}
}
Resolve the Certificate Object.
|