}
private byte[] findProjectSecret(NamedItemCollection<AttachmentData> store, ClientApp app,
AuthenticatedProject project) throws CloudException {
String appKey = app.getAppId();
AttachmentData existing = store.find(appKey);
if (existing == null) {
return null;
}
SecretData secretData = existing.getData();
try {
byte[] plaintext = appSecrets.decryptProjectSecret(project, secretData);
return plaintext;
} catch (KeyczarException e) {