org.signal.libsignal.svr2.Svr2Client Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libsignal-client Show documentation
Show all versions of libsignal-client Show documentation
Signal Protocol cryptography library for Java
//
// 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