Instance Method
removeAll(except:clearingDefault:)
Removes all keys from the collection except the ones defined in the
kids parameter.@discardableResult func removeAll(except kids: [JWKIdentifier] = [], clearingDefault: Bool = true) -> Int
Parameters
kidsThe KIDs that should be kept during removal.
clearingDefaultIf true, clears the default signer regardless of whether its KID is in the exception list, however keeping it in the collection if it’s KID is defined in the exception list. If false, preserves the default signer.
Return Value
The number of keys removed from storage.