/** * Decode given payload and decrypt it to original. * All necessary parameters are supplied through {@link Builder}. * @param encodedPayload text to decode and decrypt * @return decrypted secret * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public char[] decodeAndDecrypt(String encodedPayload) throws GeneralSecurityException { return byteArrayDecode(decrypt(decodeUsingAlphabet(encodedPayload))); }
/** * Decode given payload and decrypt it to original. * All necessary parameters are supplied through {@link Builder}. * @param encodedPayload text to decode and decrypt * @return decrypted secret * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public char[] decodeAndDecrypt(String encodedPayload) throws GeneralSecurityException { return byteArrayDecode(decrypt(decodeUsingAlphabet(encodedPayload))); }
/** * Decode given payload and decrypt it to original. * All necessary parameters are supplied through {@link Builder}. * @param encodedPayload text to decode and decrypt * @return decrypted secret * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public char[] decodeAndDecrypt(String encodedPayload) throws GeneralSecurityException { return byteArrayDecode(decrypt(decodeUsingAlphabet(encodedPayload))); }
/** * Decode given payload and decrypt it to original. * All necessary parameters are supplied through {@link Builder}. * @param encodedPayload text to decode and decrypt * @return decrypted secret * @throws GeneralSecurityException when problem occurs like non-existent algorithm or similar problems */ public char[] decodeAndDecrypt(String encodedPayload) throws GeneralSecurityException { return byteArrayDecode(decrypt(decodeUsingAlphabet(encodedPayload))); }