KeyPair defines a single key pair entity
| 10 | |
| 11 | // KeyPair defines a single key pair entity |
| 12 | type KeyPair struct { |
| 13 | // ID is the unique id defining the key pair |
| 14 | ID string |
| 15 | |
| 16 | // Public key is used to validate tokens |
| 17 | Public string |
| 18 | |
| 19 | // Private key is used to sign/generate tokens |
| 20 | Private string |
| 21 | } |
| 22 | |
| 23 | func (k *KeyPair) Validate() error { |
| 24 | if k.ID == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected