(ctx context.Context)
| 179 | } |
| 180 | |
| 181 | func (c *cache) SigningKey(ctx context.Context) (string, interface{}, error) { |
| 182 | if !isSigningKeyFeature(c.feature) { |
| 183 | return "", nil, ErrInvalidFeature |
| 184 | } |
| 185 | |
| 186 | //nolint:gocritic // cache can only read crypto keys. |
| 187 | ctx = dbauthz.AsKeyReader(ctx) |
| 188 | return c.cryptoKey(ctx, latestSequence) |
| 189 | } |
| 190 | |
| 191 | func (c *cache) VerifyingKey(ctx context.Context, id string) (interface{}, error) { |
| 192 | if !isSigningKeyFeature(c.feature) { |
nothing calls this directly
no test coverage detected