Jws Service
interface JwsService
Creates and parses JWS and JWE objects.
Functions
Link copied to clipboard
Link copied to clipboard
Appends correct values for JweHeader.keyId, JwsHeader.algorithm and JwsHeader.jsonWebKey
Link copied to clipboard
abstract suspend fun createSignedJwt(type: JwsContentType, payload: ByteArray, contentType: JwsContentType? = null): String?
Link copied to clipboard
Link copied to clipboard
abstract fun encryptJweObject(type: JwsContentType, payload: ByteArray, recipientKey: JsonWebKey, contentType: JwsContentType? = null, jweAlgorithm: JweAlgorithm, jweEncryption: JweEncryption): String?