mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
4964430: (spec) missing IllegalStateException exception requirement for javax.crypto.Cipher.doFinal
Reviewed-by: mullan, valeriep
This commit is contained in:
parent
8a30c2a9b2
commit
991ce84e09
2 changed files with 49 additions and 32 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, 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
|
||||
|
@ -30,7 +30,9 @@ package javax.crypto;
|
|||
* "identity cipher" -- one that does not transform the plain text. As
|
||||
* a consequence, the ciphertext is identical to the plaintext. All
|
||||
* initialization methods do nothing, while the blocksize is set to 1
|
||||
* byte.
|
||||
* byte. Unlike other ciphers, the {@code NullCipher} has no state, and
|
||||
* will never throw an {@code IllegalStateException} when {@code Cipher}
|
||||
* methods are called.
|
||||
*
|
||||
* @author Li Gong
|
||||
* @since 1.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue