|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
41 | 41 | import sun.security.provider.certpath.ResponderId;
|
42 | 42 | import sun.security.ssl.X509Authentication.X509Possession;
|
43 | 43 | import sun.security.util.Cache;
|
| 44 | +import sun.security.util.Debug; |
44 | 45 | import sun.security.x509.PKIXExtensions;
|
45 | 46 | import sun.security.x509.SerialNumber;
|
46 | 47 | import static sun.security.ssl.CertStatusExtension.*;
|
@@ -324,8 +325,8 @@ private ResponseCacheEntry getFromCache(CertId cid,
|
324 | 325 |
|
325 | 326 | if (SSLLogger.isOn && SSLLogger.isOn("respmgr")) {
|
326 | 327 | SSLLogger.fine(
|
327 |
| - "Check cache for SN" + cid.getSerialNumber() + ": " + |
328 |
| - (respEntry != null ? "HIT" : "MISS")); |
| 328 | + "Check cache for SN" + Debug.toString(cid.getSerialNumber()) |
| 329 | + + ": " + (respEntry != null ? "HIT" : "MISS")); |
329 | 330 | }
|
330 | 331 | return respEntry;
|
331 | 332 | }
|
@@ -391,7 +392,7 @@ class StatusInfo {
|
391 | 392 | public String toString() {
|
392 | 393 | return "StatusInfo:" + "\n\tCert: " +
|
393 | 394 | this.cert.getSubjectX500Principal() +
|
394 |
| - "\n\tSerial: " + this.cert.getSerialNumber() + |
| 395 | + "\n\tSerial: " + Debug.toString(this.cert.getSerialNumber()) + |
395 | 396 | "\n\tResponder: " + this.responder +
|
396 | 397 | "\n\tResponse data: " +
|
397 | 398 | (this.responseData != null ?
|
@@ -437,7 +438,7 @@ static class ResponseCacheEntry {
|
437 | 438 | } else {
|
438 | 439 | throw new IOException(
|
439 | 440 | "Unable to find SingleResponse for SN " +
|
440 |
| - cid.getSerialNumber()); |
| 441 | + Debug.toString(cid.getSerialNumber())); |
441 | 442 | }
|
442 | 443 | } else {
|
443 | 444 | nextUpdate = null;
|
@@ -488,7 +489,7 @@ public StatusInfo call() {
|
488 | 489 | if (SSLLogger.isOn && SSLLogger.isOn("respmgr")) {
|
489 | 490 | SSLLogger.fine(
|
490 | 491 | "Starting fetch for SN " +
|
491 |
| - statInfo.cid.getSerialNumber()); |
| 492 | + Debug.toString(statInfo.cid.getSerialNumber())); |
492 | 493 | }
|
493 | 494 | try {
|
494 | 495 | ResponseCacheEntry cacheEntry;
|
@@ -573,7 +574,7 @@ private void addToCache(CertId certId, ResponseCacheEntry entry) {
|
573 | 574 | if (SSLLogger.isOn && SSLLogger.isOn("respmgr")) {
|
574 | 575 | SSLLogger.fine(
|
575 | 576 | "Added response for SN " +
|
576 |
| - certId.getSerialNumber() + |
| 577 | + Debug.toString(certId.getSerialNumber()) + |
577 | 578 | " to cache");
|
578 | 579 | }
|
579 | 580 | }
|
|
0 commit comments