mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8241003: Deprecate "denigrated" java.security.cert APIs that represent DNs as Principal or String objects
Reviewed-by: xuelei, valeriep, weijun
This commit is contained in:
parent
0df797de94
commit
f879698c63
16 changed files with 115 additions and 105 deletions
|
@ -93,7 +93,7 @@ public class AnchorCertificates {
|
|||
boolean result = certs.contains(key);
|
||||
if (result && debug != null) {
|
||||
debug.println("AnchorCertificate.contains: matched " +
|
||||
cert.getSubjectDN());
|
||||
cert.getSubjectX500Principal());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -242,6 +242,7 @@ public class HostnameChecker {
|
|||
*
|
||||
* This method is currently used from within JSSE, do not remove.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public static X500Name getSubjectX500Name(X509Certificate cert)
|
||||
throws CertificateParsingException {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue