| 1 | // Code generated by tools/cmd/genoptions/main.go. DO NOT EDIT. |
| 2 | |
| 3 | package jwkscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ |
| 4 | |
| 5 | import ( |
| 6 | "cryptoscip-go gomod github.com/golang/go/src go1.24.0 crypto/" |
| 7 | "io/fsscip-go gomod github.com/golang/go/src go1.24.0 `io/fs`/" |
| 8 | |
| 9 | "github.com/lestrrat-go/jwx/v3/internal/jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/" |
| 10 | "github.com/lestrrat-go/option/v2scip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/" |
| 11 | ) |
| 12 | |
| 13 | type Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# = optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Interfacescip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/Interface# |
| 14 | |
| 15 | type AssignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AssignKeyIDOption# interface { |
| 16 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 17 | assignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AssignKeyIDOption#assignKeyIDOption.() |
| 18 | } |
| 19 | |
| 20 | type assignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/assignKeyIDOption# struct { |
| 21 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/assignKeyIDOption#Option. |
| 22 | } |
| 23 | |
| 24 | func (*assignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/assignKeyIDOption#) assignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/assignKeyIDOption#assignKeyIDOption().() {} |
| 25 | |
| 26 | // CacheOption is a type of Option that can be passed to the |
| 27 | // the `jwk.NewCache()` function. |
| 28 | type CacheOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/CacheOption# interface { |
| 29 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 30 | cacheOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/CacheOption#cacheOption.() |
| 31 | } |
| 32 | |
| 33 | type cacheOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cacheOption# struct { |
| 34 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cacheOption#Option. |
| 35 | } |
| 36 | |
| 37 | func (*cacheOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cacheOption#) cacheOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cacheOption#cacheOption().() {} |
| 38 | |
| 39 | // FetchOption is a type of Option that can be passed to `jwk.Fetch()` |
| 40 | // FetchOption also implements the `RegisterOption`, and thus can |
| 41 | // safely be passed to `(*jwk.Cache).Register()` |
| 42 | type FetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/FetchOption# interface { |
| 43 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 44 | fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/FetchOption#fetchOption.() |
| 45 | parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/FetchOption#parseOption.() |
| 46 | registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/FetchOption#registerOption.() |
| 47 | } |
| 48 | |
| 49 | type fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption# struct { |
| 50 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#Option. |
| 51 | } |
| 52 | |
| 53 | func (*fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#) fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#fetchOption().() {} |
| 54 | |
| 55 | func (*fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#) parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#parseOption().() {} |
| 56 | |
| 57 | func (*fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#) registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#registerOption().() {} |
| 58 | |
| 59 | // GlobalOption is a type of Option that can be passed to the `jwk.Configure()` to |
| 60 | // change the global configuration of the jwk package. |
| 61 | type GlobalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/GlobalOption# interface { |
| 62 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 63 | globalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/GlobalOption#globalOption.() |
| 64 | } |
| 65 | |
| 66 | type globalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/globalOption# struct { |
| 67 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/globalOption#Option. |
| 68 | } |
| 69 | |
| 70 | func (*globalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/globalOption#) globalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/globalOption#globalOption().() {} |
| 71 | |
| 72 | // ParseOption is a type of Option that can be passed to `jwk.Parse()` |
| 73 | // ParseOption also implements the `ReadFileOption` and `NewCacheOption`, |
| 74 | // and thus safely be passed to `jwk.ReadFile` and `(*jwk.Cache).Configure()` |
| 75 | type ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# interface { |
| 76 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 77 | fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption#fetchOption.() |
| 78 | registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption#registerOption.() |
| 79 | readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption#readFileOption.() |
| 80 | } |
| 81 | |
| 82 | type parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption# struct { |
| 83 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#Option. |
| 84 | } |
| 85 | |
| 86 | func (*parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#) fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#fetchOption().() {} |
| 87 | |
| 88 | func (*parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#) registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#registerOption().() {} |
| 89 | |
| 90 | func (*parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#) readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#readFileOption().() {} |
| 91 | |
| 92 | // ReadFileOption is a type of `Option` that can be passed to `jwk.ReadFile` |
| 93 | type ReadFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ReadFileOption# interface { |
| 94 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 95 | readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ReadFileOption#readFileOption.() |
| 96 | } |
| 97 | |
| 98 | type readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/readFileOption# struct { |
| 99 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/readFileOption#Option. |
| 100 | } |
| 101 | |
| 102 | func (*readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/readFileOption#) readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/readFileOption#readFileOption().() {} |
| 103 | |
| 104 | // RegisterFetchOption describes options that can be passed to `(jwk.Cache).Register()` and `jwk.Fetch()` |
| 105 | type RegisterFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterFetchOption# interface { |
| 106 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 107 | fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterFetchOption#fetchOption.() |
| 108 | registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterFetchOption#registerOption.() |
| 109 | parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterFetchOption#parseOption.() |
| 110 | } |
| 111 | |
| 112 | type registerFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption# struct { |
| 113 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#Option. |
| 114 | } |
| 115 | |
| 116 | func (*registerFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#) fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#fetchOption().() {} |
| 117 | |
| 118 | func (*registerFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#) registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#registerOption().() {} |
| 119 | |
| 120 | func (*registerFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#) parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#parseOption().() {} |
| 121 | |
| 122 | // RegisterOption describes options that can be passed to `(jwk.Cache).Register()` |
| 123 | type RegisterOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterOption# interface { |
| 124 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 125 | registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterOption#registerOption.() |
| 126 | } |
| 127 | |
| 128 | type registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerOption# struct { |
| 129 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerOption#Option. |
| 130 | } |
| 131 | |
| 132 | func (*registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerOption#) registerOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerOption#registerOption().() {} |
| 133 | |
| 134 | // ResourceOption is a type of Option that can be passed to the `httprc.NewResource` function |
| 135 | // by way of RegisterOption. |
| 136 | type ResourceOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ResourceOption# interface { |
| 137 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Option# |
| 138 | resourceOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ResourceOption#resourceOption.() |
| 139 | } |
| 140 | |
| 141 | type resourceOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/resourceOption# struct { |
| 142 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/resourceOption#Option. |
| 143 | } |
| 144 | |
| 145 | func (*resourceOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/resourceOption#) resourceOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/resourceOption#resourceOption().() {} |
| 146 | |
| 147 | type identFSscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFS# struct{} |
| 148 | type identFetchWhitelistscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFetchWhitelist# struct{} |
| 149 | type identHTTPClientscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identHTTPClient# struct{} |
| 150 | type identIgnoreParseErrorscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identIgnoreParseError# struct{} |
| 151 | type identLocalRegistryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identLocalRegistry# struct{} |
| 152 | type identPEMscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEM# struct{} |
| 153 | type identPEMDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEMDecoder# struct{} |
| 154 | type identStrictKeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identStrictKeyUsage# struct{} |
| 155 | type identThumbprintHashscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identThumbprintHash# struct{} |
| 156 | type identWaitReadyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identWaitReady# struct{} |
| 157 | type identX509scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identX509# struct{} |
| 158 | |
| 159 | func (identFSscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFS#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFS#String().() string { |
| 160 | return "WithFS" |
| 161 | } |
| 162 | |
| 163 | func (identFetchWhitelistscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFetchWhitelist#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFetchWhitelist#String().() string { |
| 164 | return "WithFetchWhitelist" |
| 165 | } |
| 166 | |
| 167 | func (identHTTPClientscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identHTTPClient#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identHTTPClient#String().() string { |
| 168 | return "WithHTTPClient" |
| 169 | } |
| 170 | |
| 171 | func (identIgnoreParseErrorscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identIgnoreParseError#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identIgnoreParseError#String().() string { |
| 172 | return "WithIgnoreParseError" |
| 173 | } |
| 174 | |
| 175 | func (identLocalRegistryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identLocalRegistry#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identLocalRegistry#String().() string { |
| 176 | return "withLocalRegistry" |
| 177 | } |
| 178 | |
| 179 | func (identPEMscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEM#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEM#String().() string { |
| 180 | return "WithPEM" |
| 181 | } |
| 182 | |
| 183 | func (identPEMDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEMDecoder#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEMDecoder#String().() string { |
| 184 | return "WithPEMDecoder" |
| 185 | } |
| 186 | |
| 187 | func (identStrictKeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identStrictKeyUsage#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identStrictKeyUsage#String().() string { |
| 188 | return "WithStrictKeyUsage" |
| 189 | } |
| 190 | |
| 191 | func (identThumbprintHashscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identThumbprintHash#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identThumbprintHash#String().() string { |
| 192 | return "WithThumbprintHash" |
| 193 | } |
| 194 | |
| 195 | func (identWaitReadyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identWaitReady#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identWaitReady#String().() string { |
| 196 | return "WithWaitReady" |
| 197 | } |
| 198 | |
| 199 | func (identX509scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identX509#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identX509#String().() string { |
| 200 | return "WithX509" |
| 201 | } |
| 202 | |
| 203 | // WithFS specifies the source `fs.FS` object to read the file from. |
| 204 | func WithFSscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithFS().(v fsscip-go gomod github.com/golang/go/src go1.24.0 `io/fs`/.FSscip-go gomod github.com/golang/go/src go1.24.0 `io/fs`/FS#) ReadFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ReadFileOption# { |
| 205 | return &readFileOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/readFileOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identFSscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFS#{}, v)} |
| 206 | } |
| 207 | |
| 208 | // WithFetchWhitelist specifies the Whitelist object to use when |
| 209 | // fetching JWKs from a remote source. This option can be passed |
| 210 | // to both `jwk.Fetch()` |
| 211 | func WithFetchWhitelistscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithFetchWhitelist().(v Whitelistscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Whitelist#) FetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/FetchOption# { |
| 212 | return &fetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/fetchOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identFetchWhitelistscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identFetchWhitelist#{}, v)} |
| 213 | } |
| 214 | |
| 215 | // WithHTTPClient allows users to specify the "net/http".Client object that |
| 216 | // is used when fetching jwk.Set objects. |
| 217 | func WithHTTPClientscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithHTTPClient().(v HTTPClientscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/HTTPClient#) RegisterFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterFetchOption# { |
| 218 | return ®isterFetchOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerFetchOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identHTTPClientscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identHTTPClient#{}, v)} |
| 219 | } |
| 220 | |
| 221 | // WithIgnoreParseError is only applicable when used with `jwk.Parse()` |
| 222 | // (i.e. to parse JWK sets). If passed to `jwk.ParseKey()`, the function |
| 223 | // will return an error no matter what the input is. |
| 224 | // |
| 225 | // DO NOT USE WITHOUT EXHAUSTING ALL OTHER ROUTES FIRST. |
| 226 | // |
| 227 | // The option specifies that errors found during parsing of individual |
| 228 | // keys are ignored. For example, if you had keys A, B, C where B is |
| 229 | // invalid (e.g. it does not contain the required fields), then the |
| 230 | // resulting JWKS will contain keys A and C only. |
| 231 | // |
| 232 | // This options exists as an escape hatch for those times when a |
| 233 | // key in a JWKS that is irrelevant for your use case is causing |
| 234 | // your JWKS parsing to fail, and you want to get to the rest of the |
| 235 | // keys in the JWKS. |
| 236 | // |
| 237 | // Again, DO NOT USE unless you have exhausted all other routes. |
| 238 | // When you use this option, you will not be able to tell if you are |
| 239 | // using a faulty JWKS, except for when there are JSON syntax errors. |
| 240 | func WithIgnoreParseErrorscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithIgnoreParseError().(v bool) ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# { |
| 241 | return &parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identIgnoreParseErrorscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identIgnoreParseError#{}, v)} |
| 242 | } |
| 243 | |
| 244 | // This option is only available for internal code. Users don't get to play with it |
| 245 | func withLocalRegistryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/withLocalRegistry().(v *jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.Registryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Registry#) ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# { |
| 246 | return &parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identLocalRegistryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identLocalRegistry#{}, v)} |
| 247 | } |
| 248 | |
| 249 | // WithPEM specifies that the input to `Parse()` is a PEM encoded key. |
| 250 | // |
| 251 | // This option is planned to be deprecated in the future. The plan is to |
| 252 | // replace it with `jwk.WithX509(true)` |
| 253 | func WithPEMscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithPEM().(v bool) ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# { |
| 254 | return &parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identPEMscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEM#{}, v)} |
| 255 | } |
| 256 | |
| 257 | // WithPEMDecoder specifies the PEMDecoder object to use when decoding |
| 258 | // PEM encoded keys. This option can be passed to `jwk.Parse()` |
| 259 | // |
| 260 | // This option is planned to be deprecated in the future. The plan is to |
| 261 | // use `jwk.RegisterX509Decoder()` to register a custom X.509 decoder globally. |
| 262 | func WithPEMDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithPEMDecoder().(v PEMDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/PEMDecoder#) ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# { |
| 263 | return &parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identPEMDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identPEMDecoder#{}, v)} |
| 264 | } |
| 265 | |
| 266 | // WithStrictKeyUsage specifies if during JWK parsing, the "use" field |
| 267 | // should be confined to the values that have been registered via |
| 268 | // `jwk.RegisterKeyType()`. By default this option is true, and the |
| 269 | // initial allowed values are "use" and "enc" only. |
| 270 | // |
| 271 | // If this option is set to false, then the "use" field can be any |
| 272 | // value. If this options is set to true, then the "use" field must |
| 273 | // be one of the registered values, and otherwise an error will be |
| 274 | // reported during parsing / assignment to `jwk.KeyUsageType` |
| 275 | func WithStrictKeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithStrictKeyUsage().(v bool) GlobalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/GlobalOption# { |
| 276 | return &globalOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/globalOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identStrictKeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identStrictKeyUsage#{}, v)} |
| 277 | } |
| 278 | |
| 279 | func WithThumbprintHashscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithThumbprintHash().(v cryptoscip-go gomod github.com/golang/go/src go1.24.0 crypto/.Hashscip-go gomod github.com/golang/go/src go1.24.0 crypto/Hash#) AssignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AssignKeyIDOption# { |
| 280 | return &assignKeyIDOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/assignKeyIDOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identThumbprintHashscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identThumbprintHash#{}, v)} |
| 281 | } |
| 282 | |
| 283 | // WithWaitReady specifies that the `jwk.Cache` should wait until the |
| 284 | // first fetch is done before returning from the `Register()` call. |
| 285 | // |
| 286 | // This option is by default true. Specify a false value if you would |
| 287 | // like to return immediately from the `Register()` call. |
| 288 | // |
| 289 | // This options is exactly the same as `httprc.WithWaitReady()` |
| 290 | func WithWaitReadyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithWaitReady().(v bool) RegisterOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/RegisterOption# { |
| 291 | return ®isterOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registerOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identWaitReadyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identWaitReady#{}, v)} |
| 292 | } |
| 293 | |
| 294 | // WithX509 specifies that the input to `Parse()` is an X.509 encoded key |
| 295 | func WithX509scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/WithX509().(v bool) ParseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ParseOption# { |
| 296 | return &parseOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/parseOption#{optionscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/.Newscip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/New().(identX509scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/identX509#{}, v)} |
| 297 | } |