EncryptedFileKey

@JsonClass(generateAdapter = true)
data class EncryptedFileKey(    @Json(name = "alg") val alg: String? = null,     @Json(name = "ext") val ext: Boolean? = null,     @Json(name = "key_ops") val keyOps: List<String>? = null,     @Json(name = "kty") val kty: String? = null,     @Json(name = "k") val k: String? = null)

Constructors

Link copied to clipboard
fun EncryptedFileKey(    @Json(name = "alg") alg: String? = null,     @Json(name = "ext") ext: Boolean? = null,     @Json(name = "key_ops") keyOps: List<String>? = null,     @Json(name = "kty") kty: String? = null,     @Json(name = "k") k: String? = null)

Functions

Link copied to clipboard
fun isValid(): Boolean

Check what the spec tells us.

Properties

Link copied to clipboard
val alg: String? = null

Required. Algorithm. Must be "A256CTR".

Link copied to clipboard
val ext: Boolean? = null

Required. Extractable. Must be true. This is a W3C extension.

Link copied to clipboard
val k: String? = null

Required. The key, encoded as urlsafe unpadded base64.

Link copied to clipboard
val keyOps: List<String>? = null

Required. Key operations. Must at least contain "encrypt" and "decrypt".

Link copied to clipboard
val kty: String? = null

Required. Key type. Must be "oct".