Namespace: Microsoft.Clm
Assembly: Microsoft.Clm.Common (in microsoft.clm.common.dll)
Usage
Visual Basic |
---|
Dim instance As ISecretProvider Dim secrets As String() Dim request As Request Dim throwException As Boolean Dim returnValue As Boolean returnValue = instance.ValidateUserSecrets(secrets, request, throwException) |
Syntax
Visual Basic |
---|
Function ValidateUserSecrets ( _ secrets As String(), _ request As Request, _ throwException As Boolean _ ) As Boolean |
C# |
---|
bool ValidateUserSecrets ( string[] secrets, Request request, bool throwException ) |
C++ |
---|
bool ValidateUserSecrets ( array<String^>^ secrets, Request^ request, bool throwException ) |
J# |
---|
boolean ValidateUserSecrets ( String[] secrets, Request request, boolean throwException ) |
JScript |
---|
function ValidateUserSecrets ( secrets : String[], request : Request, throwException : boolean ) : boolean |
Parameters
- secrets
-
An array of String objects that contain the one-time passwords to be validated. This array can be retrieved by calling the GetSecrets method.
- request
-
A Request object that describes a FIM CM request.
- throwException
-
If the method should throw an exception if the validation fails, set to true; otherwise, false.
Return Value
true if the one-time passwords pass validation; otherwise, false.Remarks
This method validates the one-time passwords against information in the provided Request object, and performs the following validation tests:
-
Checks the number of one-time password matches.
-
Performs CRC validation of the one-time passwords.
-
Checks the hash matches of the one-time passwords.
-
Verifies that the XML document that contains the one-time passwords has not been tampered with.
-
Checks that the one-time passwords match.
-
Checks that the one-time passwords have not expired.