This is an automated email from the ASF dual-hosted git repository.

bdemers pushed a commit to branch pr-297-to-main
in repository https://gitbox.apache.org/repos/asf/shiro.git

commit 192159c7097aa7cea25665d423648f91ffd06522
Author: Brian Demers <bdem...@apache.org>
AuthorDate: Thu May 6 11:31:23 2021 -0400

    Add doc note in AesCipherService of Java 14 behavior change
---
 .../src/main/java/org/apache/shiro/crypto/cipher/AesCipherService.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/crypto/cipher/src/main/java/org/apache/shiro/crypto/cipher/AesCipherService.java
 
b/crypto/cipher/src/main/java/org/apache/shiro/crypto/cipher/AesCipherService.java
index f8c63b1..3b1a058 100644
--- 
a/crypto/cipher/src/main/java/org/apache/shiro/crypto/cipher/AesCipherService.java
+++ 
b/crypto/cipher/src/main/java/org/apache/shiro/crypto/cipher/AesCipherService.java
@@ -89,6 +89,9 @@ public class AesCipherService extends 
DefaultBlockCipherService {
      * <b>**</b>Since {@code GCM} is a stream cipher, padding is implemented 
in the operation mode and an external padding scheme
      * cannot be used in conjunction with {@code GCM}. In fact, {@code 
AES/GCM/PKCS5Padding} is just an alias in most JVM for
      * {@code AES/GCM/NoPadding}.
+     * <p/>
+     * <b>NOTE:</b> As of Java 14, setting a streaming padding for the above 
example will throw a NoSuchAlgorithmException
+     * @see <a 
href="https://www.oracle.com/java/technologies/javase/14-relnote-issues.html#JDK-8180392";>JDK-8180392</a>
      */
     public AesCipherService() {
         super(ALGORITHM_NAME);

Reply via email to