Skip to content

Commit c74ed13

Browse files
author
Gary Gregory
committed
Javadoc: Add @SInCE 1.12/
1 parent c2b70e8 commit c74ed13

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/org/apache/commons/codec/digest/Md5Crypt.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public static String apr1Crypt(final byte[] keyBytes) {
9090
* or {@link ThreadLocalRandom}.
9191
* @throws IllegalArgumentException when a {@link java.security.NoSuchAlgorithmException} is caught. *
9292
* @see #apr1Crypt(byte[], String)
93+
* @since 1.12
9394
*/
9495
public static String apr1Crypt(final byte[] keyBytes, final Random random) {
9596
return apr1Crypt(keyBytes, APR1_PREFIX + B64.getRandomSalt(8, random));
@@ -198,6 +199,7 @@ public static String md5Crypt(final byte[] keyBytes) {
198199
* @throws IllegalArgumentException
199200
* when a {@link java.security.NoSuchAlgorithmException} is caught.
200201
* @see #md5Crypt(byte[], String)
202+
* @since 1.12
201203
*/
202204
public static String md5Crypt(final byte[] keyBytes, final Random random) {
203205
return md5Crypt(keyBytes, MD5_PREFIX + B64.getRandomSalt(8, random));
@@ -273,6 +275,7 @@ public static String md5Crypt(final byte[] keyBytes, final String salt, final St
273275
* if the salt does not match the allowed pattern
274276
* @throws IllegalArgumentException
275277
* when a {@link java.security.NoSuchAlgorithmException} is caught.
278+
* @since 1.12
276279
*/
277280
public static String md5Crypt(final byte[] keyBytes, final String salt, final String prefix, final Random random) {
278281
final int keyLen = keyBytes.length;

src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static String sha256Crypt(final byte[] keyBytes, String salt) {
132132
* if the salt does not match the allowed pattern
133133
* @throws IllegalArgumentException
134134
* when a {@link java.security.NoSuchAlgorithmException} is caught.
135+
* @since 1.12
135136
*/
136137
public static String sha256Crypt(final byte[] keyBytes, String salt, Random random) {
137138
if (salt == null) {
@@ -607,6 +608,7 @@ public static String sha512Crypt(final byte[] keyBytes, String salt) {
607608
* if the salt does not match the allowed pattern
608609
* @throws IllegalArgumentException
609610
* when a {@link java.security.NoSuchAlgorithmException} is caught.
611+
* @since 1.12
610612
*/
611613
public static String sha512Crypt(final byte[] keyBytes, String salt, final Random random) {
612614
if (salt == null) {

0 commit comments

Comments
 (0)