return unlock(secured, crypter, newBuilder);
}
static <T extends GeneratedMessage> T unlock(SecretData secured, AuthenticatedUser user,
GeneratedMessage.Builder newBuilder) throws IOException {
EncryptedWith encryptedWith = EncryptedWith.PUBLIC_KEY;
if (secured.hasEncryptedWith()) {
encryptedWith = secured.getEncryptedWith();
}