Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticateResponse"/> class.
 /// </summary>
 /// <param name="clientData">The client data.</param>
 /// <param name="signatureData">The signature data.</param>
 /// <param name="keyHandle">The key handle.</param>
 public AuthenticateResponse(string clientData, string signatureData, string keyHandle)
 {
     ClientData = clientData;
     SignatureData = signatureData;
     KeyHandle = keyHandle;
     _clientDataRef = new ClientData(ClientData);
 }
        public void Setup()
        {
            StartedAuthentication startedAuthentication =
                new StartedAuthentication(TestConts.SERVER_CHALLENGE_SIGN_BASE64, TestConts.APP_ID_ENROLL,
                                          TestConts.KEY_HANDLE_BASE64);
            _authenticateResponse = new AuthenticateResponse(TestConts.CLIENT_DATA_AUTHENTICATE_BASE64,
                                                                                 TestConts.SIGN_RESPONSE_DATA_BASE64,
                                                                                 TestConts.KEY_HANDLE_BASE64);

            clientData = _authenticateResponse.GetClientData();
            clientData.CheckContent(AuthenticateTyp, startedAuthentication.Challenge, null);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterResponse"/> class.
 /// </summary>
 /// <param name="registrationData">The registration data.</param>
 /// <param name="clientData">The client data.</param>
 public RegisterResponse(String registrationData, String clientData)
 {
     RegistrationData = registrationData;
     ClientData       = clientData;
     _clientDataRef   = new ClientData(ClientData);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterResponse"/> class.
 /// </summary>
 /// <param name="registrationData">The registration data.</param>
 /// <param name="clientData">The client data.</param>
 public RegisterResponse(String registrationData, String clientData)
 {
     RegistrationData = registrationData;
     ClientData = clientData;
     _clientDataRef = new ClientData(ClientData);
 }