use of org.whispersystems.signalservice.internal.keybackup.protos.DeleteRequest in project Signal-Android by signalapp.
the class KeyBackupCipher method createKeyDeleteRequest.
public static KeyBackupRequest createKeyDeleteRequest(TokenResponse token, RemoteAttestation remoteAttestation, byte[] serviceId) {
DeleteRequest deleteRequest = DeleteRequest.newBuilder().setServiceId(ByteString.copyFrom(serviceId)).setBackupId(ByteString.copyFrom(token.getBackupId())).build();
Request request = Request.newBuilder().setDelete(deleteRequest).build();
return createKeyBackupRequest(request, remoteAttestation, "delete");
}
use of org.whispersystems.signalservice.internal.keybackup.protos.DeleteRequest in project Signal-Android by WhisperSystems.
the class KeyBackupCipher method createKeyDeleteRequest.
public static KeyBackupRequest createKeyDeleteRequest(TokenResponse token, RemoteAttestation remoteAttestation, byte[] serviceId) {
DeleteRequest deleteRequest = DeleteRequest.newBuilder().setServiceId(ByteString.copyFrom(serviceId)).setBackupId(ByteString.copyFrom(token.getBackupId())).build();
Request request = Request.newBuilder().setDelete(deleteRequest).build();
return createKeyBackupRequest(request, remoteAttestation, "delete");
}
Aggregations