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

org.signal.libsignal.cds2.Cds2Client Maven / Gradle / Ivy

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

package org.signal.libsignal.cds2;

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;

/**
 * Cds2Client provides bindings to interact with Signal's v2 Contact Discovery Service.
 *
 * 

{@inheritDoc} * *

A future update to Cds2Client will implement additional parts of the contact discovery * protocol. */ public class Cds2Client extends SgxClient { public Cds2Client(byte[] mrenclave, byte[] attestationMsg, Instant currentInstant) throws AttestationDataException, AttestationFailedException { super( filterExceptions( AttestationDataException.class, AttestationFailedException.class, () -> Native.Cds2ClientState_New( mrenclave, attestationMsg, currentInstant.toEpochMilli()))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy