Click or drag to resize

SecurIdTokenParse Method (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.

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
public static SecurIdToken Parse(
	string token,
	int tokenNumber
)

Parameters

token
Type: SystemString
String containing a representation of a SecurID® token. The string may be in any of the following formats: sdtid, version 2, or version 3.
tokenNumber
Type: SystemInt32
Specifies which token will be parsed, if the string is in the sdtid format. This value is ignored if the string is not in sdtid format.

Return Value

Type: SecurIdToken
An instance of one of the classes derived from SecurIdToken. See remarks section for details.
Exceptions
ExceptionCondition
ursaExceptionThrown if the string can not be parsed. See ursaExceptionErrorCode for the specific reason why the parsing failed.
Remarks
The value return by this method is an instance of one of the following classes derived from SecurIdToken:
See Also