kms

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 170

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator added in v0.1.2

type Creator func(provider Provider) (KeyManager, error)

Creator method to create new key management service

type KeyManager

type KeyManager interface {
	// Create a new key/keyset/key handle for the type kt
	Create(kt string) (string, interface{}, error)
	// Get key handle for the given keyID
	Get(keyID string) (interface{}, error)
	// Rotate a key referenced by keyID and return a new handle of a keyset including old key and
	// new key with type kt. It also returns the updated keyID as the first return value
	Rotate(kt, keyID string) (string, interface{}, error)
}

KeyManager manages keys and their storage for the aries framework

type Provider added in v0.1.2

type Provider interface {
	StorageProvider() storage.Provider
	SecretLock() secretlock.Service
}

Provider for KeyManager builder/constructor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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