Skip to content

Commit 7166892

Browse files
committed
Added private constructors
1 parent d1e95be commit 7166892

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crypto-java/src/main/java/de/dominikschadow/javasecurity/symmetric

crypto-java/src/main/java/de/dominikschadow/javasecurity/symmetric/AES.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private KeyStore loadKeystore(String keystorePath, char[] keystorePassword) thro
8989
return ks;
9090
}
9191

92-
private Key loadKey(KeyStore ks, String keyAlias, char[] keyPassword) throws KeyStoreException,
92+
private static Key loadKey(KeyStore ks, String keyAlias, char[] keyPassword) throws KeyStoreException,
9393
UnrecoverableKeyException, NoSuchAlgorithmException {
9494
if (!ks.containsAlias(keyAlias)) {
9595
throw new UnrecoverableKeyException("Secret key " + keyAlias + " not found in keystore");
@@ -112,7 +112,7 @@ private byte[] decrypt(SecretKeySpec secretKeySpec, byte[] ciphertext) throws No
112112
return cipher.doFinal(ciphertext);
113113
}
114114

115-
private void printReadableMessages(String initialText, byte[] ciphertext, byte[] plaintext) {
115+
private static void printReadableMessages(String initialText, byte[] ciphertext, byte[] plaintext) {
116116
LOGGER.info("initial text: {}", initialText);
117117
LOGGER.info("cipher text: {}", BaseEncoding.base16().encode(ciphertext));
118118
LOGGER.info("plain text: {}", new String(plaintext));

0 commit comments

Comments
 (0)