/** * Checks the availability of the secret key, that is required to encrypt and decrypt. */ public boolean hasSecretKey() { return aesCipher.hasSecretKey(); }
@Test public void doesNotHaveSecretKey() { AesCipher cipher = new AesCipher("/my/twitter/id/is/SimonBrandhof"); assertThat(cipher.hasSecretKey()).isFalse(); }
@Test public void hasSecretKey() throws Exception { AesCipher cipher = new AesCipher(pathToSecretKey()); assertThat(cipher.hasSecretKey()).isTrue(); }
/** * Checks the availability of the secret key, that is required to encrypt and decrypt. */ public boolean hasSecretKey() { return aesCipher.hasSecretKey(); }
/** * Checks the availability of the secret key, that is required to encrypt and decrypt. */ public boolean hasSecretKey() { return aesCipher.hasSecretKey(); }