RemoveCredential Method
RemoveCredential(Credential)
Removes an existing credential from the YubiKey.
public void RemoveCredential(Credential credential)
Parameters
Type | Name | Description |
---|---|---|
Credential | credential | The Credential to remove from the YubiKey. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Provided credential is null. |
System.InvalidOperationException | There is no |
System.Security.SecurityException | Unable to verify password either because |
RemoveCredential(String, String, CredentialType, CredentialPeriod)
Removes an existing credential from the YubiKey.
public Credential RemoveCredential(string issuer, string account, CredentialType type, CredentialPeriod period)
Parameters
Type | Name | Description |
---|---|---|
System.String | issuer | The issuer is an optional string indicating the provider or service. |
System.String | account | The account name that usually is the user's email address. |
CredentialType | type | Indicates the CredentialType of the credential as either HOTP or TOTP. The default value is TOTP. |
CredentialPeriod | period | Indicates the CredentialPeriod of the credential in seconds for TOTP code. It can only be 15, 30, or 60 seconds. For HOTP should be set to zero (Undefined). The default value is 30. |
Returns
The Credential
that was removed from the YubiKey.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | There is no |
System.Security.SecurityException | Unable to verify password either because |