Documentation ¶
Index ¶
- Constants
- type YubiKey
- func (k *YubiKey) Close() error
- func (k *YubiKey) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)
- func (k *YubiKey) CreateSigner(req *apiv1.CreateSignerRequest) (crypto.Signer, error)
- func (k *YubiKey) GetPublicKey(req *apiv1.GetPublicKeyRequest) (crypto.PublicKey, error)
- func (k *YubiKey) LoadCertificate(req *apiv1.LoadCertificateRequest) (*x509.Certificate, error)
- func (k *YubiKey) StoreCertificate(req *apiv1.StoreCertificateRequest) error
Constants ¶
View Source
const Scheme = "yubikey"
Scheme is the scheme used in uris.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YubiKey ¶
type YubiKey struct {
// contains filtered or unexported fields
}
YubiKey implements the KMS interface on a YubiKey.
func (*YubiKey) CreateKey ¶
func (k *YubiKey) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)
CreateKey generates a new key in the YubiKey and returns the public key.
func (*YubiKey) CreateSigner ¶
CreateSigner creates a signer using the key present in the YubiKey signature slot.
func (*YubiKey) GetPublicKey ¶
GetPublicKey returns the public key present in the YubiKey signature slot.
func (*YubiKey) LoadCertificate ¶
func (k *YubiKey) LoadCertificate(req *apiv1.LoadCertificateRequest) (*x509.Certificate, error)
LoadCertificate implements kms.CertificateManager and loads a certificate from the YubiKey.
func (*YubiKey) StoreCertificate ¶
func (k *YubiKey) StoreCertificate(req *apiv1.StoreCertificateRequest) error
StoreCertificate implements kms.CertificateManager and stores a certificate in the YubiKey.
Click to show internal directories.
Click to hide internal directories.