Click or drag to resize

SecurIdTokenValidateDeviceIDForDecryption Method

Checks if the supplied Device ID is valid for use in decrypting this token, and removes any invalid characters from the Device ID.

Namespace:  SamoyedSoftware.ursa
Assembly:  SamoyedSoftware.ursa (in SamoyedSoftware.ursa.dll) Version: 0.2.0
Syntax
protected string ValidateDeviceIDForDecryption(
	string deviceId
)

Parameters

deviceId
Type: SystemString
A string containing a Device ID (Serial Number)

Return Value

Type: String
A copy of the Device ID will all invalid characters removed, if a Device ID is required for decryption. Returns an empty string if a Device ID is not required for decryption.
Exceptions
ExceptionCondition
ursaExceptionThrown with a ErrorCode value of ursaErrorDeviceIdRequired if a Device ID is required for decryption and deviceId is null, empty, or whitespace.
See Also