Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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.