• Home
  • API Documentation
Show / Hide Table of Contents
  • Yort.Otp
    • CounterBasedPasswordGenerator
      • Counter
      • CounterBasedPasswordGenerator
    • IHashAlgorithm
      • ComputeHash
      • Name
    • IOnetimePasswordGenerator
      • GeneratedPassword
      • HashAlgorithm
      • PasswordLength
      • SetSecret
    • MD5HashAlgorithm
      • ComputeHash
      • Name
    • OnetimePasswordAccount
      • Issuer
      • Label
      • Metadata
      • PasswordGenerator
      • Secret
    • OnetimePasswordGeneratorBase
      • Dispose
      • GeneratedPassword
      • HashAlgorithm
      • IsDisposed
      • MovingFactor
      • OnetimePasswordGeneratorBase
      • PasswordLength
      • SetSecret
    • OnetimePasswordGeneratorFactory
      • CreateFactory
      • CreateNewPasswordGenerator
      • FromOtpUrl
      • GetOtpUrl
    • OnetimePasswordSecret
      • FromAscii
      • FromBase32
      • FromHex
      • ToBase32
    • Resource
    • Resource.Attribute
    • Resource.String
      • ApplicationName
      • Hello
    • Sha1HashAlgorithm
      • ComputeHash
      • Name
    • Sha256HashAlgorithm
      • ComputeHash
      • Name
    • Sha512HashAlgorithm
      • ComputeHash
      • Name
    • TimeBasedPasswordGenerator
      • MovingFactor
      • TimeBasedPasswordGenerator
      • TimeInterval
      • Timestamp
      • ValidUntilUtc

Class OnetimePasswordGeneratorFactory

Factory that makes instantiating and configuring onetime password generators more concise. Also provides methods for creating password generators from otp urls, and generating new urls.

Inheritance
System.Object
OnetimePasswordGeneratorFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Yort.Otp
Assembly: cs.temp.dll.dll
Syntax
public class OnetimePasswordGeneratorFactory

Methods

Name Description
CreateFactory(Boolean, IHashAlgorithm, Int32)

Returns a factory instance that creates pre-configured CounterBasedPasswordGenerator instances.

CreateFactory(Boolean, IHashAlgorithm, Int32)

Returns a factory instance that creates pre-configured CounterBasedPasswordGenerator instances.

CreateFactory(Boolean, IHashAlgorithm, Int32, TimeSpan)

Returns a factory instance that creates pre-configured TimeBasedPasswordGenerator instances.

CreateFactory(Boolean, IHashAlgorithm, Int32, TimeSpan)

Returns a factory instance that creates pre-configured TimeBasedPasswordGenerator instances.

CreateNewPasswordGenerator(Byte[])

Returns a time based password generator.

CreateNewPasswordGenerator(Byte[])

Returns a time based password generator.

CreateNewPasswordGenerator(Byte[], Int64)

Returns a counter based password generator.

CreateNewPasswordGenerator(Byte[], Int64)

Returns a counter based password generator.

FromOtpUrl(Uri)

Creates either a TimeBasedPasswordGenerator or CounterBasedPasswordGenerator instance pre-configured with values from an otp style uri.

FromOtpUrl(Uri, out String, out Byte[], out IDictionary<String, String>)

Creates either a TimeBasedPasswordGenerator or CounterBasedPasswordGenerator instance pre-configured with values from an otp style uri.

GetOtpUrl(String, String, Int32, Byte[], Int64, IDictionary<String, String>)

Creates a new that can be used to configure an authentication app. These codes are normally used as the content of a QR code.

GetOtpUrl(String, String, Int32, Byte[], Int64, IDictionary<String, String>)

Creates a new that can be used to configure an authentication app. These codes are normally used as the content of a QR code.

GetOtpUrl(String, String, Int32, Byte[], TimeSpan, IDictionary<String, String>)

Creates a new that can be used to configure an authentication app. These codes are normally used as the content of a QR code.

GetOtpUrl(String, String, Int32, Byte[], TimeSpan, IDictionary<String, String>)

Creates a new that can be used to configure an authentication app. These codes are normally used as the content of a QR code.

See Also

TimeBasedPasswordGenerator
CounterBasedPasswordGenerator
TimeBasedPasswordGenerator
CounterBasedPasswordGenerator
Back to top Copyright (c) 2017 Troy Willmot