| 1 | // Code generated by tools/cmd/genjwk/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 | "bytesscip-go gomod github.com/golang/go/src go1.24.0 bytes/" |
| 7 | "fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/" |
| 8 | "sortscip-go gomod github.com/golang/go/src go1.24.0 sort/" |
| 9 | "syncscip-go gomod github.com/golang/go/src go1.24.0 sync/" |
| 10 | |
| 11 | "github.com/lestrrat-go/blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/" |
| 12 | "github.com/lestrrat-go/jwx/v3/certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/" |
| 13 | "github.com/lestrrat-go/jwx/v3/internal/base64scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/base64`/" |
| 14 | "github.com/lestrrat-go/jwx/v3/internal/jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/" |
| 15 | "github.com/lestrrat-go/jwx/v3/internal/poolscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/" |
| 16 | "github.com/lestrrat-go/jwx/v3/internal/tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/" |
| 17 | "github.com/lestrrat-go/jwx/v3/jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/" |
| 18 | ) |
| 19 | |
| 20 | const ( |
| 21 | ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey. = "crv" |
| 22 | ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey. = "d" |
| 23 | ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey. = "x" |
| 24 | ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey. = "y" |
| 25 | ) |
| 26 | |
| 27 | type ECDSAPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPublicKey# interface { |
| 28 | Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key# |
| 29 | Crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPublicKey#Crv.() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#, bool) |
| 30 | Xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPublicKey#X.() ([]byte, bool) |
| 31 | Yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPublicKey#Y.() ([]byte, bool) |
| 32 | } |
| 33 | |
| 34 | type ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey# struct { |
| 35 | algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. *jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithm# // https://tools.ietf.org/html/rfc7517#section-4.4 |
| 36 | crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. *jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm# |
| 37 | keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. *string // https://tools.ietf.org/html/rfc7515#section-4.1.4 |
| 38 | keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. *KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# // https://tools.ietf.org/html/rfc7517#section-4.3 |
| 39 | keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. *string // https://tools.ietf.org/html/rfc7517#section-4.2 |
| 40 | xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. []byte |
| 41 | x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. *certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain# // https://tools.ietf.org/html/rfc7515#section-4.1.6 |
| 42 | x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. *string // https://tools.ietf.org/html/rfc7515#section-4.1.7 |
| 43 | x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. *string // https://tools.ietf.org/html/rfc7515#section-4.1.8 |
| 44 | x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. *string // https://tools.ietf.org/html/rfc7515#section-4.1.5 |
| 45 | yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. []byte |
| 46 | privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams. map[string]any |
| 47 | muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu. *syncscip-go gomod github.com/golang/go/src go1.24.0 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex# |
| 48 | dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#dc. jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx# |
| 49 | } |
| 50 | |
| 51 | var _ ECDSAPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPublicKey# = &ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#{} |
| 52 | var _ Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key# = &ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#{} |
| 53 | |
| 54 | func newECDSAPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/newECDSAPublicKey().() *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey# { |
| 55 | return &ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#{ |
| 56 | muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu.: &syncscip-go gomod github.com/golang/go/src go1.24.0 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#{}, |
| 57 | privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams.: make(map[string]any), |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func (h ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#KeyType().() jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyType# { |
| 62 | return jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().() |
| 63 | } |
| 64 | |
| 65 | func (h ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) rlockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#rlock().() { |
| 66 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 67 | } |
| 68 | |
| 69 | func (h ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) runlockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#runlock().() { |
| 70 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 71 | } |
| 72 | |
| 73 | func (h ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) IsPrivatescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#IsPrivate().() bool { |
| 74 | return false |
| 75 | } |
| 76 | |
| 77 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Algorithm().() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithm#, bool) { |
| 78 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. != nil { |
| 79 | return *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm.), true |
| 80 | } |
| 81 | return nil, false |
| 82 | } |
| 83 | |
| 84 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Crv().() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#, bool) { |
| 85 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. != nil { |
| 86 | return *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv.), true |
| 87 | } |
| 88 | return jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.InvalidEllipticCurvescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/InvalidEllipticCurve().(), false |
| 89 | } |
| 90 | |
| 91 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) KeyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#KeyID().() (string, bool) { |
| 92 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. != nil { |
| 93 | return *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID.), true |
| 94 | } |
| 95 | return "", false |
| 96 | } |
| 97 | |
| 98 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) KeyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#KeyOps().() (KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList#, bool) { |
| 99 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. != nil { |
| 100 | return *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps.), true |
| 101 | } |
| 102 | return nil, false |
| 103 | } |
| 104 | |
| 105 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) KeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#KeyUsage().() (string, bool) { |
| 106 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. != nil { |
| 107 | return *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage.), true |
| 108 | } |
| 109 | return "", false |
| 110 | } |
| 111 | |
| 112 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#X().() ([]byte, bool) { |
| 113 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. != nil { |
| 114 | return h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x., true |
| 115 | } |
| 116 | return nil, false |
| 117 | } |
| 118 | |
| 119 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) X509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#X509CertChain().() (*certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain#, bool) { |
| 120 | return h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain., true |
| 121 | } |
| 122 | |
| 123 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) X509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#X509CertThumbprint().() (string, bool) { |
| 124 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. != nil { |
| 125 | return *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint.), true |
| 126 | } |
| 127 | return "", false |
| 128 | } |
| 129 | |
| 130 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) X509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#X509CertThumbprintS256().() (string, bool) { |
| 131 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. != nil { |
| 132 | return *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256.), true |
| 133 | } |
| 134 | return "", false |
| 135 | } |
| 136 | |
| 137 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) X509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#X509URL().() (string, bool) { |
| 138 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. != nil { |
| 139 | return *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL.), true |
| 140 | } |
| 141 | return "", false |
| 142 | } |
| 143 | |
| 144 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Y().() ([]byte, bool) { |
| 145 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. != nil { |
| 146 | return h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y., true |
| 147 | } |
| 148 | return nil, false |
| 149 | } |
| 150 | |
| 151 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Hasscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Has().(name string) bool { |
| 152 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 153 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 154 | switch name { |
| 155 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 156 | return true |
| 157 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 158 | return h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. != nil |
| 159 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 160 | return h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. != nil |
| 161 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 162 | return h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. != nil |
| 163 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 164 | return h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. != nil |
| 165 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 166 | return h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. != nil |
| 167 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 168 | return h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. != nil |
| 169 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 170 | return h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. != nil |
| 171 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 172 | return h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. != nil |
| 173 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 174 | return h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. != nil |
| 175 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 176 | return h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. != nil |
| 177 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 178 | return h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. != nil |
| 179 | default: |
| 180 | _, ok := h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams.[name] |
| 181 | return ok |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Getscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Get().(name string, dst any) error { |
| 186 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 187 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 188 | switch name { |
| 189 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 190 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#KeyType().()); err != nil { |
| 191 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`ecdsaPublicKey.Get: failed to assign value for field %q to destination object: %w`, name, err) |
| 192 | } |
| 193 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 194 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. == nil { |
| 195 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 196 | } |
| 197 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm.)); err != nil { |
| 198 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 199 | } |
| 200 | return nil |
| 201 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 202 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. == nil { |
| 203 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 204 | } |
| 205 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv.)); err != nil { |
| 206 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 207 | } |
| 208 | return nil |
| 209 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 210 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. == nil { |
| 211 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 212 | } |
| 213 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID.)); err != nil { |
| 214 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 215 | } |
| 216 | return nil |
| 217 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 218 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. == nil { |
| 219 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 220 | } |
| 221 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps.)); err != nil { |
| 222 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 223 | } |
| 224 | return nil |
| 225 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 226 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. == nil { |
| 227 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 228 | } |
| 229 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage.)); err != nil { |
| 230 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 231 | } |
| 232 | return nil |
| 233 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 234 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. == nil { |
| 235 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 236 | } |
| 237 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x.); err != nil { |
| 238 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 239 | } |
| 240 | return nil |
| 241 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 242 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. == nil { |
| 243 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 244 | } |
| 245 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain.); err != nil { |
| 246 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 247 | } |
| 248 | return nil |
| 249 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 250 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. == nil { |
| 251 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 252 | } |
| 253 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint.)); err != nil { |
| 254 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 255 | } |
| 256 | return nil |
| 257 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 258 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. == nil { |
| 259 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 260 | } |
| 261 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256.)); err != nil { |
| 262 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 263 | } |
| 264 | return nil |
| 265 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 266 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. == nil { |
| 267 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 268 | } |
| 269 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL.)); err != nil { |
| 270 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 271 | } |
| 272 | return nil |
| 273 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 274 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. == nil { |
| 275 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 276 | } |
| 277 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y.); err != nil { |
| 278 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 279 | } |
| 280 | return nil |
| 281 | default: |
| 282 | v, ok := h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams.[name] |
| 283 | if !ok { |
| 284 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 285 | } |
| 286 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, v); err != nil { |
| 287 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 288 | } |
| 289 | } |
| 290 | return nil |
| 291 | } |
| 292 | |
| 293 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Setscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Set().(name string, value any) error { |
| 294 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 295 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 296 | return h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#setNoLock().(name, value) |
| 297 | } |
| 298 | |
| 299 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#setNoLock().(name string, value any) error { |
| 300 | switch name { |
| 301 | case "kty": |
| 302 | return nil |
| 303 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 304 | switch v := value.(type) { |
| 305 | case string, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.SignatureAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/SignatureAlgorithm#, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyEncryptionAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyEncryptionAlgorithm#, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ContentEncryptionAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/ContentEncryptionAlgorithm#: |
| 306 | tmp, err := jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmFromscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithmFrom().(v) |
| 307 | if err != nil { |
| 308 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid algorithm for %q key: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 309 | } |
| 310 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. = &tmp |
| 311 | default: |
| 312 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid type for %q key: %T`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., value) |
| 313 | } |
| 314 | return nil |
| 315 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 316 | if v, ok := value.(jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#); ok { |
| 317 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. = &v |
| 318 | return nil |
| 319 | } |
| 320 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey., value) |
| 321 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 322 | if v, ok := value.(string); ok { |
| 323 | h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. = &v |
| 324 | return nil |
| 325 | } |
| 326 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey., value) |
| 327 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 328 | var acceptor KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# |
| 329 | if err := acceptor.Acceptscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList#Accept().(value); err != nil { |
| 330 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %w`, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey., err) |
| 331 | } |
| 332 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. = &acceptor |
| 333 | return nil |
| 334 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 335 | switch v := value.(type) { |
| 336 | case KeyUsageTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageType#: |
| 337 | switch v { |
| 338 | case ForSignaturescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ForSignature., ForEncryptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ForEncryption.: |
| 339 | tmp := v.Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageType#String().() |
| 340 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. = &tmp |
| 341 | default: |
| 342 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid key usage type %s`, v) |
| 343 | } |
| 344 | case string: |
| 345 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. = &v |
| 346 | default: |
| 347 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid key usage type %s`, v) |
| 348 | } |
| 349 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 350 | if v, ok := value.([]byte); ok { |
| 351 | h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. = v |
| 352 | return nil |
| 353 | } |
| 354 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey., value) |
| 355 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 356 | if v, ok := value.(*certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain#); ok { |
| 357 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. = v |
| 358 | return nil |
| 359 | } |
| 360 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey., value) |
| 361 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 362 | if v, ok := value.(string); ok { |
| 363 | h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. = &v |
| 364 | return nil |
| 365 | } |
| 366 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey., value) |
| 367 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 368 | if v, ok := value.(string); ok { |
| 369 | h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. = &v |
| 370 | return nil |
| 371 | } |
| 372 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key., value) |
| 373 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 374 | if v, ok := value.(string); ok { |
| 375 | h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. = &v |
| 376 | return nil |
| 377 | } |
| 378 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey., value) |
| 379 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 380 | if v, ok := value.([]byte); ok { |
| 381 | h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. = v |
| 382 | return nil |
| 383 | } |
| 384 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey., value) |
| 385 | default: |
| 386 | if h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams. == nil { |
| 387 | h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams. = map[string]any{} |
| 388 | } |
| 389 | h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams.[name] = value |
| 390 | } |
| 391 | return nil |
| 392 | } |
| 393 | |
| 394 | func (k *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Removescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Remove().(key string) error { |
| 395 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 396 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 397 | switch key { |
| 398 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 399 | k.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. = nil |
| 400 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 401 | k.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. = nil |
| 402 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 403 | k.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. = nil |
| 404 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 405 | k.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. = nil |
| 406 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 407 | k.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. = nil |
| 408 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 409 | k.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. = nil |
| 410 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 411 | k.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. = nil |
| 412 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 413 | k.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. = nil |
| 414 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 415 | k.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. = nil |
| 416 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 417 | k.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. = nil |
| 418 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 419 | k.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. = nil |
| 420 | default: |
| 421 | delete(k.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams., key) |
| 422 | } |
| 423 | return nil |
| 424 | } |
| 425 | |
| 426 | func (k *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Clonescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Clone().() (Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key#, error) { |
| 427 | key, err := cloneKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cloneKey().(k) |
| 428 | if err != nil { |
| 429 | return nil, fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`ecdsaPublicKey.Clone: %w`, err) |
| 430 | } |
| 431 | return key, nil |
| 432 | } |
| 433 | |
| 434 | func (k *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#DecodeCtx().() jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx# { |
| 435 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 436 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 437 | return k.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#dc. |
| 438 | } |
| 439 | |
| 440 | func (k *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) SetDecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#SetDecodeCtx().(dc jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx#) { |
| 441 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 442 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 443 | k.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#dc. = dc |
| 444 | } |
| 445 | |
| 446 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) UnmarshalJSONscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#UnmarshalJSON().(buf []byte) error { |
| 447 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 448 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 449 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. = nil |
| 450 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. = nil |
| 451 | h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. = nil |
| 452 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. = nil |
| 453 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. = nil |
| 454 | h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. = nil |
| 455 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. = nil |
| 456 | h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. = nil |
| 457 | h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. = nil |
| 458 | h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. = nil |
| 459 | h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. = nil |
| 460 | dec := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.NewDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/NewDecoder().(bytesscip-go gomod github.com/golang/go/src go1.24.0 bytes/.NewReaderscip-go gomod github.com/golang/go/src go1.24.0 bytes/NewReader().(buf)) |
| 461 | LOOP: |
| 462 | for { |
| 463 | tok, err := dec.Tokenscip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Token().() |
| 464 | if err != nil { |
| 465 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`error reading token: %w`, err) |
| 466 | } |
| 467 | switch tok := tok.(type) { |
| 468 | case jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.Delimscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Delim#: |
| 469 | // Assuming we're doing everything correctly, we should ONLY |
| 470 | // get either tokens.OpenCurlyBracket or tokens.CloseCurlyBracket here. |
| 471 | if tok == tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.CloseCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/CloseCurlyBracket. { // End of object |
| 472 | break LOOP |
| 473 | } else if tok != tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket. { |
| 474 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`expected '%c' but got '%c'`, tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket., tok) |
| 475 | } |
| 476 | case string: // Objects can only have string keys |
| 477 | switch tok { |
| 478 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 479 | val, err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.ReadNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/ReadNextStringToken().(dec) |
| 480 | if err != nil { |
| 481 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`error reading token: %w`, err) |
| 482 | } |
| 483 | if val != jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().().Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyType#String().() { |
| 484 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid kty value for RSAPublicKey (%s)`, val) |
| 485 | } |
| 486 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 487 | var s string |
| 488 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&s); err != nil { |
| 489 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 490 | } |
| 491 | alg, err := jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmFromscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithmFrom().(s) |
| 492 | if err != nil { |
| 493 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 494 | } |
| 495 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. = &alg |
| 496 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 497 | var decoded jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm# |
| 498 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 499 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey., err) |
| 500 | } |
| 501 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. = &decoded |
| 502 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 503 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID., dec); err != nil { |
| 504 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey., err) |
| 505 | } |
| 506 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 507 | var decoded KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# |
| 508 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 509 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey., err) |
| 510 | } |
| 511 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. = &decoded |
| 512 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 513 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage., dec); err != nil { |
| 514 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey., err) |
| 515 | } |
| 516 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 517 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextBytesTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextBytesToken().(&h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x., dec); err != nil { |
| 518 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey., err) |
| 519 | } |
| 520 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 521 | var decoded certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain# |
| 522 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 523 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey., err) |
| 524 | } |
| 525 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. = &decoded |
| 526 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 527 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint., dec); err != nil { |
| 528 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey., err) |
| 529 | } |
| 530 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 531 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256., dec); err != nil { |
| 532 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key., err) |
| 533 | } |
| 534 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 535 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL., dec); err != nil { |
| 536 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey., err) |
| 537 | } |
| 538 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 539 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextBytesTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextBytesToken().(&h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y., dec); err != nil { |
| 540 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey., err) |
| 541 | } |
| 542 | default: |
| 543 | if dc := h.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#dc.; dc != nil { |
| 544 | if localReg := dc.Registryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx#Registry.(); localReg != nil { |
| 545 | decoded, err := localReg.Decodescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Registry#Decode().(dec, tok) |
| 546 | if err == nil { |
| 547 | h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#setNoLock().(tok, decoded) |
| 548 | continue |
| 549 | } |
| 550 | } |
| 551 | } |
| 552 | decoded, err := registryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registry..Decodescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Registry#Decode().(dec, tok) |
| 553 | if err == nil { |
| 554 | h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#setNoLock().(tok, decoded) |
| 555 | continue |
| 556 | } |
| 557 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`could not decode field %s: %w`, tok, err) |
| 558 | } |
| 559 | default: |
| 560 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid token %T`, tok) |
| 561 | } |
| 562 | } |
| 563 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. == nil { |
| 564 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field crv is missing`) |
| 565 | } |
| 566 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. == nil { |
| 567 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field x is missing`) |
| 568 | } |
| 569 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. == nil { |
| 570 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field y is missing`) |
| 571 | } |
| 572 | return nil |
| 573 | } |
| 574 | |
| 575 | func (h ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) MarshalJSONscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#MarshalJSON().() ([]byte, error) { |
| 576 | data := make(map[string]any) |
| 577 | fields := make([]string, 0, 11) |
| 578 | data[KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.] = jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().() |
| 579 | fields = append(fields, KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.) |
| 580 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. != nil { |
| 581 | data[AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.] = *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm.) |
| 582 | fields = append(fields, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.) |
| 583 | } |
| 584 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. != nil { |
| 585 | data[ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.] = *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv.) |
| 586 | fields = append(fields, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.) |
| 587 | } |
| 588 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. != nil { |
| 589 | data[KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.] = *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID.) |
| 590 | fields = append(fields, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.) |
| 591 | } |
| 592 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. != nil { |
| 593 | data[KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.] = *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps.) |
| 594 | fields = append(fields, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.) |
| 595 | } |
| 596 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. != nil { |
| 597 | data[KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.] = *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage.) |
| 598 | fields = append(fields, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.) |
| 599 | } |
| 600 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. != nil { |
| 601 | data[ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.] = h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. |
| 602 | fields = append(fields, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.) |
| 603 | } |
| 604 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. != nil { |
| 605 | data[X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.] = h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. |
| 606 | fields = append(fields, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.) |
| 607 | } |
| 608 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. != nil { |
| 609 | data[X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.] = *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint.) |
| 610 | fields = append(fields, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.) |
| 611 | } |
| 612 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. != nil { |
| 613 | data[X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.] = *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256.) |
| 614 | fields = append(fields, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.) |
| 615 | } |
| 616 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. != nil { |
| 617 | data[X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.] = *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL.) |
| 618 | fields = append(fields, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.) |
| 619 | } |
| 620 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. != nil { |
| 621 | data[ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.] = h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. |
| 622 | fields = append(fields, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.) |
| 623 | } |
| 624 | for k, v := range h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams. { |
| 625 | data[k] = v |
| 626 | fields = append(fields, k) |
| 627 | } |
| 628 | |
| 629 | sortscip-go gomod github.com/golang/go/src go1.24.0 sort/.Stringsscip-go gomod github.com/golang/go/src go1.24.0 sort/Strings().(fields) |
| 630 | buf := poolscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/.BytesBufferscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/BytesBuffer().().Getscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/Pool#Get().() |
| 631 | defer poolscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/.BytesBufferscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/BytesBuffer().().Putscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/Pool#Put().(buf) |
| 632 | buf.WriteBytescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteByte().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket.) |
| 633 | enc := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.NewEncoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/NewEncoder().(buf) |
| 634 | for i, f := range fields { |
| 635 | if i > 0 { |
| 636 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.Commascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/Comma.) |
| 637 | } |
| 638 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 639 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(f) |
| 640 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(`":`) |
| 641 | v := data[f] |
| 642 | switch v := v.(type) { |
| 643 | case []byte: |
| 644 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 645 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(base64scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/base64`/.EncodeToStringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/base64`/EncodeToString().(v)) |
| 646 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 647 | default: |
| 648 | if err := enc.Encodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Encoder#Encode().(v); err != nil { |
| 649 | return nil, fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to encode value for field %s: %w`, f, err) |
| 650 | } |
| 651 | buf.Truncatescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Truncate().(buf.Lenscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Len().() - 1) |
| 652 | } |
| 653 | } |
| 654 | buf.WriteBytescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteByte().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.CloseCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/CloseCurlyBracket.) |
| 655 | ret := make([]byte, buf.Lenscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Len().()) |
| 656 | copy(ret, buf.Bytesscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Bytes().()) |
| 657 | return ret, nil |
| 658 | } |
| 659 | |
| 660 | func (h *ecdsaPublicKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#) Keysscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#Keys().() []string { |
| 661 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 662 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 663 | keys := make([]string, 0, 11+len(h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams.)) |
| 664 | keys = append(keys, KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.) |
| 665 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#algorithm. != nil { |
| 666 | keys = append(keys, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.) |
| 667 | } |
| 668 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#crv. != nil { |
| 669 | keys = append(keys, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.) |
| 670 | } |
| 671 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyID. != nil { |
| 672 | keys = append(keys, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.) |
| 673 | } |
| 674 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyOps. != nil { |
| 675 | keys = append(keys, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.) |
| 676 | } |
| 677 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#keyUsage. != nil { |
| 678 | keys = append(keys, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.) |
| 679 | } |
| 680 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x. != nil { |
| 681 | keys = append(keys, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.) |
| 682 | } |
| 683 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertChain. != nil { |
| 684 | keys = append(keys, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.) |
| 685 | } |
| 686 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprint. != nil { |
| 687 | keys = append(keys, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.) |
| 688 | } |
| 689 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509CertThumbprintS256. != nil { |
| 690 | keys = append(keys, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.) |
| 691 | } |
| 692 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#x509URL. != nil { |
| 693 | keys = append(keys, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.) |
| 694 | } |
| 695 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#y. != nil { |
| 696 | keys = append(keys, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.) |
| 697 | } |
| 698 | for k := range h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPublicKey#privateParams. { |
| 699 | keys = append(keys, k) |
| 700 | } |
| 701 | return keys |
| 702 | } |
| 703 | |
| 704 | type ECDSAPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey# interface { |
| 705 | Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key# |
| 706 | Crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey#Crv.() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#, bool) |
| 707 | Dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey#D.() ([]byte, bool) |
| 708 | Xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey#X.() ([]byte, bool) |
| 709 | Yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey#Y.() ([]byte, bool) |
| 710 | } |
| 711 | |
| 712 | type ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey# struct { |
| 713 | algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. *jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithm# // https://tools.ietf.org/html/rfc7517#section-4.4 |
| 714 | crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. *jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm# |
| 715 | dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. []byte |
| 716 | keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. *string // https://tools.ietf.org/html/rfc7515#section-4.1.4 |
| 717 | keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. *KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# // https://tools.ietf.org/html/rfc7517#section-4.3 |
| 718 | keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. *string // https://tools.ietf.org/html/rfc7517#section-4.2 |
| 719 | xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. []byte |
| 720 | x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. *certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain# // https://tools.ietf.org/html/rfc7515#section-4.1.6 |
| 721 | x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. *string // https://tools.ietf.org/html/rfc7515#section-4.1.7 |
| 722 | x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. *string // https://tools.ietf.org/html/rfc7515#section-4.1.8 |
| 723 | x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. *string // https://tools.ietf.org/html/rfc7515#section-4.1.5 |
| 724 | yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. []byte |
| 725 | privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams. map[string]any |
| 726 | muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu. *syncscip-go gomod github.com/golang/go/src go1.24.0 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex# |
| 727 | dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#dc. jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx# |
| 728 | } |
| 729 | |
| 730 | var _ ECDSAPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAPrivateKey# = &ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#{} |
| 731 | var _ Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key# = &ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#{} |
| 732 | |
| 733 | func newECDSAPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/newECDSAPrivateKey().() *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey# { |
| 734 | return &ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#{ |
| 735 | muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu.: &syncscip-go gomod github.com/golang/go/src go1.24.0 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#{}, |
| 736 | privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams.: make(map[string]any), |
| 737 | } |
| 738 | } |
| 739 | |
| 740 | func (h ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#KeyType().() jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyType# { |
| 741 | return jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().() |
| 742 | } |
| 743 | |
| 744 | func (h ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) rlockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#rlock().() { |
| 745 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 746 | } |
| 747 | |
| 748 | func (h ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) runlockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#runlock().() { |
| 749 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 750 | } |
| 751 | |
| 752 | func (h ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) IsPrivatescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#IsPrivate().() bool { |
| 753 | return true |
| 754 | } |
| 755 | |
| 756 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Algorithm().() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithm#, bool) { |
| 757 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. != nil { |
| 758 | return *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm.), true |
| 759 | } |
| 760 | return nil, false |
| 761 | } |
| 762 | |
| 763 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Crv().() (jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#, bool) { |
| 764 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. != nil { |
| 765 | return *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv.), true |
| 766 | } |
| 767 | return jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.InvalidEllipticCurvescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/InvalidEllipticCurve().(), false |
| 768 | } |
| 769 | |
| 770 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#D().() ([]byte, bool) { |
| 771 | if h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. != nil { |
| 772 | return h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d., true |
| 773 | } |
| 774 | return nil, false |
| 775 | } |
| 776 | |
| 777 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) KeyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#KeyID().() (string, bool) { |
| 778 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. != nil { |
| 779 | return *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID.), true |
| 780 | } |
| 781 | return "", false |
| 782 | } |
| 783 | |
| 784 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) KeyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#KeyOps().() (KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList#, bool) { |
| 785 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. != nil { |
| 786 | return *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps.), true |
| 787 | } |
| 788 | return nil, false |
| 789 | } |
| 790 | |
| 791 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) KeyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#KeyUsage().() (string, bool) { |
| 792 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. != nil { |
| 793 | return *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage.), true |
| 794 | } |
| 795 | return "", false |
| 796 | } |
| 797 | |
| 798 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#X().() ([]byte, bool) { |
| 799 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. != nil { |
| 800 | return h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x., true |
| 801 | } |
| 802 | return nil, false |
| 803 | } |
| 804 | |
| 805 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) X509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#X509CertChain().() (*certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain#, bool) { |
| 806 | return h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain., true |
| 807 | } |
| 808 | |
| 809 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) X509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#X509CertThumbprint().() (string, bool) { |
| 810 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. != nil { |
| 811 | return *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint.), true |
| 812 | } |
| 813 | return "", false |
| 814 | } |
| 815 | |
| 816 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) X509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#X509CertThumbprintS256().() (string, bool) { |
| 817 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. != nil { |
| 818 | return *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256.), true |
| 819 | } |
| 820 | return "", false |
| 821 | } |
| 822 | |
| 823 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) X509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#X509URL().() (string, bool) { |
| 824 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. != nil { |
| 825 | return *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL.), true |
| 826 | } |
| 827 | return "", false |
| 828 | } |
| 829 | |
| 830 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Y().() ([]byte, bool) { |
| 831 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. != nil { |
| 832 | return h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y., true |
| 833 | } |
| 834 | return nil, false |
| 835 | } |
| 836 | |
| 837 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Hasscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Has().(name string) bool { |
| 838 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 839 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 840 | switch name { |
| 841 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 842 | return true |
| 843 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 844 | return h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. != nil |
| 845 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 846 | return h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. != nil |
| 847 | case ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.: |
| 848 | return h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. != nil |
| 849 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 850 | return h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. != nil |
| 851 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 852 | return h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. != nil |
| 853 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 854 | return h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. != nil |
| 855 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 856 | return h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. != nil |
| 857 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 858 | return h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. != nil |
| 859 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 860 | return h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. != nil |
| 861 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 862 | return h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. != nil |
| 863 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 864 | return h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. != nil |
| 865 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 866 | return h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. != nil |
| 867 | default: |
| 868 | _, ok := h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams.[name] |
| 869 | return ok |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Getscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Get().(name string, dst any) error { |
| 874 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 875 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 876 | switch name { |
| 877 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 878 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.KeyTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#KeyType().()); err != nil { |
| 879 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`ecdsaPrivateKey.Get: failed to assign value for field %q to destination object: %w`, name, err) |
| 880 | } |
| 881 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 882 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. == nil { |
| 883 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 884 | } |
| 885 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm.)); err != nil { |
| 886 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 887 | } |
| 888 | return nil |
| 889 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 890 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. == nil { |
| 891 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 892 | } |
| 893 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv.)); err != nil { |
| 894 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 895 | } |
| 896 | return nil |
| 897 | case ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.: |
| 898 | if h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. == nil { |
| 899 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 900 | } |
| 901 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d.); err != nil { |
| 902 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 903 | } |
| 904 | return nil |
| 905 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 906 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. == nil { |
| 907 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 908 | } |
| 909 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID.)); err != nil { |
| 910 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 911 | } |
| 912 | return nil |
| 913 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 914 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. == nil { |
| 915 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 916 | } |
| 917 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps.)); err != nil { |
| 918 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 919 | } |
| 920 | return nil |
| 921 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 922 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. == nil { |
| 923 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 924 | } |
| 925 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage.)); err != nil { |
| 926 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 927 | } |
| 928 | return nil |
| 929 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 930 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. == nil { |
| 931 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 932 | } |
| 933 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x.); err != nil { |
| 934 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 935 | } |
| 936 | return nil |
| 937 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 938 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. == nil { |
| 939 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 940 | } |
| 941 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain.); err != nil { |
| 942 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 943 | } |
| 944 | return nil |
| 945 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 946 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. == nil { |
| 947 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 948 | } |
| 949 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint.)); err != nil { |
| 950 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 951 | } |
| 952 | return nil |
| 953 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 954 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. == nil { |
| 955 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 956 | } |
| 957 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256.)); err != nil { |
| 958 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 959 | } |
| 960 | return nil |
| 961 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 962 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. == nil { |
| 963 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 964 | } |
| 965 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL.)); err != nil { |
| 966 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 967 | } |
| 968 | return nil |
| 969 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 970 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. == nil { |
| 971 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 972 | } |
| 973 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y.); err != nil { |
| 974 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 975 | } |
| 976 | return nil |
| 977 | default: |
| 978 | v, ok := h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams.[name] |
| 979 | if !ok { |
| 980 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`field %q not found`, name) |
| 981 | } |
| 982 | if err := blackmagicscip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/.AssignIfCompatiblescip-go gomod github.com/lestrrat-go/blackmagic v1.0.4 `github.com/lestrrat-go/blackmagic`/AssignIfCompatible().(dst, v); err != nil { |
| 983 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to assign value for field %q: %w`, name, err) |
| 984 | } |
| 985 | } |
| 986 | return nil |
| 987 | } |
| 988 | |
| 989 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Setscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Set().(name string, value any) error { |
| 990 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 991 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 992 | return h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#setNoLock().(name, value) |
| 993 | } |
| 994 | |
| 995 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#setNoLock().(name string, value any) error { |
| 996 | switch name { |
| 997 | case "kty": |
| 998 | return nil |
| 999 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 1000 | switch v := value.(type) { |
| 1001 | case string, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.SignatureAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/SignatureAlgorithm#, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyEncryptionAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyEncryptionAlgorithm#, jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ContentEncryptionAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/ContentEncryptionAlgorithm#: |
| 1002 | tmp, err := jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmFromscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithmFrom().(v) |
| 1003 | if err != nil { |
| 1004 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid algorithm for %q key: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 1005 | } |
| 1006 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. = &tmp |
| 1007 | default: |
| 1008 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid type for %q key: %T`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., value) |
| 1009 | } |
| 1010 | return nil |
| 1011 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 1012 | if v, ok := value.(jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm#); ok { |
| 1013 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. = &v |
| 1014 | return nil |
| 1015 | } |
| 1016 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey., value) |
| 1017 | case ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.: |
| 1018 | if v, ok := value.([]byte); ok { |
| 1019 | h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. = v |
| 1020 | return nil |
| 1021 | } |
| 1022 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey., value) |
| 1023 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 1024 | if v, ok := value.(string); ok { |
| 1025 | h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. = &v |
| 1026 | return nil |
| 1027 | } |
| 1028 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey., value) |
| 1029 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 1030 | var acceptor KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# |
| 1031 | if err := acceptor.Acceptscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList#Accept().(value); err != nil { |
| 1032 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %w`, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey., err) |
| 1033 | } |
| 1034 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. = &acceptor |
| 1035 | return nil |
| 1036 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 1037 | switch v := value.(type) { |
| 1038 | case KeyUsageTypescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageType#: |
| 1039 | switch v { |
| 1040 | case ForSignaturescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ForSignature., ForEncryptionscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ForEncryption.: |
| 1041 | tmp := v.Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageType#String().() |
| 1042 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. = &tmp |
| 1043 | default: |
| 1044 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid key usage type %s`, v) |
| 1045 | } |
| 1046 | case string: |
| 1047 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. = &v |
| 1048 | default: |
| 1049 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid key usage type %s`, v) |
| 1050 | } |
| 1051 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 1052 | if v, ok := value.([]byte); ok { |
| 1053 | h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. = v |
| 1054 | return nil |
| 1055 | } |
| 1056 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey., value) |
| 1057 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 1058 | if v, ok := value.(*certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain#); ok { |
| 1059 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. = v |
| 1060 | return nil |
| 1061 | } |
| 1062 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey., value) |
| 1063 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 1064 | if v, ok := value.(string); ok { |
| 1065 | h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. = &v |
| 1066 | return nil |
| 1067 | } |
| 1068 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey., value) |
| 1069 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 1070 | if v, ok := value.(string); ok { |
| 1071 | h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. = &v |
| 1072 | return nil |
| 1073 | } |
| 1074 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key., value) |
| 1075 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 1076 | if v, ok := value.(string); ok { |
| 1077 | h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. = &v |
| 1078 | return nil |
| 1079 | } |
| 1080 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey., value) |
| 1081 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 1082 | if v, ok := value.([]byte); ok { |
| 1083 | h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. = v |
| 1084 | return nil |
| 1085 | } |
| 1086 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid value for %s key: %T`, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey., value) |
| 1087 | default: |
| 1088 | if h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams. == nil { |
| 1089 | h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams. = map[string]any{} |
| 1090 | } |
| 1091 | h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams.[name] = value |
| 1092 | } |
| 1093 | return nil |
| 1094 | } |
| 1095 | |
| 1096 | func (k *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Removescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Remove().(key string) error { |
| 1097 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 1098 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 1099 | switch key { |
| 1100 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 1101 | k.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. = nil |
| 1102 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 1103 | k.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. = nil |
| 1104 | case ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.: |
| 1105 | k.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. = nil |
| 1106 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 1107 | k.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. = nil |
| 1108 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 1109 | k.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. = nil |
| 1110 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 1111 | k.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. = nil |
| 1112 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 1113 | k.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. = nil |
| 1114 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 1115 | k.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. = nil |
| 1116 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 1117 | k.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. = nil |
| 1118 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 1119 | k.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. = nil |
| 1120 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 1121 | k.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. = nil |
| 1122 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 1123 | k.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. = nil |
| 1124 | default: |
| 1125 | delete(k.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams., key) |
| 1126 | } |
| 1127 | return nil |
| 1128 | } |
| 1129 | |
| 1130 | func (k *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Clonescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Clone().() (Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/Key#, error) { |
| 1131 | key, err := cloneKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/cloneKey().(k) |
| 1132 | if err != nil { |
| 1133 | return nil, fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`ecdsaPrivateKey.Clone: %w`, err) |
| 1134 | } |
| 1135 | return key, nil |
| 1136 | } |
| 1137 | |
| 1138 | func (k *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#DecodeCtx().() jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx# { |
| 1139 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 1140 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 1141 | return k.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#dc. |
| 1142 | } |
| 1143 | |
| 1144 | func (k *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) SetDecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#SetDecodeCtx().(dc jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.DecodeCtxscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx#) { |
| 1145 | k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 1146 | defer k.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 1147 | k.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#dc. = dc |
| 1148 | } |
| 1149 | |
| 1150 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) UnmarshalJSONscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#UnmarshalJSON().(buf []byte) error { |
| 1151 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Lockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Lock().() |
| 1152 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..Unlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#Unlock().() |
| 1153 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. = nil |
| 1154 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. = nil |
| 1155 | h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. = nil |
| 1156 | h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. = nil |
| 1157 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. = nil |
| 1158 | h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. = nil |
| 1159 | h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. = nil |
| 1160 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. = nil |
| 1161 | h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. = nil |
| 1162 | h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. = nil |
| 1163 | h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. = nil |
| 1164 | h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. = nil |
| 1165 | dec := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.NewDecoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/NewDecoder().(bytesscip-go gomod github.com/golang/go/src go1.24.0 bytes/.NewReaderscip-go gomod github.com/golang/go/src go1.24.0 bytes/NewReader().(buf)) |
| 1166 | LOOP: |
| 1167 | for { |
| 1168 | tok, err := dec.Tokenscip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Token().() |
| 1169 | if err != nil { |
| 1170 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`error reading token: %w`, err) |
| 1171 | } |
| 1172 | switch tok := tok.(type) { |
| 1173 | case jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.Delimscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Delim#: |
| 1174 | // Assuming we're doing everything correctly, we should ONLY |
| 1175 | // get either tokens.OpenCurlyBracket or tokens.CloseCurlyBracket here. |
| 1176 | if tok == tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.CloseCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/CloseCurlyBracket. { // End of object |
| 1177 | break LOOP |
| 1178 | } else if tok != tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket. { |
| 1179 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`expected '%c' but got '%c'`, tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket., tok) |
| 1180 | } |
| 1181 | case string: // Objects can only have string keys |
| 1182 | switch tok { |
| 1183 | case KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.: |
| 1184 | val, err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.ReadNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/ReadNextStringToken().(dec) |
| 1185 | if err != nil { |
| 1186 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`error reading token: %w`, err) |
| 1187 | } |
| 1188 | if val != jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().().Stringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyType#String().() { |
| 1189 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid kty value for RSAPublicKey (%s)`, val) |
| 1190 | } |
| 1191 | case AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.: |
| 1192 | var s string |
| 1193 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&s); err != nil { |
| 1194 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 1195 | } |
| 1196 | alg, err := jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.KeyAlgorithmFromscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/KeyAlgorithmFrom().(s) |
| 1197 | if err != nil { |
| 1198 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., err) |
| 1199 | } |
| 1200 | h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. = &alg |
| 1201 | case ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.: |
| 1202 | var decoded jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.EllipticCurveAlgorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EllipticCurveAlgorithm# |
| 1203 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 1204 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey., err) |
| 1205 | } |
| 1206 | h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. = &decoded |
| 1207 | case ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.: |
| 1208 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextBytesTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextBytesToken().(&h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d., dec); err != nil { |
| 1209 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey., err) |
| 1210 | } |
| 1211 | case KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.: |
| 1212 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID., dec); err != nil { |
| 1213 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey., err) |
| 1214 | } |
| 1215 | case KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.: |
| 1216 | var decoded KeyOperationListscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOperationList# |
| 1217 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 1218 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey., err) |
| 1219 | } |
| 1220 | h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. = &decoded |
| 1221 | case KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.: |
| 1222 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage., dec); err != nil { |
| 1223 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey., err) |
| 1224 | } |
| 1225 | case ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.: |
| 1226 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextBytesTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextBytesToken().(&h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x., dec); err != nil { |
| 1227 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey., err) |
| 1228 | } |
| 1229 | case X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.: |
| 1230 | var decoded certscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/.Chainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/cert`/Chain# |
| 1231 | if err := dec.Decodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Decoder#Decode().(&decoded); err != nil { |
| 1232 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey., err) |
| 1233 | } |
| 1234 | h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. = &decoded |
| 1235 | case X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.: |
| 1236 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint., dec); err != nil { |
| 1237 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey., err) |
| 1238 | } |
| 1239 | case X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.: |
| 1240 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256., dec); err != nil { |
| 1241 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key., err) |
| 1242 | } |
| 1243 | case X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.: |
| 1244 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextStringTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextStringToken().(&h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL., dec); err != nil { |
| 1245 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey., err) |
| 1246 | } |
| 1247 | case ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.: |
| 1248 | if err := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.AssignNextBytesTokenscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/AssignNextBytesToken().(&h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y., dec); err != nil { |
| 1249 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to decode value for key %s: %w`, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey., err) |
| 1250 | } |
| 1251 | default: |
| 1252 | if dc := h.dcscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#dc.; dc != nil { |
| 1253 | if localReg := dc.Registryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/DecodeCtx#Registry.(); localReg != nil { |
| 1254 | decoded, err := localReg.Decodescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Registry#Decode().(dec, tok) |
| 1255 | if err == nil { |
| 1256 | h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#setNoLock().(tok, decoded) |
| 1257 | continue |
| 1258 | } |
| 1259 | } |
| 1260 | } |
| 1261 | decoded, err := registryscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/registry..Decodescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/Registry#Decode().(dec, tok) |
| 1262 | if err == nil { |
| 1263 | h.setNoLockscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#setNoLock().(tok, decoded) |
| 1264 | continue |
| 1265 | } |
| 1266 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`could not decode field %s: %w`, tok, err) |
| 1267 | } |
| 1268 | default: |
| 1269 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`invalid token %T`, tok) |
| 1270 | } |
| 1271 | } |
| 1272 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. == nil { |
| 1273 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field crv is missing`) |
| 1274 | } |
| 1275 | if h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. == nil { |
| 1276 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field d is missing`) |
| 1277 | } |
| 1278 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. == nil { |
| 1279 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field x is missing`) |
| 1280 | } |
| 1281 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. == nil { |
| 1282 | return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`required field y is missing`) |
| 1283 | } |
| 1284 | return nil |
| 1285 | } |
| 1286 | |
| 1287 | func (h ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) MarshalJSONscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#MarshalJSON().() ([]byte, error) { |
| 1288 | data := make(map[string]any) |
| 1289 | fields := make([]string, 0, 12) |
| 1290 | data[KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.] = jwascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/.ECscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwa`/EC().() |
| 1291 | fields = append(fields, KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.) |
| 1292 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. != nil { |
| 1293 | data[AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.] = *(h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm.) |
| 1294 | fields = append(fields, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.) |
| 1295 | } |
| 1296 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. != nil { |
| 1297 | data[ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.] = *(h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv.) |
| 1298 | fields = append(fields, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.) |
| 1299 | } |
| 1300 | if h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. != nil { |
| 1301 | data[ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.] = h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. |
| 1302 | fields = append(fields, ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.) |
| 1303 | } |
| 1304 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. != nil { |
| 1305 | data[KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.] = *(h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID.) |
| 1306 | fields = append(fields, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.) |
| 1307 | } |
| 1308 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. != nil { |
| 1309 | data[KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.] = *(h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps.) |
| 1310 | fields = append(fields, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.) |
| 1311 | } |
| 1312 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. != nil { |
| 1313 | data[KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.] = *(h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage.) |
| 1314 | fields = append(fields, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.) |
| 1315 | } |
| 1316 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. != nil { |
| 1317 | data[ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.] = h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. |
| 1318 | fields = append(fields, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.) |
| 1319 | } |
| 1320 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. != nil { |
| 1321 | data[X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.] = h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. |
| 1322 | fields = append(fields, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.) |
| 1323 | } |
| 1324 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. != nil { |
| 1325 | data[X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.] = *(h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint.) |
| 1326 | fields = append(fields, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.) |
| 1327 | } |
| 1328 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. != nil { |
| 1329 | data[X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.] = *(h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256.) |
| 1330 | fields = append(fields, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.) |
| 1331 | } |
| 1332 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. != nil { |
| 1333 | data[X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.] = *(h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL.) |
| 1334 | fields = append(fields, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.) |
| 1335 | } |
| 1336 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. != nil { |
| 1337 | data[ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.] = h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. |
| 1338 | fields = append(fields, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.) |
| 1339 | } |
| 1340 | for k, v := range h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams. { |
| 1341 | data[k] = v |
| 1342 | fields = append(fields, k) |
| 1343 | } |
| 1344 | |
| 1345 | sortscip-go gomod github.com/golang/go/src go1.24.0 sort/.Stringsscip-go gomod github.com/golang/go/src go1.24.0 sort/Strings().(fields) |
| 1346 | buf := poolscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/.BytesBufferscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/BytesBuffer().().Getscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/Pool#Get().() |
| 1347 | defer poolscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/.BytesBufferscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/BytesBuffer().().Putscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/pool`/Pool#Put().(buf) |
| 1348 | buf.WriteBytescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteByte().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.OpenCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/OpenCurlyBracket.) |
| 1349 | enc := jsonscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/.NewEncoderscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/json`/NewEncoder().(buf) |
| 1350 | for i, f := range fields { |
| 1351 | if i > 0 { |
| 1352 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.Commascip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/Comma.) |
| 1353 | } |
| 1354 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 1355 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(f) |
| 1356 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(`":`) |
| 1357 | v := data[f] |
| 1358 | switch v := v.(type) { |
| 1359 | case []byte: |
| 1360 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 1361 | buf.WriteStringscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteString().(base64scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/base64`/.EncodeToStringscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/base64`/EncodeToString().(v)) |
| 1362 | buf.WriteRunescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteRune().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.DoubleQuotescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/DoubleQuote.) |
| 1363 | default: |
| 1364 | if err := enc.Encodescip-go gomod github.com/golang/go/src go1.24.0 `encoding/json`/Encoder#Encode().(v); err != nil { |
| 1365 | return nil, fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Errorf().(`failed to encode value for field %s: %w`, f, err) |
| 1366 | } |
| 1367 | buf.Truncatescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Truncate().(buf.Lenscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Len().() - 1) |
| 1368 | } |
| 1369 | } |
| 1370 | buf.WriteBytescip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#WriteByte().(tokensscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/.CloseCurlyBracketscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/internal/tokens`/CloseCurlyBracket.) |
| 1371 | ret := make([]byte, buf.Lenscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Len().()) |
| 1372 | copy(ret, buf.Bytesscip-go gomod github.com/golang/go/src go1.24.0 bytes/Buffer#Bytes().()) |
| 1373 | return ret, nil |
| 1374 | } |
| 1375 | |
| 1376 | func (h *ecdsaPrivateKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#) Keysscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#Keys().() []string { |
| 1377 | h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RLockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RLock().() |
| 1378 | defer h.muscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#mu..RUnlockscip-go gomod github.com/golang/go/src go1.24.0 sync/RWMutex#RUnlock().() |
| 1379 | keys := make([]string, 0, 12+len(h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams.)) |
| 1380 | keys = append(keys, KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey.) |
| 1381 | if h.algorithmscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#algorithm. != nil { |
| 1382 | keys = append(keys, AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey.) |
| 1383 | } |
| 1384 | if h.crvscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#crv. != nil { |
| 1385 | keys = append(keys, ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey.) |
| 1386 | } |
| 1387 | if h.dscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#d. != nil { |
| 1388 | keys = append(keys, ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.) |
| 1389 | } |
| 1390 | if h.keyIDscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyID. != nil { |
| 1391 | keys = append(keys, KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey.) |
| 1392 | } |
| 1393 | if h.keyOpsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyOps. != nil { |
| 1394 | keys = append(keys, KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey.) |
| 1395 | } |
| 1396 | if h.keyUsagescip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#keyUsage. != nil { |
| 1397 | keys = append(keys, KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey.) |
| 1398 | } |
| 1399 | if h.xscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x. != nil { |
| 1400 | keys = append(keys, ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey.) |
| 1401 | } |
| 1402 | if h.x509CertChainscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertChain. != nil { |
| 1403 | keys = append(keys, X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey.) |
| 1404 | } |
| 1405 | if h.x509CertThumbprintscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprint. != nil { |
| 1406 | keys = append(keys, X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey.) |
| 1407 | } |
| 1408 | if h.x509CertThumbprintS256scip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509CertThumbprintS256. != nil { |
| 1409 | keys = append(keys, X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key.) |
| 1410 | } |
| 1411 | if h.x509URLscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#x509URL. != nil { |
| 1412 | keys = append(keys, X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey.) |
| 1413 | } |
| 1414 | if h.yscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#y. != nil { |
| 1415 | keys = append(keys, ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey.) |
| 1416 | } |
| 1417 | for k := range h.privateParamsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaPrivateKey#privateParams. { |
| 1418 | keys = append(keys, k) |
| 1419 | } |
| 1420 | return keys |
| 1421 | } |
| 1422 | |
| 1423 | var ecdsaStandardFieldsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaStandardFields. KeyFilterscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyFilter# |
| 1424 | |
| 1425 | func initscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/init().() { |
| 1426 | ecdsaStandardFieldsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaStandardFields. = NewFieldNameFilterscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/NewFieldNameFilter().(KeyTypeKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyTypeKey., KeyUsageKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyUsageKey., KeyOpsKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyOpsKey., AlgorithmKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/AlgorithmKey., KeyIDKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyIDKey., X509URLKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509URLKey., X509CertChainKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertChainKey., X509CertThumbprintKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintKey., X509CertThumbprintS256Keyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/X509CertThumbprintS256Key., ECDSACrvKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSACrvKey., ECDSAXKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAXKey., ECDSAYKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAYKey., ECDSADKeyscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSADKey.) |
| 1427 | } |
| 1428 | |
| 1429 | // ECDSAStandardFieldsFilter returns a KeyFilter that filters out standard ECDSA fields. |
| 1430 | func ECDSAStandardFieldsFilterscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ECDSAStandardFieldsFilter().() KeyFilterscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/KeyFilter# { |
| 1431 | return ecdsaStandardFieldsscip-go gomod github.com/lestrrat-go/jwx/v3 . `github.com/lestrrat-go/jwx/v3/jwk`/ecdsaStandardFields. |
| 1432 | } |