Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 19, 2023
1 parent 8245b1d commit 386af8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ public static CryptoCipher getCryptoCipher(final String transformation)
* @param transformation algorithm/mode/padding
* @return CryptoCipher the cipher (defaults to OpenSslCipher)
* @throws GeneralSecurityException if cipher initialize failed
* @throws IllegalArgumentException if no classname(s) were provided
* @throws IllegalArgumentException if no class name(s) were provided
*/
public static CryptoCipher getCryptoCipher(final String transformation, final Properties properties) throws GeneralSecurityException {
final List<String> names = Utils.splitClassNames(getCipherClassString(properties), ",");
if (names.isEmpty()) {
throw new IllegalArgumentException("No classname(s) provided");
throw new IllegalArgumentException("No class name(s) provided");
}
CryptoCipher cipher = null;
Exception lastException = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static CryptoRandom getCryptoRandom() throws GeneralSecurityException {
* @param props the configuration properties.
* @return CryptoRandom the cryptoRandom object.
* @throws GeneralSecurityException if cannot create the {@link CryptoRandom} class
* @throws IllegalArgumentException if no classname(s) are provided
* @throws IllegalArgumentException if no class name(s) are provided
*/
public static CryptoRandom getCryptoRandom(final Properties props)
throws GeneralSecurityException {
Expand Down

0 comments on commit 386af8a

Please sign in to comment.