mirror of
https://github.com/1f349/mjwt.git
synced 2024-12-22 15:34:08 +00:00
Add Issuer.KeyStore() method
This commit is contained in:
parent
4e2c18918f
commit
7eaf420bb9
@ -48,3 +48,7 @@ func (i *Issuer) SignJwt(wrapped jwt.Claims) (string, error) {
|
|||||||
func (i *Issuer) PrivateKey() (*rsa.PrivateKey, error) {
|
func (i *Issuer) PrivateKey() (*rsa.PrivateKey, error) {
|
||||||
return i.keystore.GetPrivateKey(i.kid)
|
return i.keystore.GetPrivateKey(i.kid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *Issuer) KeyStore() *KeyStore {
|
||||||
|
return i.keystore
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user