Package-level declarations

Types

Link copied to clipboard
object ByteArrayBase64Serializer : KSerializer<ByteArray>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class DefaultVerifierJwsService(cryptoService: VerifierCryptoService = DefaultVerifierCryptoService()) : VerifierJwsService
Link copied to clipboard
@Serializable(with = EcCurveSerializer::class)
enum EcCurve : Enum<EcCurve>
Link copied to clipboard
object EcCurveSerializer : KSerializer<EcCurve?>
Link copied to clipboard
@Serializable
data class JsonWebKey(val curve: EcCurve? = null, val type: JwkType? = null, val keyId: String? = null, val x: ByteArray? = null, val y: ByteArray? = null)
Link copied to clipboard
Link copied to clipboard
object JweAlgorithmSerializer : KSerializer<JweAlgorithm?>
Link copied to clipboard
data class JweDecrypted(val header: JweHeader, val payload: ByteArray)

Representation of a decrypted JSON Web Encryption object, i.e. header and payload.

Link copied to clipboard
data class JweEncrypted(val headerAsParsed: ByteArray, val encryptedKey: ByteArray? = null, val iv: ByteArray, val ciphertext: ByteArray, val authTag: ByteArray)

Representation of an encrypted JSON Web Encryption object, consisting of its 5 parts: Header, encrypted key, IV, ciphertext, authentication tag.

Link copied to clipboard
Link copied to clipboard
object JweEncryptionSerializer : KSerializer<JweEncryption?>
Link copied to clipboard
@Serializable
data class JweHeader(val algorithm: JweAlgorithm?, val encryption: JweEncryption?, val keyId: String, val type: JwsContentType?, val contentType: JwsContentType? = null, val ephemeralKeyPair: JsonWebKey? = null, val agreementPartyUInfo: ByteArray? = null, val agreementPartyVInfo: ByteArray? = null)

Header of a JweEncrypted or JweDecrypted.

Link copied to clipboard
@Serializable(with = JwkTypeSerializer::class)
enum JwkType : Enum<JwkType>
Link copied to clipboard
object JwkTypeSerializer : KSerializer<JwkType?>
Link copied to clipboard
Link copied to clipboard
object JwsAlgorithmSerializer : KSerializer<JwsAlgorithm>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class JwsHeader(val algorithm: JwsAlgorithm, val keyId: String? = null, val type: JwsContentType? = null, val contentType: JwsContentType? = null, val certificateChain: Array<ByteArray>? = null, val notBefore: Long? = null, val expires: Long? = null, val jsonWebKey: JsonWebKey? = null)

Header of a JwsSigned.

Link copied to clipboard
interface JwsService

Creates and parses JWS and JWE objects.

Link copied to clipboard
data class JwsSigned(val header: JwsHeader, val payload: ByteArray, val signature: ByteArray, val plainSignatureInput: String)

Representation of a signed JSON Web Signature object, i.e. consisting of header, payload and signature.

Link copied to clipboard
Link copied to clipboard