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