org.signal.libsignal.devicetransfer.DeviceTransferKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-client-java Show documentation
Show all versions of signal-client-java Show documentation
Signal Protocol cryptography library for Java
The newest version!
//
// Copyright 2021 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//
package org.signal.libsignal.devicetransfer;
import org.signal.client.internal.Native;
public class DeviceTransferKey {
byte[] keyMaterial;
public DeviceTransferKey() {
this.keyMaterial = Native.DeviceTransfer_GeneratePrivateKey();
}
public byte[] keyMaterial() {
return this.keyMaterial;
}
public byte[] generateCertificate(String name, int daysTilExpires) {
return Native.DeviceTransfer_GenerateCertificate(this.keyMaterial, name, daysTilExpires);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy