DefaultVerifierJwsService

class DefaultVerifierJwsService(cryptoService: VerifierCryptoService = DefaultVerifierCryptoService(), jwkSetRetriever: JwkSetRetrieverFunction = { null }) : VerifierJwsService

Constructors

Link copied to clipboard
constructor(cryptoService: VerifierCryptoService = DefaultVerifierCryptoService(), jwkSetRetriever: JwkSetRetrieverFunction = { null })

Properties

Link copied to clipboard
open override val supportedAlgorithms: List<JwsAlgorithm>

Functions

Link copied to clipboard
open override fun verifyJws(jwsObject: JwsSigned, signer: JsonWebKey): Boolean

Verifiers the signature of jwsObject by using signer.

Link copied to clipboard
open override fun verifyJwsObject(jwsObject: JwsSigned): Boolean

Verifies the signature of jwsObject, by extracting the public key from JwsHeader.publicKey, or by using jwkSetRetriever if JwsHeader.jsonWebKeySetUrl is set.