@@ -277,21 +277,6 @@ public Header setX509Thumbprint(String x509Thumbprint) {
277
277
return this ;
278
278
}
279
279
280
- /**
281
- * Returns the X.509 certificate chain header parameter contains the X.509 public key
282
- * certificate or corresponding to the key used to digitally sign the JWS or {@code null} for
283
- * none.
284
- *
285
- * <p>@deprecated Since release 1.19.1, replaced by {@link #getX509Certificates()}.
286
- */
287
- @ Deprecated
288
- public final String getX509Certificate () {
289
- if (x509Certificates == null || x509Certificates .isEmpty ()) {
290
- return null ;
291
- }
292
- return x509Certificates .get (0 );
293
- }
294
-
295
280
/**
296
281
* Returns the X.509 certificate chain header parameter contains the X.509 public key
297
282
* certificate or certificate chain corresponding to the key used to digitally sign the JWS or
@@ -303,24 +288,6 @@ public final List<String> getX509Certificates() {
303
288
return new ArrayList <>(x509Certificates );
304
289
}
305
290
306
- /**
307
- * Sets the X.509 certificate chain header parameter contains the X.509 public key certificate
308
- * corresponding to the key used to digitally sign the JWS or {@code null} for none.
309
- *
310
- * <p>Overriding is only supported for the purpose of calling the super implementation and
311
- * changing the return type, but nothing else.
312
- *
313
- * <p>@deprecated Since release 1.19.1, replaced by {@link #setX509Certificates(List
314
- * x509Certificates)}.
315
- */
316
- @ Deprecated
317
- public Header setX509Certificate (String x509Certificate ) {
318
- ArrayList <String > x509Certificates = new ArrayList <String >();
319
- x509Certificates .add (x509Certificate );
320
- this .x509Certificates = x509Certificates ;
321
- return this ;
322
- }
323
-
324
291
/**
325
292
* Sets the X.509 certificate chain header parameter contains the X.509 public key certificate
326
293
* or certificate chain corresponding to the key used to digitally sign the JWS or {@code null}
0 commit comments