KontrolKey gives a Kontrol's public key. The value is taken form kite key's kontrolKey claim.
()
| 253 | // |
| 254 | // The value is taken form kite key's kontrolKey claim. |
| 255 | func (k *Kite) KontrolKey() *rsa.PublicKey { |
| 256 | k.configMu.RLock() |
| 257 | defer k.configMu.RUnlock() |
| 258 | |
| 259 | return k.kontrolKey |
| 260 | } |
| 261 | |
| 262 | // HandleHTTP registers the HTTP handler for the given pattern into the |
| 263 | // underlying HTTP muxer. |