From 386af8a10b7a3865553097060973337b1c553090 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 19 Oct 2023 07:29:25 -0400 Subject: [PATCH] Javadoc --- .../org/apache/commons/crypto/cipher/CryptoCipherFactory.java | 4 ++-- .../org/apache/commons/crypto/random/CryptoRandomFactory.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java index 5da96806f..c3fbdf9e5 100644 --- a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java +++ b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java @@ -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 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; diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java index cad051afd..75141fdbe 100644 --- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java +++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java @@ -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 {