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

org.pgpainless.key.OpenPgpV5Fingerprint.kt Maven / Gradle / Ivy

The newest version!
// SPDX-FileCopyrightText: 2023 Paul Schaub 
//
// SPDX-License-Identifier: Apache-2.0

package org.pgpainless.key

import org.bouncycastle.openpgp.PGPKeyRing
import org.bouncycastle.openpgp.PGPPublicKey
import org.bouncycastle.openpgp.PGPSecretKey

/** This class represents a hex encoded uppercase OpenPGP v5 fingerprint. */
class OpenPgpV5Fingerprint : _64DigitFingerprint {

    constructor(fingerprint: String) : super(fingerprint)

    constructor(key: PGPPublicKey) : super(key)

    constructor(key: PGPSecretKey) : super(key)

    constructor(keys: PGPKeyRing) : super(keys)

    constructor(bytes: ByteArray) : super(bytes)

    override fun getVersion(): Int {
        return 5
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy