Jws Service
Functions
Link copied to clipboard
Link copied to clipboard
abstract suspend fun createSignedJwsAddingParams(header: JwsHeader, payload: ByteArray, addKeyId: Boolean = true, addJsonWebKey: Boolean = true): String?
Appends correct values for JweHeader.keyId, JwsHeader.algorithm and JwsHeader.jsonWebKey, if the corresponding options are set
Link copied to clipboard
abstract suspend fun createSignedJwt(type: String, payload: ByteArray, contentType: String? = null): String?
Link copied to clipboard
Link copied to clipboard
abstract fun encryptJweObject(type: String, payload: ByteArray, recipientKey: JsonWebKey, contentType: String? = null, jweAlgorithm: JweAlgorithm, jweEncryption: JweEncryption): String?