Click or drag to resize

SecurIdSdtidToken Class

Represents a SecurID® token encoded in the SDTID format (XML)
Inheritance Hierarchy

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

The SecurIdSdtidToken type exposes the following members.

Constructors
  NameDescription
Public methodSecurIdSdtidToken
Initializes a new instance of the SecurIdSdtidToken class representing an empty token.
Public methodSecurIdSdtidToken(SecurIdToken)
Initializes a new instance of the SecurIdSdtidToken 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.
(Inherited from SecurIdToken.)
Public propertyAsV2Token
Gets a SecurIdV2Token object representing the same token as the current SecurIdToken object.
(Inherited from SecurIdToken.)
Public propertyAsV3Token
Gets a SecurIdV3Token object representing the same token as the current SecurIdToken object.
(Inherited from SecurIdToken.)
Protected propertyBatchCertificate
Gets the SDTID batch certificate
Protected propertyBatchMacHashIV
Gets the initialization vector (IV) for calculating the Batch message authentication code (MAC)
Protected propertyBatchPrivateKey
Gets the private key used to calculate the SDTID batch signature
Public propertyBirthDate
Gets the birthdate of the token represented by the current SecurIdToken object.
(Inherited from SecurIdToken.)
Public propertyDecryptedSeed
Gets the decrypted seed value of the current SecurIdToken object.
(Inherited from SecurIdToken.)
Protected propertyDest
Gets the Dest value of the SDTID token
Public propertyEncryptedSeed
Gets the encrypted seed value of the current SecurIdToken object.
(Inherited from SecurIdToken.)
Public propertyExpirationDate
Gets the expiration date of the token represented by the current SecurIdToken object.
(Inherited from SecurIdToken.)
Public propertyHas128BitKey
Returns if the current SecurIdToken object represents a token with a 128-bit key; if it has a 64-bit key.
(Inherited from SecurIdToken.)
Public propertyHasDecryptedSeed
Returns if DecryptedSeed contains a seed value; otherwise.
(Inherited from SecurIdToken.)
Public propertyHasEncryptedSeed
Returns if EncryptedSeed contains a seed value; otherwise.
(Inherited from SecurIdToken.)
Public propertyHasModeFlag
Returns if the current SecurIdToken object represents a token with the Mode flag set; otherwise.
(Inherited from SecurIdToken.)
Protected propertyHeaderMAC
Gets the message authentication code (MAC) for the SDTID token header
Public propertyIntervalSeconds
Gets the number seconds between distinct tokencodes generated by the current SecurIdToken object.
(Inherited from SecurIdToken.)
Public propertyIsDeviceIdRequired
Returns if a Device ID (Serial Number) is required for the token represented by the current SecurIdToken object; otherwise.
(Inherited from SecurIdToken.)
Public propertyIsEmpty
Returns if this SecurIdSdtidToken object does not contain a valid token; otherwise.
(Overrides SecurIdTokenIsEmpty.)
Public propertyIsLocalPin
Returns if the current SecurIdToken object represents a token with a local PIN; otherwise.
(Inherited from SecurIdToken.)
Public propertyIsPasswordRequired
Returns if a Password is required for the token represented by the current SecurIdToken object; otherwise.
(Inherited from SecurIdToken.)
Public propertyIsPinRequiredForTokencode
Returns if a PIN is required to compute the tokencode for the current SecurIdToken object; otherwise.
(Inherited from SecurIdToken.)
Public propertyIsSmartPhone
Returns if the current SecurIdToken object represents a token intended for use on a smartphone; otherwise.
(Inherited from SecurIdToken.)
Protected propertyName
Gets the Name value of the SDTID token
Protected propertyOrigin
Gets the Origin value of the SDTID token
Protected propertySecret
Gets the Secret value of the SDTID token
Protected propertySeedEncryptionIV
Gets the initialization vector (IV) for Seed encryption
Public propertySerial
Gets the Device ID / Serial Number of the current SecurIdToken object.
(Inherited from SecurIdToken.)
Protected propertySerialNoPadding
Gets the Device ID / Serial Number from the SDTID token, without any added padding.
Public propertyTokencodeLength
Gets the number of digits in each tokencode generated by the current SecurIdToken object.
(Inherited from SecurIdToken.)
Protected propertyTokenMAC
Gets the message authentication code (MAC) for the SDTID token body
Protected propertyTokenMacHashIV
Gets the initialization vector (IV) for calculating the Token message authentication code (MAC)
Public propertyUsesAppDerivedSeeds
Returns if the current SecurIdToken object represents a token that uses app-derived seeds; otherwise.
(Inherited from SecurIdToken.)
Public propertyUsesTimeDerivedSeeds
Returns if the current SecurIdToken object represents a token that uses time-derived seeds; otherwise.
(Inherited from SecurIdToken.)
Public propertyVersion
Gets the version number of the current SecurIdToken object.
(Inherited from SecurIdToken.)
Top
Methods
  NameDescription
Protected methodCalcuateKeyFromStrings
Calculate a key using two string values, an existing key, and an initialization vector (IV).
Public methodComputeTokencode(DateTime)
Computes the tokencode for a given date/time.
(Inherited from SecurIdToken.)
Public methodComputeTokencode(DateTime, String)
Computes the tokencode for a given date/time, using the specified PIN value.
(Inherited from SecurIdToken.)
Protected methodConvertSecuridDate
Converts a SecurID® date value (unsigned short) to a DateTime instance.
(Inherited from SecurIdToken.)
Protected methodConvertToSecuridDate
Converts a DateTime instance to a SecurID® date value.
(Inherited from SecurIdToken.)
Protected methodDecodeToken
Decodes the SDTID (XML) 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.
(Overrides SecurIdTokenDecodeToken(String, Int32).)
Public methodDecrypt(String)
Decrypts the token by passing the supplied password to the Decrypt(String, String) method.
(Inherited from SecurIdToken.)
Public methodDecrypt(String, String)
Decrypts the token using the supplied password.
(Overrides SecurIdTokenDecrypt(String, String).)
Protected methodDecryptSecret
Decrypt a token's Secret value.
Protected methodDecryptSeed
Decrypt a token's Seed value.
Public methodExport
Creates a string representation of the token, which is encrypted using the supplied password.
(Overrides SecurIdTokenExport(String, String).)
Protected methodFindXmlBase64Value
Search the XML of the current instance for a node with a given name and containing a base-64 encoded value, and decode the value into an array of bytes.
Protected methodFindXmlDateValue
Search the XML of the current instance for a node with a given name and containing a date value, and return the value as a DateTime object.
Protected methodFindXmlIntValue
Search the XML of the current instance for a node with a given name and return the node's value as an Int32 value, or a default value if the node is not found.
Protected methodFindXmlStringValue(String)
Search the XML of the current instance for a node with a given name and return the node's value, or an empty string if the node is not found.
Protected methodFindXmlStringValue(String, String)
Search the XML of the current instance for a node with a given name and return the node's value, or a default value if the node is not found.
Protected methodGetChildNodeContentsForHashing
Retrieve the contents of all descendants of a given XML node, in a predefined format in preparation for hashing.
Protected methodGetNodeContentsForHashing
Retrieve the contents of the given XML nodes and all their descendants in a predefined format, and return the results as a byte array suitable for hashing.
Protected methodHashPassword
Calculate a hash value for a token password, using the supplied salt values.
Protected methodHashXml
Calculate a hash value for an XML node and its descendants, using a supplied Key and IV (initialization vector)
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)
(Inherited from SecurIdToken.)
Protected methodScrubDeviceID
Remove all invalid characters from a SecurID® Device ID (Serial Number)
(Inherited from SecurIdToken.)
Protected methodShallowCopyTo
Perform a shallow copy of the current instance to supplied token instance
(Inherited from SecurIdToken.)
Public methodToString
Creates a string listing the values contained in this instance.
(Inherited from SecurIdToken.)
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.
(Inherited from SecurIdToken.)
Protected methodValidatePasswordForDecryption
Checks if the supplied password is valid for use in decrypting this token.
(Inherited from SecurIdToken.)
Top
See Also