DataVerificationComponent

class DataVerificationComponent

Constructors

Link copied to clipboard
fun DataVerificationComponent()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun fetchX5uCertificate(jws: JsonWebSignature): String

Fetches certificated located in x5u claim

Link copied to clipboard
suspend fun verifyAll(jwsInput: String, certificateChain: List<String>?): JwtContext
Link copied to clipboard
fun verifyCertificateChainInPEM(certificateChainInPEM: List<String>)

Verify if the chain is valid and the certificates are signed by the next one until we have verified against the host certificate (defined by the host application) An empty chain or one with only one element is considered valid by default.

Link copied to clipboard
fun verifyJwsIsSignedByCertificate(jwsInput: String, certificateInPEM: String): JwtContext

Verify if the JWS is signed properly by signature & signature is signed by provided certificate.

Link copied to clipboard
fun verifyJwsIsSignedByItsOwnX5c(jwsInput: String): JwtContext

Verify if the JWS is signed properly by signature & signature is signed by certificate in x5c.

Link copied to clipboard
fun verifyJwsIsSignedByPublicKey(jwsInput: String, signatureVerificationKey: Key): JwtContext

Verify if the JWS is signed properly by provided public key.

Link copied to clipboard
fun verifyX5tMatchesJws(jwsInput: String, certificateInPEM: String)

Verify if certificate provided in x5u match the x5t thumbprint.