From 9d3ea066969d31c3b5d8400a1ddcb0bfa54ba4c1 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 21 Oct 2023 10:38:51 -0400 Subject: [PATCH] Deprecate AES.AES() --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/crypto/utils/AES.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5f20b8955..3826bdb39 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -70,6 +70,7 @@ Fixes grammar and typos in Javadoc #233. Deprecate OpenSslJna.OpenSslJna(). Deprecate Crypto.Crypto(). + Deprecate AES.AES(). Bump commons-parent from 56 to 64 #225. Bump com.sun.xml.bind:jaxb-impl from 2.3.7 to 2.3.8. diff --git a/src/main/java/org/apache/commons/crypto/utils/AES.java b/src/main/java/org/apache/commons/crypto/utils/AES.java index 684b58063..93e08211d 100644 --- a/src/main/java/org/apache/commons/crypto/utils/AES.java +++ b/src/main/java/org/apache/commons/crypto/utils/AES.java @@ -54,4 +54,14 @@ public static SecretKeySpec newSecretKeySpec(final byte[] key) { return new SecretKeySpec(key, ALGORITHM); } + + /** + * Constructs a new instance. + * + * @deprecated Will be private in the next major release. + */ + @Deprecated + public AES() { + // empty + } }