Documentation ¶
Index ¶
- type JwtKeyVaultItem
- type JwtKeyVaultService
- func (kv *JwtKeyVaultService) GetDefaultKey() *JwtKeyVaultItem
- func (kv *JwtKeyVaultService) GetKey(id string) *JwtKeyVaultItem
- func (kv *JwtKeyVaultService) SetDefaultKey(id string)
- func (kv *JwtKeyVaultService) WithBase64EcdsaKey(id string, privateKey string) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithBase64HmacKey(id string, privateKey string, size encryption.EncryptionKeySize) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithBase64RsaKey(id string, privateKey string) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithCertificate(certificate x509.Certificate, privateKey interface{}) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithEcdsaKey(id string, privateKey *ecdsa.PrivateKey) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithHmacKey(id string, privateKey string, size encryption.EncryptionKeySize) *JwtKeyVaultService
- func (kv *JwtKeyVaultService) WithRsaKey(id string, privateKey *rsa.PrivateKey) *JwtKeyVaultService
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
Click to show internal directories.
Click to hide internal directories.