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

Method MarshalJSON

crypto/hmac.go:77–79  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

75// MarshalJSON implements json.Marshaler.
76// See SigningMethodECDSA.MarshalJSON() for information.
77func (m *SigningMethodHMAC) MarshalJSON() ([]byte, error) {
78 return []byte(`"` + m.Alg() + `"`), nil
79}
80
81var _ json.Marshaler = (*SigningMethodHMAC)(nil)

Callers

nothing calls this directly

Calls 1

AlgMethod · 0.95

Tested by

no test coverage detected