Documentation ¶
Index ¶
- type Config
- type Crypto
- type KeyManager
- func (km *KeyManager) CreateCryptoKey(keyType arieskms.KeyType) (string, interface{}, error)
- func (km *KeyManager) CreateJWKKey(keyType arieskms.KeyType) (string, *jwk.JWK, error)
- func (km *KeyManager) Crypto() Crypto
- func (km *KeyManager) NewVCSigner(creator string, signatureType vcsverifiable.SignatureType) (vc.SignerAlgorithm, error)
- func (km *KeyManager) SupportedKeyTypes() []arieskms.KeyType
- type Registry
- type Type
- type VCSKeyManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KMSType Type Endpoint string Region string AliasPrefix string HTTPClient *http.Client SecretLockKeyPath string DBType string DBURL string DBPrefix string }
Config configure kms that stores signing keys.
type KeyManager ¶
type KeyManager struct {
// contains filtered or unexported fields
}
func GetAriesKeyManager ¶ added in v1.1.0
func GetAriesKeyManager(keyManager keyManager, crypto Crypto, kmsType Type, metrics metricsProvider) *KeyManager
func NewAriesKeyManager ¶
func NewAriesKeyManager(cfg *Config, metrics metricsProvider) (*KeyManager, error)
func (*KeyManager) CreateCryptoKey ¶
func (km *KeyManager) CreateCryptoKey(keyType arieskms.KeyType) (string, interface{}, error)
func (*KeyManager) CreateJWKKey ¶
func (*KeyManager) Crypto ¶
func (km *KeyManager) Crypto() Crypto
func (*KeyManager) NewVCSigner ¶
func (km *KeyManager) NewVCSigner( creator string, signatureType vcsverifiable.SignatureType) (vc.SignerAlgorithm, error)
func (*KeyManager) SupportedKeyTypes ¶
func (km *KeyManager) SupportedKeyTypes() []arieskms.KeyType
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(defaultVCSKeyManager VCSKeyManager) *Registry
func (*Registry) GetKeyManager ¶
func (r *Registry) GetKeyManager(config *Config) (VCSKeyManager, error)
type VCSKeyManager ¶
Click to show internal directories.
Click to hide internal directories.