MCPcopy Create free account
hub / github.com/SermoDigital/jose / MarshalJSON

Method MarshalJSON

crypto/none.go:68–70  ·  view source on GitHub ↗

MarshalJSON implements json.Marshaler. See SigningMethodECDSA.MarshalJSON() for information.

()

Source from the content-addressed store, hash-verified

66// MarshalJSON implements json.Marshaler.
67// See SigningMethodECDSA.MarshalJSON() for information.
68func (m *SigningMethodNone) MarshalJSON() ([]byte, error) {
69 return []byte(`"` + m.Alg() + `"`), nil
70}
71
72var _ json.Marshaler = (*SigningMethodNone)(nil)

Callers

nothing calls this directly

Calls 1

AlgMethod · 0.95

Tested by

no test coverage detected