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
|
@ -98,6 +98,8 @@ public class SecretKeySpec implements KeySpec, SecretKey {
|
|||
* for information about standard algorithm names.
|
||||
* @exception IllegalArgumentException if <code>algorithm</code>
|
||||
* is null or <code>key</code> is null or empty.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
*/
|
||||
public SecretKeySpec(byte[] key, String algorithm) {
|
||||
String errMsg = doSanityCheck(key, algorithm);
|
||||
|
@ -144,6 +146,8 @@ public class SecretKeySpec implements KeySpec, SecretKey {
|
|||
* @exception ArrayIndexOutOfBoundsException is thrown if
|
||||
* <code>offset</code> or <code>len</code> index bytes outside the
|
||||
* <code>key</code>.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
*/
|
||||
public SecretKeySpec(byte[] key, int offset, int len, String algorithm) {
|
||||
if (key == null || algorithm == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue