swmodule

package
v0.0.0-...-b2cdabd Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(certType string, configJSON json.RawMessage) (module certhandler.CertModule, err error)

New creates ssh module instance.

Types

type SWModule

type SWModule struct {
	// contains filtered or unexported fields
}

SWModule SW certificate module.

func (*SWModule) ApplyCertificate

func (module *SWModule) ApplyCertificate(x509Certs []*x509.Certificate) (
	certInfo certhandler.CertInfo, password string, err error,
)

ApplyCertificate applies certificate.

func (*SWModule) Clear

func (module *SWModule) Clear() (err error)

Clear clears security storage.

func (*SWModule) Close

func (module *SWModule) Close() (err error)

Close closes SW module.

func (*SWModule) CreateKey

func (module *SWModule) CreateKey(password, algorithm string) (key crypto.PrivateKey, err error)

CreateKey creates key pair.

func (*SWModule) RemoveCertificate

func (module *SWModule) RemoveCertificate(certURL, password string) (err error)

RemoveCertificate removes certificate.

func (*SWModule) RemoveKey

func (module *SWModule) RemoveKey(keyURL, password string) (err error)

RemoveKey removes key.

func (*SWModule) SetOwner

func (module *SWModule) SetOwner(password string) (err error)

SetOwner owns security storage.

func (*SWModule) ValidateCertificates

func (module *SWModule) ValidateCertificates() (
	validInfos []certhandler.CertInfo, invalidCerts, invalidKeys []string, err error,
)

ValidateCertificates returns list of valid pairs, invalid certificates and invalid keys.

Jump to

Keyboard shortcuts

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