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

sop.SOPV.kt Maven / Gradle / Ivy

There is a newer version: 10.0.3
Show newest version
// SPDX-FileCopyrightText: 2024 Paul Schaub 
//
// SPDX-License-Identifier: Apache-2.0

package sop

import sop.operation.DetachedVerify
import sop.operation.InlineVerify
import sop.operation.Version

/** Subset of [SOP] implementing only OpenPGP signature verification. */
interface SOPV {

    /** Get information about the implementations name and version. */
    fun version(): Version

    /**
     * Verify detached signatures. If you need to verify an inline-signed message, use
     * [inlineVerify] instead.
     */
    fun verify(): DetachedVerify = detachedVerify()

    /**
     * Verify detached signatures. If you need to verify an inline-signed message, use
     * [inlineVerify] instead.
     */
    fun detachedVerify(): DetachedVerify

    /**
     * Verify signatures of an inline-signed message. If you need to verify detached signatures over
     * a message, use [detachedVerify] instead.
     */
    fun inlineVerify(): InlineVerify
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy