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
|
@ -682,8 +682,9 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
|
|||
* TeletexString or UniversalString.
|
||||
* @return the issuer name.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public Principal getIssuerDN() {
|
||||
return (Principal)issuer;
|
||||
return issuer;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -901,7 +901,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
|||
SerialNumber ser = (SerialNumber)info.get(
|
||||
CertificateSerialNumber.NAME + DOT +
|
||||
CertificateSerialNumber.NUMBER);
|
||||
return ser;
|
||||
return ser;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
@ -913,6 +913,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
|||
*
|
||||
* @return the subject name.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public Principal getSubjectDN() {
|
||||
if (info == null)
|
||||
return null;
|
||||
|
@ -949,6 +950,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
|||
*
|
||||
* @return the issuer name.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public Principal getIssuerDN() {
|
||||
if (info == null)
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue