Skip to content

Instance Method

add(jwksJSON:)

Adds a JWKS (JSON Web Key Set) to the collection by decoding a JSON string.
@discardableResult func add(jwksJSON json: String) throws -> Self

Parameters

json

A JSON string representing a JWKS.

Return Value

Self for chaining.

Discussion

Throws

An error if the JSON string cannot be decoded into a JWKS instance.