Skip to content

Commit 4d917fa

Browse files
committed
Deprecate Sha2Crypt.Sha2Crypt()
1 parent 1b815fe commit 4d917fa

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
4848
<action type="fix" dev="ggregory" due-to="Gary Gregory">Rewrite DaitchMokotoffSoundex.soundex(String) using String.join().</action>
4949
<action type="fix" issue="CODEC-324" dev="ggregory" due-to="Michael Froh">Use Resource.class to load resources, rather than its class loader #353.</action>
5050
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharSequenceUtils.CharSequenceUtils().</action>
51+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Sha2Crypt.Sha2Crypt().</action>
5152
<!-- ADD -->
5253
<!-- UPDATE -->
5354
<action type="update" dev="ggregory" due-to="Dependabot">Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #296, #305, #313.</action>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,4 +613,14 @@ public static String sha512Crypt(final byte[] keyBytes, String salt, final Rando
613613
}
614614
return sha2Crypt(keyBytes, salt, SHA512_PREFIX, SHA512_BLOCKSIZE, MessageDigestAlgorithms.SHA_512);
615615
}
616+
617+
/**
618+
* Consider private.
619+
*
620+
* @deprecated Will be private in the next major version.
621+
*/
622+
@Deprecated
623+
public Sha2Crypt() {
624+
// empty
625+
}
616626
}

0 commit comments

Comments
 (0)