Skip to content

Commit

Permalink
Deprecate AES.AES()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 21, 2023
1 parent 5707b28 commit 9d3ea06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<action dev="ggregory" type="fix" due-to="Martin Wiesner">Fixes grammar and typos in Javadoc #233.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate OpenSslJna.OpenSslJna().</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Crypto.Crypto().</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate AES.AES().</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump commons-parent from 56 to 64 #225.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump com.sun.xml.bind:jaxb-impl from 2.3.7 to 2.3.8.</action>
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/org/apache/commons/crypto/utils/AES.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 9d3ea06

Please sign in to comment.