@@ -66,10 +66,10 @@ public abstract class Certificate implements java.io.Serializable {
66
66
private static final long serialVersionUID = -3585440601605666277L ;
67
67
68
68
/** The certificate type. */
69
- private final String type ;
69
+ private final transient String type ;
70
70
71
71
/** The hash code for the certificate. */
72
- private int hash = -1 ; // Default to -1
72
+ private transient int hash = -1 ; // Default to -1
73
73
74
74
/**
75
75
* Creates a certificate of the specified type.
@@ -236,7 +236,7 @@ public void verify(PublicKey key, Provider sigProvider)
236
236
public abstract PublicKey getPublicKey ();
237
237
238
238
/**
239
- * Alternate Certificate class for serialization.
239
+ * Alternate {@code Certificate} class for serialization.
240
240
* @since 1.3
241
241
*/
242
242
protected static class CertificateRep implements java .io .Serializable {
@@ -251,24 +251,25 @@ protected static class CertificateRep implements java.io.Serializable {
251
251
private byte [] data ;
252
252
253
253
/**
254
- * Construct the alternate Certificate class with the Certificate
255
- * type and Certificate encoding bytes.
254
+ * Construct the alternate {@code Certificate} class with the
255
+ * {@code Certificate} type and {@code Certificate} encoding bytes.
256
256
*
257
- * @param type the standard name of the Certificate type.
257
+ * @param type the standard name of the {@code Certificate} type.
258
258
*
259
- * @param data the Certificate data.
259
+ * @param data the {@code Certificate} data.
260
260
*/
261
261
protected CertificateRep (String type , byte [] data ) {
262
262
this .type = type ;
263
263
this .data = data ;
264
264
}
265
265
266
266
/**
267
- * Resolve the Certificate Object.
267
+ * Returns a {@code Certificate} with the type and data of this
268
+ * {@code CertificateRep}.
268
269
*
269
- * @return the resolved Certificate Object
270
+ * @return the resolved {@code Certificate} object
270
271
*
271
- * @throws java.io.ObjectStreamException if the Certificate
272
+ * @throws java.io.ObjectStreamException if the {@code Certificate}
272
273
* could not be resolved
273
274
*/
274
275
@ java .io .Serial
@@ -288,12 +289,15 @@ protected Object readResolve() throws java.io.ObjectStreamException {
288
289
}
289
290
290
291
/**
291
- * Replace the Certificate to be serialized.
292
+ * Replace the {@code Certificate} to be serialized with a
293
+ * {@link CertificateRep CertificateRep} object containing the type and
294
+ * encoded bytes of the {@code Certificate}.
292
295
*
293
- * @return the alternate Certificate object to be serialized
296
+ * @return a {@code CertificateRep} object containing the type and encoded
297
+ * bytes of the {@code Certificate}
294
298
*
295
- * @throws java.io.ObjectStreamException if a new object representing
296
- * this Certificate could not be created
299
+ * @throws java.io.ObjectStreamException if a {@code CertificateRep} object
300
+ * representing this {@code Certificate} could not be created
297
301
* @since 1.3
298
302
*/
299
303
@ java .io .Serial
0 commit comments