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

Method Has

header.go:86–89  ·  view source on GitHub ↗

Has returns true if a value for the given key exists inside the Protected Header.

(key string)

Source from the content-addressed store, hash-verified

84// Has returns true if a value for the given key exists inside the Protected
85// Header.
86func (p Protected) Has(key string) bool {
87 _, ok := p[key]
88 return ok
89}
90
91// MarshalJSON implements json.Marshaler for Protected.
92func (p Protected) MarshalJSON() ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected