jwt_keyvault

package
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtKeyVaultItem

type JwtKeyVaultItem struct {
	ID                string
	Type              encryption.EncryptionKey
	Size              encryption.EncryptionKeySize
	Thumbprint        string
	Certificate       *x509.Certificate
	EncodedPrivateKey string
	PrivateKey        interface{}
	EncodedPublicKey  string
	PublicKey         interface{}
	IsDefault         bool
	JWK               *jwk.JsonWebKeys
}

type JwtKeyVaultService

type JwtKeyVaultService struct {
	Keys []*JwtKeyVaultItem
}

func Get

func Get() *JwtKeyVaultService

func NewKeyVault

func NewKeyVault() *JwtKeyVaultService

func (*JwtKeyVaultService) GetDefaultKey

func (kv *JwtKeyVaultService) GetDefaultKey() *JwtKeyVaultItem

func (*JwtKeyVaultService) GetKey

func (kv *JwtKeyVaultService) GetKey(id string) *JwtKeyVaultItem

func (*JwtKeyVaultService) SetDefaultKey

func (kv *JwtKeyVaultService) SetDefaultKey(id string)

func (*JwtKeyVaultService) WithBase64EcdsaKey

func (kv *JwtKeyVaultService) WithBase64EcdsaKey(id string, privateKey string) *JwtKeyVaultService

func (*JwtKeyVaultService) WithBase64HmacKey

func (kv *JwtKeyVaultService) WithBase64HmacKey(id string, privateKey string, size encryption.EncryptionKeySize) *JwtKeyVaultService

func (*JwtKeyVaultService) WithBase64RsaKey

func (kv *JwtKeyVaultService) WithBase64RsaKey(id string, privateKey string) *JwtKeyVaultService

func (*JwtKeyVaultService) WithCertificate

func (kv *JwtKeyVaultService) WithCertificate(certificate x509.Certificate, privateKey interface{}) *JwtKeyVaultService

func (*JwtKeyVaultService) WithEcdsaKey

func (kv *JwtKeyVaultService) WithEcdsaKey(id string, privateKey *ecdsa.PrivateKey) *JwtKeyVaultService

func (*JwtKeyVaultService) WithHmacKey

func (kv *JwtKeyVaultService) WithHmacKey(id string, privateKey string, size encryption.EncryptionKeySize) *JwtKeyVaultService

func (*JwtKeyVaultService) WithRsaKey

func (kv *JwtKeyVaultService) WithRsaKey(id string, privateKey *rsa.PrivateKey) *JwtKeyVaultService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL