All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.signal.libsignal.svr2.Svr2Client Maven / Gradle / Ivy

There is a newer version: 0.62.0
Show newest version
//
// Copyright 2023 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//

package org.signal.libsignal.svr2;

import static org.signal.libsignal.internal.FilterExceptions.filterExceptions;

import java.time.Instant;
import org.signal.libsignal.attest.AttestationDataException;
import org.signal.libsignal.attest.AttestationFailedException;
import org.signal.libsignal.internal.Native;
import org.signal.libsignal.sgxsession.SgxClient;

/**
 * Svr2Client provides bindings to interact with Signal's v2 Secure Value Recovery service.
 *
 * 

* *

{@inheritDoc} */ public class Svr2Client extends SgxClient { public Svr2Client(byte[] mrenclave, byte[] attestationMsg, Instant currentInstant) throws AttestationDataException, AttestationFailedException { super( filterExceptions( AttestationDataException.class, AttestationFailedException.class, () -> Native.Svr2Client_New(mrenclave, attestationMsg, currentInstant.toEpochMilli()))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy