package org.bouncycastle.openpgp;

import java.io.IOException;
import org.bouncycastle.bcpg.BCPGInputStream;
import org.bouncycastle.bcpg.TrustPacket;
import org.bouncycastle.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public class PGPTrust {
    private final TrustPacket packet;

    public PGPTrust(BCPGInputStream bCPGInputStream) throws IOException {
        this((TrustPacket) bCPGInputStream.readPacket());
    }

    public PGPTrust(TrustPacket trustPacket) {
        this.packet = trustPacket;
    }

    public byte[] getLevelAndTrust() {
        return Arrays.clone(this.packet.getLevelAndTrustAmount());
    }

    public TrustPacket getPacket() {
        return this.packet;
    }
}
