mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8305406: Add @spec tags in java.base/java.* (part 2)
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org> Co-authored-by: Hannes Wallnöfer <hannesw@openjdk.org> Reviewed-by: valeriep
This commit is contained in:
parent
1476f6c475
commit
873f8a696f
59 changed files with 311 additions and 51 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2024, 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
|
||||
|
@ -227,6 +227,9 @@ import java.util.Objects;
|
|||
* Calling {@link SecureRandom#generateSeed(int)} will directly read
|
||||
* from this system default entropy source.
|
||||
*
|
||||
* @spec https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf
|
||||
* Recommendation for Random Number Generation Using Deterministic Random Bit Generators
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
public class DrbgParameters {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2024, 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
|
||||
|
@ -86,6 +86,10 @@ package java.security;
|
|||
* Security Appendix</a>
|
||||
* of the <cite>Java Object Serialization Specification</cite> for more information.
|
||||
*
|
||||
* @spec serialization/index.html Java Object Serialization Specification
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @see PublicKey
|
||||
* @see PrivateKey
|
||||
* @see KeyPair
|
||||
|
@ -124,6 +128,7 @@ public interface Key extends java.io.Serializable {
|
|||
* Java Security Standard Algorithm Names Specification</a>
|
||||
* for information about standard key algorithm names.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @return the name of the algorithm associated with this key.
|
||||
*/
|
||||
String getAlgorithm();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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
|
||||
|
@ -44,6 +44,7 @@ import java.util.Locale;
|
|||
* Security Appendix</a>
|
||||
* of the <cite>Java Object Serialization Specification</cite> for more information.
|
||||
*
|
||||
* @spec serialization/index.html Java Object Serialization Specification
|
||||
* @see Key
|
||||
* @see KeyFactory
|
||||
* @see javax.crypto.spec.SecretKeySpec
|
||||
|
|
|
@ -140,6 +140,11 @@ import java.util.regex.Pattern;
|
|||
* <li>{@link SecureRandomSpi#engineReseed(SecureRandomParameters)}
|
||||
* </ul>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc4086
|
||||
* RFC 4086: Randomness Requirements for Security
|
||||
* @spec https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.140-2.pdf
|
||||
* Security Requirements for Cryptographic Modules
|
||||
*
|
||||
* @see java.security.SecureRandomSpi
|
||||
* @see java.util.Random
|
||||
*
|
||||
|
|
|
@ -423,6 +423,7 @@ public final class Security {
|
|||
*
|
||||
* @return the value of the specified property.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @deprecated This method used to return the value of a proprietary
|
||||
* property in the master file of the "SUN" Cryptographic Service
|
||||
* Provider in order to determine how to parse algorithm-specific
|
||||
|
@ -657,6 +658,7 @@ public final class Security {
|
|||
* if the filter is not in the required format
|
||||
* @throws NullPointerException if filter is {@code null}
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @see #getProviders(java.util.Map)
|
||||
* @since 1.3
|
||||
*/
|
||||
|
@ -734,6 +736,7 @@ public final class Security {
|
|||
* if the filter is not in the required format
|
||||
* @throws NullPointerException if filter is {@code null}
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @see #getProviders(java.lang.String)
|
||||
* @since 1.3
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, 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
|
||||
|
@ -56,6 +56,8 @@ public abstract class CRL {
|
|||
* "{@docRoot}/../specs/security/standard-names.html">
|
||||
* Java Security Standard Algorithm Names</a> document
|
||||
* for information about standard CRL types.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
*/
|
||||
protected CRL(String type) {
|
||||
this.type = type;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2024, 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
|
||||
|
@ -31,6 +31,9 @@ package java.security.cert;
|
|||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL
|
||||
* Profile</a>.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @author Sean Mullan
|
||||
* @since 1.7
|
||||
* @see X509CRLEntry#getRevocationReason
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2024, 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
|
||||
|
@ -81,14 +81,13 @@ import java.util.*;
|
|||
* necessary locking. Multiple threads each manipulating separate objects
|
||||
* need not synchronize.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2560
|
||||
* RFC 2560: X.509 Internet Public Key Infrastructure Online Certificate
|
||||
* Status Protocol - OCSP
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @since 1.8
|
||||
*
|
||||
* @see <a href="http://www.ietf.org/rfc/rfc2560.txt"><i>RFC 2560: X.509
|
||||
* Internet Public Key Infrastructure Online Certificate Status Protocol -
|
||||
* OCSP</i></a>
|
||||
* @see <a href="http://www.ietf.org/rfc/rfc5280.txt"><i>RFC 5280:
|
||||
* Internet X.509 Public Key Infrastructure Certificate and Certificate
|
||||
* Revocation List (CRL) Profile</i></a>
|
||||
*/
|
||||
public abstract class PKIXRevocationChecker extends PKIXCertPathChecker {
|
||||
private URI ocspResponder;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -125,6 +125,10 @@ public class TrustAnchor {
|
|||
* decoded
|
||||
* @throws NullPointerException if the specified
|
||||
* {@code X509Certificate} is {@code null}
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
*/
|
||||
public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
|
||||
{
|
||||
|
@ -207,6 +211,10 @@ public class TrustAnchor {
|
|||
* or incorrectly formatted or the name constraints cannot be decoded
|
||||
* @throws NullPointerException if the specified {@code caName} or
|
||||
* {@code pubKey} parameter is {@code null}
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
*/
|
||||
public TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, 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
|
||||
|
@ -95,6 +95,9 @@ import java.util.Set;
|
|||
* }
|
||||
* }</pre>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @author Hemma Prafullchandra
|
||||
* @since 1.2
|
||||
*
|
||||
|
@ -457,6 +460,11 @@ public abstract class X509CRL extends CRL implements X509Extension {
|
|||
* relevant ASN.1 definitions.
|
||||
*
|
||||
* @return the signature algorithm OID string.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc3279
|
||||
* RFC 3279: Algorithms and Identifiers for the Internet X.509
|
||||
* Public Key Infrastructure Certificate and Certificate
|
||||
* Revocation List (CRL) Profile
|
||||
*/
|
||||
public abstract String getSigAlgOID();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2024, 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
|
||||
|
@ -65,6 +65,9 @@ import sun.security.x509.X500Name;
|
|||
* provide the necessary locking. Multiple threads each manipulating
|
||||
* separate objects need not synchronize.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @see CRLSelector
|
||||
* @see X509CRL
|
||||
*
|
||||
|
@ -193,6 +196,10 @@ public class X509CRLSelector implements CRLSelector {
|
|||
*
|
||||
* @param names a {@code Collection} of names (or {@code null})
|
||||
* @throws IOException if a parsing error occurs
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @see #getIssuerNames
|
||||
*/
|
||||
public void setIssuerNames(Collection<?> names) throws IOException {
|
||||
|
@ -238,6 +245,9 @@ public class X509CRLSelector implements CRLSelector {
|
|||
* <a href="http://www.ietf.org/rfc/rfc2253.txt">RFC 2253</a> form
|
||||
* @throws IOException if a parsing error occurs
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @deprecated Use {@link #addIssuer(X500Principal)} or
|
||||
* {@link #addIssuerName(byte[])} instead. This method should not be
|
||||
* relied on as it can fail to match some CRLs because of a loss of
|
||||
|
@ -493,6 +503,10 @@ public class X509CRLSelector implements CRLSelector {
|
|||
* protect against subsequent modifications.
|
||||
*
|
||||
* @return a {@code Collection} of names (or {@code null})
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @see #setIssuerNames
|
||||
*/
|
||||
public Collection<Object> getIssuerNames() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2024, 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
|
||||
|
@ -74,6 +74,9 @@ import sun.security.x509.*;
|
|||
* provide the necessary locking. Multiple threads each manipulating
|
||||
* separate objects need not synchronize.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @see CertSelector
|
||||
* @see X509Certificate
|
||||
*
|
||||
|
@ -194,6 +197,9 @@ public class X509CertSelector implements CertSelector {
|
|||
* (or {@code null})
|
||||
* @throws IOException if a parsing error occurs (incorrect form for DN)
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @deprecated Use {@link #setIssuer(X500Principal)} or
|
||||
* {@link #setIssuer(byte[])} instead. This method should not be relied on
|
||||
* as it can fail to match some certificates because of a loss of encoding
|
||||
|
@ -286,6 +292,9 @@ public class X509CertSelector implements CertSelector {
|
|||
* (or {@code null})
|
||||
* @throws IOException if a parsing error occurs (incorrect form for DN)
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @deprecated Use {@link #setSubject(X500Principal)} or
|
||||
* {@link #setSubject(byte[])} instead. This method should not be relied
|
||||
* on as it can fail to match some certificates because of a loss of
|
||||
|
@ -728,6 +737,12 @@ public class X509CertSelector implements CertSelector {
|
|||
* RFC 5280, section 4.2.1.6)
|
||||
* @param name the name in string form (not {@code null})
|
||||
* @throws IOException if a parsing error occurs
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @spec https://www.rfc-editor.org/info/rfc822
|
||||
* RFC 822: STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES
|
||||
*/
|
||||
public void addSubjectAlternativeName(int type, String name)
|
||||
throws IOException {
|
||||
|
@ -1269,6 +1284,9 @@ public class X509CertSelector implements CertSelector {
|
|||
* @return the required issuer distinguished name in RFC 2253 format
|
||||
* (or {@code null})
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @deprecated Use {@link #getIssuer()} or {@link #getIssuerAsBytes()}
|
||||
* instead. This method should not be relied on as it can fail to match
|
||||
* some certificates because of a loss of encoding information in the
|
||||
|
@ -1328,6 +1346,9 @@ public class X509CertSelector implements CertSelector {
|
|||
* @return the required subject distinguished name in RFC 2253 format
|
||||
* (or {@code null})
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @deprecated Use {@link #getSubject()} or {@link #getSubjectAsBytes()}
|
||||
* instead. This method should not be relied on as it can fail to match
|
||||
* some certificates because of a loss of encoding information in the
|
||||
|
|
|
@ -95,6 +95,9 @@ import java.util.List;
|
|||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @author Hemma Prafullchandra
|
||||
* @since 1.2
|
||||
*
|
||||
|
@ -386,6 +389,11 @@ implements X509Extension {
|
|||
* relevant ASN.1 definitions.
|
||||
*
|
||||
* @return the signature algorithm OID string.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc3279
|
||||
* RFC 3279: Algorithms and Identifiers for the Internet X.509
|
||||
* Public Key Infrastructure Certificate and Certificate
|
||||
* Revocation List (CRL) Profile
|
||||
*/
|
||||
public abstract String getSigAlgOID();
|
||||
|
||||
|
@ -614,6 +622,12 @@ implements X509Extension {
|
|||
* @return an immutable {@code Collection} of subject alternative
|
||||
* names (or {@code null})
|
||||
* @throws CertificateParsingException if the extension cannot be decoded
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2253
|
||||
* RFC 2253: Lightweight Directory Access Protocol (v3):
|
||||
* UTF-8 String Representation of Distinguished Names
|
||||
* @spec https://www.rfc-editor.org/info/rfc822
|
||||
* RFC 822: STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES
|
||||
* @since 1.4
|
||||
*/
|
||||
public Collection<List<?>> getSubjectAlternativeNames()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, 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,13 @@
|
|||
* <li> {@extLink security_guide_pki Java PKI Programmer's Guide}
|
||||
* </ul>
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @spec https://www.rfc-editor.org/info/rfc2560
|
||||
* RFC 2560: X.509 Internet Public Key Infrastructure Online Certificate
|
||||
* Status Protocol - OCSP
|
||||
* @spec https://www.rfc-editor.org/info/rfc5280
|
||||
* RFC 5280: Internet X.509 Public Key Infrastructure Certificate
|
||||
* and Certificate Revocation List (CRL) Profile
|
||||
* @since 1.2
|
||||
*/
|
||||
package java.security.cert;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2024, 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
|
||||
|
@ -35,6 +35,8 @@ import java.security.spec.NamedParameterSpec;
|
|||
* This interface allows access to the algorithm parameters associated with
|
||||
* the key.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
public interface EdECKey {
|
||||
|
|
|
@ -40,6 +40,8 @@ import java.util.Optional;
|
|||
* string lengths that are a multiple of 8, and the key is represented using
|
||||
* a byte array.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
public interface EdECPrivateKey extends EdECKey, PrivateKey {
|
||||
|
|
|
@ -38,6 +38,8 @@ import java.security.spec.NamedParameterSpec;
|
|||
* An Edwards-Curve public key is a point on the curve, which is represented using an
|
||||
* EdECPoint.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
public interface EdECPublicKey extends EdECKey, PublicKey {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2024, 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
|
||||
|
@ -33,6 +33,8 @@ import java.security.spec.AlgorithmParameterSpec;
|
|||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* such as those for RSA, or RSASSA-PSS algorithms.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Jan Luehe
|
||||
*
|
||||
* @see RSAPublicKey
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -33,6 +33,8 @@ import java.security.spec.RSAOtherPrimeInfo;
|
|||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* using the <i>Chinese Remainder Theorem</i> (CRT) information values.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Valerie Peng
|
||||
*
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, 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
|
||||
|
@ -32,6 +32,8 @@ import java.math.BigInteger;
|
|||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* using the <i>Chinese Remainder Theorem</i> (CRT) information values.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Jan Luehe
|
||||
* @since 1.2
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, 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
|
||||
|
@ -79,6 +79,7 @@
|
|||
*
|
||||
* </ul>
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
* @since 1.1
|
||||
*/
|
||||
package java.security;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2024, 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
|
||||
|
@ -29,6 +29,9 @@ package java.security.spec;
|
|||
* generating DSA parameters as specified in
|
||||
* <a href="http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf">FIPS 186-3 Digital Signature Standard (DSS)</a>.
|
||||
*
|
||||
* @spec https://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf
|
||||
* FIPS 186-3 Digital Signature Standard (DSS)
|
||||
*
|
||||
* @see AlgorithmParameterSpec
|
||||
*
|
||||
* @since 1.8
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2022, 2024, 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
|
||||
|
@ -41,6 +41,8 @@ import java.util.Optional;
|
|||
* <li>Otherwise, the mode is Ed25519 or Ed448</li>
|
||||
* </ul>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2024, 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
|
||||
|
@ -42,6 +42,8 @@ import java.util.Objects;
|
|||
* {@code BigInteger}, and implementations that consume objects of this class
|
||||
* may reject integer values which are not in the range [0, p).
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2024, 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
|
||||
|
@ -34,6 +34,8 @@ import java.util.Objects;
|
|||
* a byte array. This class only supports bit string lengths that are a
|
||||
* multiple of 8.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
public final class EdECPrivateKeySpec implements KeySpec {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2024, 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
|
||||
|
@ -33,6 +33,8 @@ import java.util.Objects;
|
|||
* algorithm parameters. The public key is a point on the curve, which is
|
||||
* represented using an {@code EdECPoint}.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8032
|
||||
* RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)
|
||||
* @since 15
|
||||
*/
|
||||
public final class EdECPublicKeySpec implements KeySpec {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2024, 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,8 @@ package java.security.spec;
|
|||
* ... -- Allows for future expansion --
|
||||
* }
|
||||
* </pre>
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @see PSSParameterSpec
|
||||
* @see javax.crypto.spec.OAEPParameterSpec
|
||||
*
|
||||
|
|
|
@ -65,6 +65,8 @@ import java.util.Objects;
|
|||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @see MGF1ParameterSpec
|
||||
* @see AlgorithmParameterSpec
|
||||
* @see java.security.Signature
|
||||
|
@ -96,6 +98,8 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
|
|||
|
||||
/**
|
||||
* The PSS parameter set with all default values.
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @deprecated This field uses the default values defined in the PKCS #1
|
||||
* standard. Some of these defaults are no longer recommended due
|
||||
* to advances in cryptanalysis -- see the
|
||||
|
@ -170,6 +174,8 @@ public class PSSParameterSpec implements AlgorithmParameterSpec {
|
|||
* @param saltLen the length of salt in bytes
|
||||
* @throws IllegalArgumentException if {@code saltLen} is
|
||||
* less than 0
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @deprecated This constructor uses the default values defined in
|
||||
* the PKCS #1 standard except for the salt length. Some of these
|
||||
* defaults are no longer recommended due to advances in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -34,6 +34,8 @@ import java.util.Objects;
|
|||
* using the Chinese Remainder Theorem (CRT) information values
|
||||
* for efficiency.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Valerie Peng
|
||||
*
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -42,6 +42,8 @@ import java.math.BigInteger;
|
|||
*
|
||||
* </pre>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Valerie Peng
|
||||
*
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, 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
|
||||
|
@ -32,6 +32,8 @@ import java.math.BigInteger;
|
|||
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
|
||||
* using the Chinese Remainder Theorem (CRT) information values for efficiency.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc8017
|
||||
* RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
|
||||
* @author Jan Luehe
|
||||
* @since 1.2
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue