parse

suspend fun parse(json: String, secureAreaRepository: SecureAreaRepository?, unlockReason: UnlockReason = UnlockReason.Unspecified): AsymmetricKey

Parses json string that describes the private key.

Private key can either be given as JWK object or as a reference to a SecureArea-resident key using secure_area and alias fields. In either case, key identification must be specified using kid or x5c fields.


suspend fun parse(json: JsonElement, secureAreaRepository: SecureAreaRepository?, unlockReason: UnlockReason = UnlockReason.Unspecified): AsymmetricKey

Parses json object that describes the private key.