key

package
v1.1.203 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExportInformationFromResponseKey added in v0.10.21

func GetExportInformationFromResponseKey(responseKey *wssdcloudsecurity.Key) (string, error)

func GetKeyWrappingAlgorithm added in v0.10.21

func GetKeyWrappingAlgorithm(algo wssdcloudcommon.KeyWrappingAlgorithm) (wrappingAlgo keyvault.KeyWrappingAlgorithm, err error)

func GetMOCAlgorithmType

func GetMOCAlgorithmType(algo string) (keyvault.JSONWebKeyEncryptionAlgorithm, error)

func GetMOCKeyWrappingAlgorithm added in v0.10.21

func GetMOCKeyWrappingAlgorithm(algo keyvault.KeyWrappingAlgorithm) (wrappingAlgo wssdcloudcommon.KeyWrappingAlgorithm, err error)

func ParseAndValidateExportParams added in v0.10.21

func ParseAndValidateExportParams(keyValue *string, exportKey *wssdcloudsecurity.Key) (err error)

Validate Export params

func ParseAndValidateImportExportParams added in v0.10.21

func ParseAndValidateImportExportParams(keyValue *string) (parsedImportExportParams keyvault.KeyImportExportValue, keyWrappingAlgo wssdcloudcommon.KeyWrappingAlgorithm, err error)

Common validation for Import and Export params

func ParseAndValidateImportParams added in v0.10.21

func ParseAndValidateImportParams(keyValue *string, importKey *wssdcloudsecurity.Key) (err error)

Validate Import params

Types

type KeyClient

type KeyClient struct {
	security.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewKeyClient

func NewKeyClient(cloudFQDN string, authorizer auth.Authorizer) (*KeyClient, error)

NewClient method returns new client

func (*KeyClient) CreateOrUpdate

func (c *KeyClient) CreateOrUpdate(ctx context.Context, group, vaultName, name string,
	param *keyvault.Key) (*keyvault.Key, error)

CreateOrUpdate methods invokes create or update on the client

func (*KeyClient) Decrypt

func (c *KeyClient) Decrypt(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

Decrypt methods invokes encrypt of the keyvault resource

func (*KeyClient) Delete

func (c *KeyClient) Delete(ctx context.Context, group, vaultName, name string) error

Delete methods invokes delete of the keyvault resource

func (*KeyClient) Encrypt

func (c *KeyClient) Encrypt(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

Encrypt methods invokes encrypt of the keyvault resource

func (*KeyClient) Export added in v0.10.21

func (c *KeyClient) Export(ctx context.Context, group, vaultName, name string,
	param *keyvault.Key) (*keyvault.Key, error)

Export methods invokes export on the client

func (*KeyClient) Get

func (c *KeyClient) Get(ctx context.Context, group, vaultName, name string) (*[]keyvault.Key, error)

Get methods invokes the client Get method

func (*KeyClient) Import added in v0.10.21

func (c *KeyClient) Import(ctx context.Context, group, vaultName, name string,
	param *keyvault.Key) (*keyvault.Key, error)

Import methods invokes import on the client

func (*KeyClient) Sign added in v0.10.24

func (c *KeyClient) Sign(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeySignParameters) (result *keyvault.KeyOperationResult, err error)

Sign

func (*KeyClient) UnwrapKey

func (c *KeyClient) UnwrapKey(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

UnwrapKey

func (*KeyClient) Verify added in v0.10.24

func (c *KeyClient) Verify(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyVerifyParameters) (result *keyvault.KeyVerifyResult, err error)

Verify

func (*KeyClient) WrapKey

func (c *KeyClient) WrapKey(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

WrapKey

Jump to

Keyboard shortcuts

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