@Override
public void setProjectSecret(ClientApp app, Auth auth, Project project, byte[] payload) throws CloudException {
AuthenticatedUser user = authService.toAuthenticatedUser(auth);
Project authProject = auth.getProject();
if (project == null) {
throw new IllegalArgumentException();
}
if (authProject.getId() != project.getId()) {
throw new IllegalArgumentException();
}
long projectId = project.getId();