blob: d0439a8e3562e0ac16da8fe53ee657094e337a19 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/credentialmanager/authenticator_assertion_response.h"
namespace blink {
AuthenticatorAssertionResponse* AuthenticatorAssertionResponse::Create(
DOMArrayBuffer* client_data_json,
DOMArrayBuffer* authenticator_data,
DOMArrayBuffer* signature,
DOMArrayBuffer* user_handle) {
return MakeGarbageCollected<AuthenticatorAssertionResponse>(
client_data_json, authenticator_data, signature, user_handle);
}
AuthenticatorAssertionResponse::AuthenticatorAssertionResponse(
DOMArrayBuffer* client_data_json,
DOMArrayBuffer* authenticator_data,
DOMArrayBuffer* signature,
DOMArrayBuffer* user_handle)
: AuthenticatorResponse(client_data_json),
authenticator_data_(authenticator_data),
signature_(signature),
user_handle_(user_handle) {}
AuthenticatorAssertionResponse::~AuthenticatorAssertionResponse() = default;
void AuthenticatorAssertionResponse::Trace(blink::Visitor* visitor) {
visitor->Trace(authenticator_data_);
visitor->Trace(signature_);
visitor->Trace(user_handle_);
AuthenticatorResponse::Trace(visitor);
}
} // namespace blink