Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
engedy
2017/07/13 11:33:54
nit: Let's make this 2017 at least for `actual` ne
kpaulhamus
2017/07/13 16:00:53
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef AuthenticatorAssertionResponse_h | |
| 6 #define AuthenticatorAssertionResponse_h | |
| 7 | |
| 8 #include "core/dom/DOMArrayBuffer.h" | |
| 9 #include "modules/ModulesExport.h" | |
| 10 #include "modules/webauth/AuthenticatorResponse.h" | |
| 11 #include "platform/bindings/ScriptWrappable.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class MODULES_EXPORT AuthenticatorAssertionResponse final | |
| 16 : public AuthenticatorResponse { | |
| 17 DEFINE_WRAPPERTYPEINFO(); | |
| 18 | |
| 19 public: | |
| 20 static AuthenticatorAssertionResponse* Create( | |
| 21 DOMArrayBuffer* client_data_json, | |
| 22 DOMArrayBuffer* authenticator_data, | |
| 23 DOMArrayBuffer* signature); | |
| 24 | |
| 25 virtual ~AuthenticatorAssertionResponse(); | |
| 26 | |
| 27 DOMArrayBuffer* authenticatorData() const { | |
| 28 return authenticator_data_.Get(); | |
| 29 } | |
| 30 | |
| 31 DOMArrayBuffer* signature() const { return signature_.Get(); } | |
| 32 | |
| 33 DECLARE_VIRTUAL_TRACE(); | |
| 34 | |
| 35 private: | |
| 36 explicit AuthenticatorAssertionResponse(DOMArrayBuffer* client_data_json, | |
| 37 DOMArrayBuffer* authenticator_data, | |
| 38 DOMArrayBuffer* signature); | |
| 39 const Member<DOMArrayBuffer> authenticator_data_; | |
| 40 const Member<DOMArrayBuffer> signature_; | |
| 41 }; | |
| 42 | |
| 43 } // namespace blink | |
| 44 | |
| 45 #endif // AuthenticatorAssertionResponse_h | |
| OLD | NEW |