CredentialWithSecrets Class
Namespace: Yubico.YubiKey.YubiHsmAuth Assembly: Yubico.YubiKey.dllThis Credential subclass is used when adding new credentials to the YubiHSM Auth application. See AddCredentialCommand for more information.
public abstract class CredentialWithSecrets : Credential
Remarks
Every credential in the YubiHSM Auth application contains two secrets: the credential password, and the cryptographic key(s). The requirements for the credential password are the same for every credential. The caller is responsible for generating the cryptographic key(s) with an appropriate RNG. The requirements for the key(s) vary based on the KeyType. Classes that inherit from this one will implement functionality related to the key(s) specific to the CryptographicKeyType it represents. See Aes128CredentialWithSecrets for an example implementation.
Constructors
Name | Description |
---|---|
CredentialWithSecrets(ReadOnlyMemory<Byte>, CryptographicKeyType, String, Boolean) | Create a credential with the secrets to be stored in the application. |
Fields
Name | Description |
---|---|
RequiredCredentialPasswordLength | The credential password must be exactly 16 bytes. |
Properties
Name | Description |
---|---|
CredentialPassword | The credential password is required when performing operations that access the key(s), such as calculating session keys. Its length must be equal to RequiredCredentialPasswordLength. |