Documentation ¶
Index ¶
- Variables
- type Context
- type KeyManager
- func (m *KeyManager) AddKey(_ context.Context, _ string, _ *jose.JSONWebKey) error
- func (m *KeyManager) AddKeySet(_ context.Context, _ string, _ *jose.JSONWebKeySet) error
- func (m *KeyManager) DeleteKey(_ context.Context, set, kid string) error
- func (m *KeyManager) DeleteKeySet(_ context.Context, set string) error
- func (m *KeyManager) GenerateAndPersistKeySet(_ context.Context, set, kid, alg, use string) (*jose.JSONWebKeySet, error)
- func (m *KeyManager) GetKey(_ context.Context, set, kid string) (*jose.JSONWebKeySet, error)
- func (m *KeyManager) GetKeySet(_ context.Context, set string) (*jose.JSONWebKeySet, error)
- func (m *KeyManager) UpdateKey(_ context.Context, _ string, _ *jose.JSONWebKey) error
- func (m *KeyManager) UpdateKeySet(_ context.Context, _ string, _ *jose.JSONWebKeySet) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOpSysNotSupported = errors.New("Hardware Security Module is not supported on this platform.")
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { }
func NewContext ¶
func NewContext(c *config.DefaultProvider, l *logrusx.Logger) Context
type KeyManager ¶
func NewKeyManager ¶
func NewKeyManager(hsm Context, config *config.DefaultProvider) *KeyManager
func (*KeyManager) AddKey ¶
func (m *KeyManager) AddKey(_ context.Context, _ string, _ *jose.JSONWebKey) error
func (*KeyManager) AddKeySet ¶
func (m *KeyManager) AddKeySet(_ context.Context, _ string, _ *jose.JSONWebKeySet) error
func (*KeyManager) DeleteKey ¶
func (m *KeyManager) DeleteKey(_ context.Context, set, kid string) error
func (*KeyManager) DeleteKeySet ¶
func (m *KeyManager) DeleteKeySet(_ context.Context, set string) error
func (*KeyManager) GenerateAndPersistKeySet ¶
func (m *KeyManager) GenerateAndPersistKeySet(_ context.Context, set, kid, alg, use string) (*jose.JSONWebKeySet, error)
func (*KeyManager) GetKey ¶
func (m *KeyManager) GetKey(_ context.Context, set, kid string) (*jose.JSONWebKeySet, error)
func (*KeyManager) GetKeySet ¶
func (m *KeyManager) GetKeySet(_ context.Context, set string) (*jose.JSONWebKeySet, error)
func (*KeyManager) UpdateKey ¶
func (m *KeyManager) UpdateKey(_ context.Context, _ string, _ *jose.JSONWebKey) error
func (*KeyManager) UpdateKeySet ¶
func (m *KeyManager) UpdateKeySet(_ context.Context, _ string, _ *jose.JSONWebKeySet) error
Click to show internal directories.
Click to hide internal directories.