Tests a Defender token's response.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
DefenderResult TestDefenderToken(string tokenCommonName, string response, string challenge, string tokenSearchBase); 
Parameters 
- tokenCommonName  Common name of the token to test. 
- response  The token response. 
- challenge  The token challenge, not required for synchronous tokens. 
- tokenSearchBase  Optional parameter to specify the base container in which to search for tokens. 
Return value 
A valid call results in a DefenderResult. This class provides the following public properties:
- System.Boolean Success  Returns whether the test was successful. 
- System.String ErrorMessage  Returns the error message associated with the test. 
In the case of an error a Fault is generated.
The faultCode can be one of the following:
- ArgumentOutOfRange  One of the arguments is invalid, further details are contained in the faultstring. 
- UnknownFault  Any other error, further details may be included in the faultstring. 
 
    
Details of an assignment of a software token to a user. If the token was already assigned to the user then the AssignedToken.TokenCommonName contains a text message indicating that it was already assigned.
C# syntax
[DataContract]
public class AssignedToken
{
   [DataMember]
   public string UserCommonName { get; set; }
   [DataMember]
   public string TokenCommonName { get; set; }
   [DataMember]
   public string ActivationCode { get; set; }
} 
Properties 
- UserCommonName  Common name of the user to whom the token is assigned. 
- TokenCommonName  Common name of the assigned token. 
- ActivationCode  The activation code used to activate the token on the user's device. 
 
    
Details of an assignment of a token to a user. If the token was already assigned to this user then the AssignedToken.TokenCommonName will contain a text message indicating that it was already assigned.
C# syntax
[DataContract]
public class AssignedToken
{
   [DataMember]
   public string UserCommonName { get; set; }
   [DataMember]
   public string TokenCommonName { get; set; }
} 
Properties 
- UserCommonName  Common name of the user to whom the token is assigned. 
- TokenCommonName  Common name of the assigned token.