Documentation ¶
Index ¶
- type JWK
- type JWKSets
- type KeyService
- func (k *KeyService) GenerateKey() (*rsa.PrivateKey, error)
- func (k *KeyService) JWKSetsToPublicKey(jwkSets JWKSets, kid string) (*rsa.PublicKey, error)
- func (k *KeyService) JWKToPublicKey(jwk JWK) (*rsa.PublicKey, error)
- func (k *KeyService) PrivateKeyDecodePEM(pemdata []byte) (*rsa.PrivateKey, error)
- func (k *KeyService) PrivateKeyEncodePEM(privateKey *rsa.PrivateKey) ([]byte, error)
- func (k *KeyService) PublicKeyToJWK(pub rsa.PublicKey) (*JWK, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyService ¶
type KeyService struct {
PrivateKeyBits int
}
func (*KeyService) GenerateKey ¶
func (k *KeyService) GenerateKey() (*rsa.PrivateKey, error)
func (*KeyService) JWKSetsToPublicKey ¶
func (*KeyService) JWKToPublicKey ¶
func (k *KeyService) JWKToPublicKey(jwk JWK) (*rsa.PublicKey, error)
func (*KeyService) PrivateKeyDecodePEM ¶
func (k *KeyService) PrivateKeyDecodePEM(pemdata []byte) (*rsa.PrivateKey, error)
func (*KeyService) PrivateKeyEncodePEM ¶
func (k *KeyService) PrivateKeyEncodePEM(privateKey *rsa.PrivateKey) ([]byte, error)
func (*KeyService) PublicKeyToJWK ¶
func (k *KeyService) PublicKeyToJWK(pub rsa.PublicKey) (*JWK, error)
Click to show internal directories.
Click to hide internal directories.