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

it.auties.whatsapp.model.signal.keypair.SignalKeyPairBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.signal.keypair;

public class SignalKeyPairBuilder {
    private byte[] publicKey;
    private byte[] privateKey;

    public SignalKeyPairBuilder() {
        publicKey = null;
        privateKey = null;
    }

    public SignalKeyPairBuilder publicKey(byte[] publicKey) {
        this.publicKey = publicKey;
        return this;
    }

    public SignalKeyPairBuilder privateKey(byte[] privateKey) {
        this.privateKey = privateKey;
        return this;
    }

    public it.auties.whatsapp.model.signal.keypair.SignalKeyPair build() {
        return new it.auties.whatsapp.model.signal.keypair.SignalKeyPair(publicKey, privateKey);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy