Method CreateNewPasswordGenerator
CreateNewPasswordGenerator(Byte[])
Returns a time based password generator.
Declaration
public IOnetimePasswordGenerator CreateNewPasswordGenerator(byte[] secret)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | secret | The secret to use for the new password generator. |
Returns
| Type | Description |
|---|---|
| IOnetimePasswordGenerator | A pre-configured TimeBasedPasswordGenerator instance. |
CreateNewPasswordGenerator(Byte[], Int64)
Returns a counter based password generator.
Declaration
public IOnetimePasswordGenerator CreateNewPasswordGenerator(byte[] secret, Int64 counter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | secret | The secret to use for the new password generator. |
| Int64 | counter | The current counter to use for the new password generator. |
Returns
| Type | Description |
|---|---|
| IOnetimePasswordGenerator | A pre-configured CounterBasedPasswordGenerator instance. |
CreateNewPasswordGenerator(Byte[])
Returns a time based password generator.
Declaration
public IOnetimePasswordGenerator CreateNewPasswordGenerator(byte[] secret)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | secret | The secret to use for the new password generator. |
Returns
| Type | Description |
|---|---|
| IOnetimePasswordGenerator | A pre-configured TimeBasedPasswordGenerator instance. |
CreateNewPasswordGenerator(Byte[], Int64)
Returns a counter based password generator.
Declaration
public IOnetimePasswordGenerator CreateNewPasswordGenerator(byte[] secret, Int64 counter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | secret | The secret to use for the new password generator. |
| Int64 | counter | The current counter to use for the new password generator. |
Returns
| Type | Description |
|---|---|
| IOnetimePasswordGenerator | A pre-configured CounterBasedPasswordGenerator instance. |