File tree Expand file tree Collapse file tree
crypto-java/src/main/java/de/dominikschadow/javasecurity/symmetric Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments