Method GetOtpUrl
GetOtpUrl(String, String, Int32, Byte[], Int64, IDictionary<String, String>)
Creates a new
Declaration
public static Uri GetOtpUrl(string label, string algorithmName, int passwordLength, byte[] secret, Int64 counter, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The name of the account or resource protected by this secret. |
System.String | algorithmName | The name of the algorithm used with the secret to generate passwords. |
System.Int32 | passwordLength | The length of the password, default is 6, usual values are 6 or 8. |
System.Byte[] | secret | The secret used to protect this account. |
Int64 | counter | The initial counter to use when generating passwords for this account. |
IDictionary<System.String, System.String> | metadata | A dictionary containing additional metadata to be encoded into the url. If this value is null or empty, no additional values are added. |
Returns
Type | Description |
---|---|
Uri | A new |
See Also
GetOtpUrl(String, String, Int32, Byte[], TimeSpan, IDictionary<String, String>)
Creates a new
Declaration
public static Uri GetOtpUrl(string label, string algorithmName, int passwordLength, byte[] secret, TimeSpan timeInterval, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The name of the account or resource protected by this secret. |
System.String | algorithmName | The name of the algorithm used with the secret to generate passwords. |
System.Int32 | passwordLength | The length of the password, default is 6, usual values are 6 or 8. |
System.Byte[] | secret | The secret used to protect this account. |
TimeSpan | timeInterval | The time interval each generated password if valid for. Default value is 30. |
IDictionary<System.String, System.String> | metadata | A dictionary containing additional metadata to be encoded into the url. If this value is null or empty, no additional values are added. |
Returns
Type | Description |
---|---|
Uri | A new |
See Also
GetOtpUrl(String, String, Int32, Byte[], Int64, IDictionary<String, String>)
Creates a new
Declaration
public static Uri GetOtpUrl(string label, string algorithmName, int passwordLength, byte[] secret, Int64 counter, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The name of the account or resource protected by this secret. |
System.String | algorithmName | The name of the algorithm used with the secret to generate passwords. |
System.Int32 | passwordLength | The length of the password, default is 6, usual values are 6 or 8. |
System.Byte[] | secret | The secret used to protect this account. |
Int64 | counter | The initial counter to use when generating passwords for this account. |
IDictionary<System.String, System.String> | metadata | A dictionary containing additional metadata to be encoded into the url. If this value is null or empty, no additional values are added. |
Returns
Type | Description |
---|---|
Uri | A new |
See Also
GetOtpUrl(String, String, Int32, Byte[], TimeSpan, IDictionary<String, String>)
Creates a new
Declaration
public static Uri GetOtpUrl(string label, string algorithmName, int passwordLength, byte[] secret, TimeSpan timeInterval, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The name of the account or resource protected by this secret. |
System.String | algorithmName | The name of the algorithm used with the secret to generate passwords. |
System.Int32 | passwordLength | The length of the password, default is 6, usual values are 6 or 8. |
System.Byte[] | secret | The secret used to protect this account. |
TimeSpan | timeInterval | The time interval each generated password if valid for. Default value is 30. |
IDictionary<System.String, System.String> | metadata | A dictionary containing additional metadata to be encoded into the url. If this value is null or empty, no additional values are added. |
Returns
Type | Description |
---|---|
Uri | A new |