mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8229999: Apply java.io.Serial annotations to security types in java.base
Reviewed-by: rriggs, mullan
This commit is contained in:
parent
470d32df73
commit
6d4ef5aaf3
158 changed files with 377 additions and 141 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, 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
|
||||
|
@ -55,6 +55,7 @@ import static sun.security.rsa.RSAUtil.KeyType;
|
|||
public final class RSAPrivateCrtKeyImpl
|
||||
extends PKCS8Key implements RSAPrivateCrtKey {
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -1326088454257084918L;
|
||||
|
||||
private BigInteger n; // modulus
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, 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
|
||||
|
@ -52,6 +52,7 @@ import sun.security.pkcs.PKCS8Key;
|
|||
*/
|
||||
public final class RSAPrivateKeyImpl extends PKCS8Key implements RSAPrivateKey {
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -33106691987952810L;
|
||||
|
||||
private final BigInteger n; // modulus
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, 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
|
||||
|
@ -52,6 +52,7 @@ import static sun.security.rsa.RSAUtil.KeyType;
|
|||
*/
|
||||
public final class RSAPublicKeyImpl extends X509Key implements RSAPublicKey {
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 2644735423591199609L;
|
||||
private static final BigInteger THREE = BigInteger.valueOf(3);
|
||||
|
||||
|
@ -198,6 +199,7 @@ public final class RSAPublicKeyImpl extends X509Key implements RSAPublicKey {
|
|||
+ "\n public exponent: " + e;
|
||||
}
|
||||
|
||||
@java.io.Serial
|
||||
protected Object writeReplace() throws java.io.ObjectStreamException {
|
||||
return new KeyRep(KeyRep.Type.PUBLIC,
|
||||
getAlgorithm(),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, 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
|
||||
|
@ -40,6 +40,7 @@ import static sun.security.util.SecurityConstants.PROVIDER_VER;
|
|||
*/
|
||||
public final class SunRsaSign extends Provider {
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 866040293550393045L;
|
||||
|
||||
public SunRsaSign() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue