| 1 | // Code generated by tools/cmd/genoptions/main.go. DO NOT EDIT. |
| 2 | |
| 3 | package jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/ |
| 4 | |
| 5 | import ( |
| 6 | "github.com/lestrrat-go/option/v2scip-go gomod github.com/lestrrat-go/option/v2 v2.0.0 `github.com/lestrrat-go/option/v2`/" |
| 7 | ) |
| 8 | |
| 9 | type Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/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# |
| 10 | |
| 11 | // NewAlgorithmOption represents an option that can be passed to any of the constructor functions |
| 12 | type NewAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewAlgorithmOption# interface { |
| 13 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/Option# |
| 14 | newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewAlgorithmOption#newSignatureAlgorithmOption.() |
| 15 | newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewAlgorithmOption#newKeyEncryptionAlgorithmOption.() |
| 16 | newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewAlgorithmOption#newSignatureKeyEncryptionAlgorithmOption.() |
| 17 | } |
| 18 | |
| 19 | type newAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption# struct { |
| 20 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#Option. |
| 21 | } |
| 22 | |
| 23 | func (*newAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#) newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#newSignatureAlgorithmOption().() {} |
| 24 | |
| 25 | func (*newAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#) newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#newKeyEncryptionAlgorithmOption().() {} |
| 26 | |
| 27 | func (*newAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#) newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#newSignatureKeyEncryptionAlgorithmOption().() {} |
| 28 | |
| 29 | // NewKeyEncryptionAlgorithmOption represents an option that can be passed to the NewKeyEncryptionAlgorithm |
| 30 | type NewKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewKeyEncryptionAlgorithmOption# interface { |
| 31 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/Option# |
| 32 | newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewKeyEncryptionAlgorithmOption#newKeyEncryptionAlgorithmOption.() |
| 33 | } |
| 34 | |
| 35 | type newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newKeyEncryptionAlgorithmOption# struct { |
| 36 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newKeyEncryptionAlgorithmOption#Option. |
| 37 | } |
| 38 | |
| 39 | func (*newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newKeyEncryptionAlgorithmOption#) newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newKeyEncryptionAlgorithmOption#newKeyEncryptionAlgorithmOption().() {} |
| 40 | |
| 41 | // NewSignatureAlgorithmOption represents an option that can be passed to the NewSignatureAlgorithm |
| 42 | type NewSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureAlgorithmOption# interface { |
| 43 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/Option# |
| 44 | newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureAlgorithmOption#newSignatureAlgorithmOption.() |
| 45 | } |
| 46 | |
| 47 | type newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureAlgorithmOption# struct { |
| 48 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureAlgorithmOption#Option. |
| 49 | } |
| 50 | |
| 51 | func (*newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureAlgorithmOption#) newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureAlgorithmOption#newSignatureAlgorithmOption().() {} |
| 52 | |
| 53 | // NewSignatureKeyEncryptionAlgorithmOption represents an option that can be passed to both |
| 54 | // NewSignatureAlgorithm and NewKeyEncryptionAlgorithm |
| 55 | type NewSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureKeyEncryptionAlgorithmOption# interface { |
| 56 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/Option# |
| 57 | newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureKeyEncryptionAlgorithmOption#newSignatureAlgorithmOption.() |
| 58 | newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureKeyEncryptionAlgorithmOption#newKeyEncryptionAlgorithmOption.() |
| 59 | } |
| 60 | |
| 61 | type newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption# struct { |
| 62 | Optionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#Option. |
| 63 | } |
| 64 | |
| 65 | func (*newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#) newSignatureAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#newSignatureAlgorithmOption().() {} |
| 66 | |
| 67 | func (*newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#) newKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#newKeyEncryptionAlgorithmOption().() {} |
| 68 | |
| 69 | type identDeprecatedscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identDeprecated# struct{} |
| 70 | type identIsSymmetricscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identIsSymmetric# struct{} |
| 71 | |
| 72 | func (identDeprecatedscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identDeprecated#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identDeprecated#String().() string { |
| 73 | return "WithDeprecated" |
| 74 | } |
| 75 | |
| 76 | func (identIsSymmetricscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identIsSymmetric#) Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identIsSymmetric#String().() string { |
| 77 | return "WithIsSymmetric" |
| 78 | } |
| 79 | |
| 80 | // WithDeprecated specifies that the algorithm is deprecated. In order to |
| 81 | // un-deprecate an algorithm, you will have to create a new algorithm |
| 82 | // with the same values but with the Deprecated option set to false, and |
| 83 | // then call RegisterXXXXAlgorithm with the new algorithm. |
| 84 | func WithDeprecatedscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/WithDeprecated().(v bool) NewAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewAlgorithmOption# { |
| 85 | return &newAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newAlgorithmOption#{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().(identDeprecatedscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identDeprecated#{}, v)} |
| 86 | } |
| 87 | |
| 88 | // IsSymmetric specifies that the algorithm is symmetric |
| 89 | func WithIsSymmetricscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/WithIsSymmetric().(v bool) NewSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/NewSignatureKeyEncryptionAlgorithmOption# { |
| 90 | return &newSignatureKeyEncryptionAlgorithmOptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/newSignatureKeyEncryptionAlgorithmOption#{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().(identIsSymmetricscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/identIsSymmetric#{}, v)} |
| 91 | } |