Signer
interface Signer
An interface defining the contract for signing and verifying signatures on payloads.
Signer
provides a generic approach to:
Implementers of this interface should ensure mechanisms provided for signing and verifying respect the cryptographic standards necessary for secure and valid operations.
Usage Example:
class MySigner : Signer {
override fun sign(privateKey: Jwk , payload: Payload, options: SignOptions?): String {
// Implementation-specific signing logic.
}
override fun verify(publicKey: Jwk , jws: String, options: VerifyOptions?) {
// Implementation-specific verification logic.
}
}
Content copied to clipboard
Implementers may utilize SignOptions and VerifyOptions to allow consumers to pass in additional, implementation-specific options to influence the signing and verification processes respectively.
See also
for options during signing.
for options during signature verification.