HandleIdentityEncodingAsRecipient is like [Plugin.HandleIdentityAsRecipient] but provides the full identity encoding string to the callback.
(f func(identity string) (age.Recipient, error))
| 129 | // HandleIdentityEncodingAsRecipient is like [Plugin.HandleIdentityAsRecipient] but |
| 130 | // provides the full identity encoding string to the callback. |
| 131 | func (p *Plugin) HandleIdentityEncodingAsRecipient(f func(identity string) (age.Recipient, error)) { |
| 132 | p.HandleIdentityAsRecipient(func(data []byte) (age.Recipient, error) { |
| 133 | return f(EncodeIdentity(p.name, data)) |
| 134 | }) |
| 135 | } |
| 136 | |
| 137 | // HandleIdentityEncoding is like [Plugin.HandleIdentity] but provides the |
| 138 | // full identity encoding string to the callback. |
nothing calls this directly
no test coverage detected