Click or drag to resize

SecurIdToken Class

Abstract base class for classes representing a SecurID® token
Inheritance Hierarchy

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
public abstract class SecurIdToken

The SecurIdToken type exposes the following members.

Constructors
  NameDescription
Protected methodSecurIdToken
Initializes a new instance of the SecurIdToken class with the value of an existing token.
Top
Properties
  NameDescription
Public propertyAsSdtidToken
Gets a SecurIdSdtidToken object representing the same token as the current SecurIdToken object.
Public propertyAsV2Token
Gets a SecurIdV2Token object representing the same token as the current SecurIdToken object.
Public propertyAsV3Token
Gets a SecurIdV3Token object representing the same token as the current SecurIdToken object.
Public propertyBirthDate
Gets the birthdate of the token represented by the current SecurIdToken object.
Public propertyDecryptedSeed
Gets the decrypted seed value of the current SecurIdToken object.
Public propertyEncryptedSeed
Gets the encrypted seed value of the current SecurIdToken object.
Public propertyExpirationDate
Gets the expiration date of the token represented by the current SecurIdToken object.
Public propertyHas128BitKey
Returns if the current SecurIdToken object represents a token with a 128-bit key; if it has a 64-bit key.
Public propertyHasDecryptedSeed
Returns if DecryptedSeed contains a seed value; otherwise.
Public propertyHasEncryptedSeed
Returns if EncryptedSeed contains a seed value; otherwise.
Public propertyHasModeFlag
Returns if the current SecurIdToken object represents a token with the Mode flag set; otherwise.
Public propertyIntervalSeconds
Gets the number seconds between distinct tokencodes generated by the current SecurIdToken object.
Public propertyIsDeviceIdRequired
Returns if a Device ID (Serial Number) is required for the token represented by the current SecurIdToken object; otherwise.
Public propertyIsEmpty
Returns if this SecurIdToken object does not contain a valid token; otherwise.
Public propertyIsLocalPin
Returns if the current SecurIdToken object represents a token with a local PIN; otherwise.
Public propertyIsPasswordRequired
Returns if a Password is required for the token represented by the current SecurIdToken object; otherwise.
Public propertyIsPinRequiredForTokencode
Returns if a PIN is required to compute the tokencode for the current SecurIdToken object; otherwise.
Public propertyIsSmartPhone
Returns if the current SecurIdToken object represents a token intended for use on a smartphone; otherwise.
Public propertySerial
Gets the Device ID / Serial Number of the current SecurIdToken object.
Public propertyTokencodeLength
Gets the number of digits in each tokencode generated by the current SecurIdToken object.
Public propertyUsesAppDerivedSeeds
Returns if the current SecurIdToken object represents a token that uses app-derived seeds; otherwise.
Public propertyUsesTimeDerivedSeeds
Returns if the current SecurIdToken object represents a token that uses time-derived seeds; otherwise.
Public propertyVersion
Gets the version number of the current SecurIdToken object.
Top
Methods
  NameDescription
Public methodComputeTokencode(DateTime)
Computes the tokencode for a given date/time.
Public methodComputeTokencode(DateTime, String)
Computes the tokencode for a given date/time, using the specified PIN value.
Protected methodConvertSecuridDate
Converts a SecurID® date value (unsigned short) to a DateTime instance.
Protected methodConvertToSecuridDate
Converts a DateTime instance to a SecurID® date value.
Protected methodDecodeToken
When implemented in a derived class, decodes the string representation of a token. This method is called by Parse(String, Int32) to initialize the current instance based on the values in the string representation.
Public methodDecrypt(String)
Decrypts the token by passing the supplied password to the Decrypt(String, String) method.
Public methodDecrypt(String, String)
When implemented in a derived class, decrypts the token using the supplied password and Device ID (Serial Number).
Public methodExport
When implemented in a derived class, creates a string representation of the token, which is encrypted using the supplied password and Device ID (Serial Number)
Protected methodKeyFromBcdTime
Creates an encryption key value based on a specified number of bytes from a date/time value that is encoded as a packed binary-coded decimal (BCD)
Public methodStatic memberLoad
Loads the string representation of a SecurID® token from a file, and calls Parse(String, Int32) to convert it to an instance of one of the classes derived from SecurIdToken. If the file is in the sdtid format and contains more than one token, the first token is parsed.
Public methodStatic memberParse(String)
Converts the string representation of a SecurID® token to an instance of one of the classes derived from SecurIdToken. If the string is in the sdtid format and contains more than one token, the first token is parsed.
Public methodStatic memberParse(String, Int32)
Converts the string representation of a SecurID® token to an instance of one of the classes derived from SecurIdToken. If the string is in the sdtid format and contains more than one token, the tokenNumber parameter specifies which token will be parsed.
Protected methodScrubDeviceID
Remove all invalid characters from a SecurID® Device ID (Serial Number)
Protected methodShallowCopyTo
Perform a shallow copy of the current instance to supplied token instance
Public methodToString
Creates a string listing the values contained in this instance.
Protected methodValidateDeviceIDForDecryption
Checks if the supplied Device ID is valid for use in decrypting this token, and removes any invalid characters from the Device ID.
Protected methodValidatePasswordForDecryption
Checks if the supplied password is valid for use in decrypting this token.
Top
Fields
  NameDescription
Protected fieldStatic memberSerialChars
The expected length of a SecurID® Device ID / Serial Number
Top
See Also