mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -197,12 +197,6 @@ implements X509Extension {
|
|||
public abstract BigInteger getSerialNumber();
|
||||
|
||||
/**
|
||||
* <strong>Denigrated</strong>, replaced by {@linkplain
|
||||
* #getIssuerX500Principal()}. This method returns the {@code issuer}
|
||||
* as an implementation specific Principal object, which should not be
|
||||
* relied upon by portable code.
|
||||
*
|
||||
* <p>
|
||||
* Gets the {@code issuer} (issuer distinguished name) value from
|
||||
* the certificate. The issuer name identifies the entity that signed (and
|
||||
* issued) the certificate.
|
||||
|
@ -234,7 +228,13 @@ implements X509Extension {
|
|||
* {@code TeletexString} or {@code UniversalString}.
|
||||
*
|
||||
* @return a Principal whose name is the issuer distinguished name.
|
||||
*
|
||||
* @deprecated Use {@link #getIssuerX500Principal} instead. This method
|
||||
* returns the {@code issuer} as an implementation specific
|
||||
* {@code Principal} object, which should not be relied upon by portable
|
||||
* code.
|
||||
*/
|
||||
@Deprecated(since="16")
|
||||
public abstract Principal getIssuerDN();
|
||||
|
||||
/**
|
||||
|
@ -255,12 +255,6 @@ implements X509Extension {
|
|||
}
|
||||
|
||||
/**
|
||||
* <strong>Denigrated</strong>, replaced by {@linkplain
|
||||
* #getSubjectX500Principal()}. This method returns the {@code subject}
|
||||
* as an implementation specific Principal object, which should not be
|
||||
* relied upon by portable code.
|
||||
*
|
||||
* <p>
|
||||
* Gets the {@code subject} (subject distinguished name) value
|
||||
* from the certificate. If the {@code subject} value is empty,
|
||||
* then the {@code getName()} method of the returned
|
||||
|
@ -275,7 +269,13 @@ implements X509Extension {
|
|||
* and other relevant definitions.
|
||||
*
|
||||
* @return a Principal whose name is the subject name.
|
||||
*
|
||||
* @deprecated Use {@link #getSubjectX500Principal} instead. This method
|
||||
* returns the {@code subject} as an implementation specific
|
||||
* {@code Principal} object, which should not be relied upon by portable
|
||||
* code.
|
||||
*/
|
||||
@Deprecated(since="16")
|
||||
public abstract Principal getSubjectDN();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue