public BackendSecretData getSecretData(BackendData backendData) {
try {
Crypter crypter = sharedKeystore.buildCrypter(KEY);
byte[] plaintext = crypter.decrypt(backendData.getSecretData().getCiphertext().toByteArray());
BackendSecretData secretData = BackendSecretData.parseFrom(plaintext);
return secretData;
} catch (Exception e) {
throw new IllegalArgumentException("Error decrypting backend secret", e);
}