mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8241761: Typos: empty lines in javadoc, inconsistent indents, etc. (security-libs only)
Reviewed-by: weijun
This commit is contained in:
parent
cc25927f2d
commit
3790e58090
65 changed files with 606 additions and 620 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
|
||||
|
@ -311,10 +311,10 @@ final class BasicPermissionCollection
|
|||
private static final long serialVersionUID = 739301742472979399L;
|
||||
|
||||
/**
|
||||
* Key is name, value is permission. All permission objects in
|
||||
* collection must be of the same type.
|
||||
* Not serialized; see serialization section at end of class.
|
||||
*/
|
||||
* Key is name, value is permission. All permission objects in
|
||||
* collection must be of the same type.
|
||||
* Not serialized; see serialization section at end of class.
|
||||
*/
|
||||
private transient ConcurrentHashMap<String, Permission> perms;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
@ -115,7 +115,7 @@ public abstract class KeyFactorySpi {
|
|||
*
|
||||
* @return the underlying key specification (key material) in an instance
|
||||
* of the requested specification class.
|
||||
|
||||
*
|
||||
* @throws InvalidKeySpecException if the requested key specification is
|
||||
* inappropriate for the given key, or the given key cannot be dealt with
|
||||
* (e.g., the given key has an unrecognized format).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -58,14 +58,14 @@ public class KeyManagementException extends KeyException {
|
|||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Constructs a KeyManagementException with the specified detail
|
||||
* message. A detail message is a String that describes this
|
||||
* particular exception.
|
||||
*
|
||||
* @param msg the detail message.
|
||||
*/
|
||||
public KeyManagementException(String msg) {
|
||||
public KeyManagementException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -72,12 +72,12 @@ public final class KeyPair implements java.io.Serializable {
|
|||
return publicKey;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Returns a reference to the private key component of this key pair.
|
||||
*
|
||||
* @return a reference to the private key.
|
||||
*/
|
||||
public PrivateKey getPrivate() {
|
||||
public PrivateKey getPrivate() {
|
||||
return privateKey;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -66,7 +66,7 @@ public interface PrivateKey extends Key, javax.security.auth.Destroyable {
|
|||
*
|
||||
* @deprecated A {@code serialVersionUID} field in an interface is
|
||||
* ineffectual. Do not use; no replacement.
|
||||
*/
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial")
|
||||
@java.io.Serial
|
||||
|
|
|
@ -287,7 +287,7 @@ public abstract class Provider extends Properties {
|
|||
* @throws UnsupportedOperationException if a configuration argument is
|
||||
* not supported.
|
||||
* @throws NullPointerException if the supplied configuration argument is
|
||||
null.
|
||||
* null.
|
||||
* @throws InvalidParameterException if the supplied configuration argument
|
||||
* is invalid.
|
||||
* @return a provider configured with the supplied configuration argument.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -851,9 +851,9 @@ public final class Security {
|
|||
}
|
||||
|
||||
/*
|
||||
* Returns all providers who satisfy the specified
|
||||
* criterion.
|
||||
*/
|
||||
* Returns all providers who satisfy the specified
|
||||
* criterion.
|
||||
*/
|
||||
private static LinkedHashSet<Provider> getAllQualifyingCandidates(
|
||||
String filterKey,
|
||||
String filterValue,
|
||||
|
@ -1067,7 +1067,7 @@ public final class Security {
|
|||
* or an empty set if no provider supports the specified service.
|
||||
*
|
||||
* @since 1.4
|
||||
**/
|
||||
*/
|
||||
public static Set<String> getAlgorithms(String serviceName) {
|
||||
|
||||
if ((serviceName == null) || (serviceName.isEmpty()) ||
|
||||
|
|
|
@ -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
|
||||
|
@ -112,7 +112,7 @@ import java.util.StringTokenizer;
|
|||
* <td>Getting an instance of a Policy implementation from a provider</td>
|
||||
* <td>Granting this permission enables code to obtain a Policy object.
|
||||
* Malicious code may query the Policy object to determine what permissions
|
||||
* have been granted to code other than itself. </td>
|
||||
* have been granted to code other than itself.</td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
|
@ -124,8 +124,7 @@ import java.util.StringTokenizer;
|
|||
* security policies. while revealing this information does not
|
||||
* compromise the security of the system, it does provide malicious
|
||||
* code with additional information which it may use to better aim
|
||||
* an attack.
|
||||
</td>
|
||||
* an attack.</td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
|
@ -139,8 +138,7 @@ import java.util.StringTokenizer;
|
|||
* permission to set the location of the system-wide security policy
|
||||
* may point it to a security policy that grants the attacker
|
||||
* all the necessary permissions it requires to successfully mount
|
||||
* an attack on the system.
|
||||
</td>
|
||||
* an attack on the system.</td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
|
@ -153,8 +151,7 @@ import java.util.StringTokenizer;
|
|||
* currently does not check the integrity or authenticity of a provider
|
||||
* before attaching it. The "insertProvider" permission subsumes the
|
||||
* "insertProvider.{provider name}" permission (see the section below for
|
||||
* more information).
|
||||
* </td>
|
||||
* more information).</td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -113,7 +113,7 @@ public abstract class Signer extends Identity {
|
|||
return privateKey;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Sets the key pair (public key and private key) for this signer.
|
||||
*
|
||||
* <p>First, if there is a security manager, its {@code checkSecurityAccess}
|
||||
|
|
|
@ -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
|
||||
|
@ -38,7 +38,7 @@ public class CRLException extends GeneralSecurityException {
|
|||
@java.io.Serial
|
||||
private static final long serialVersionUID = -6694728944094197147L;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Constructs a CRLException with no detail message. A
|
||||
* detail message is a String that describes this particular
|
||||
* exception.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 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
|
||||
|
@ -609,7 +609,7 @@ public class PKIXParameters implements CertPathParameters {
|
|||
*
|
||||
* @param sigProvider the signature provider's name (or {@code null})
|
||||
* @see #getSigProvider
|
||||
*/
|
||||
*/
|
||||
public void setSigProvider(String sigProvider) {
|
||||
this.sigProvider = sigProvider;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 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
|
||||
|
@ -50,9 +50,9 @@ public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey {
|
|||
* The type fingerprint that is set to indicate
|
||||
* serialization compatibility with a previous
|
||||
* version of the type.
|
||||
*
|
||||
* @deprecated A {@code serialVersionUID} field in an interface is
|
||||
* ineffectual. Do not use; no replacement.
|
||||
*
|
||||
* @deprecated A {@code serialVersionUID} field in an interface is
|
||||
* ineffectual. Do not use; no replacement.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("serial")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 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
|
||||
|
@ -63,7 +63,7 @@ public interface RSAPrivateCrtKey extends RSAPrivateKey {
|
|||
|
||||
/**
|
||||
* Returns the primeP.
|
||||
|
||||
*
|
||||
* @return the primeP
|
||||
*/
|
||||
public BigInteger getPrimeP();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 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
|
||||
|
@ -123,7 +123,7 @@ public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec {
|
|||
|
||||
/**
|
||||
* Returns the primeP.
|
||||
|
||||
*
|
||||
* @return the primeP
|
||||
*/
|
||||
public BigInteger getPrimeP() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue