1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
// Copyright 2019 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 "device/fido/fido_authenticator.h"
#include <utility>
#include "base/callback.h"
#include "base/notreached.h"
#include "device/fido/fido_constants.h"
namespace device {
void FidoAuthenticator::GetNextAssertion(
FidoAuthenticator::GetAssertionCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::GetTouch(base::OnceCallback<void()> callback) {}
void FidoAuthenticator::GetPinRetries(
FidoAuthenticator::GetRetriesCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::GetPINToken(
std::string pin,
const std::vector<pin::Permissions>& permissions,
base::Optional<std::string> rp_id,
FidoAuthenticator::GetTokenCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::GetUvRetries(
FidoAuthenticator::GetRetriesCallback callback) {
NOTREACHED();
}
bool FidoAuthenticator::CanGetUvToken() {
return false;
}
void FidoAuthenticator::GetUvToken(
base::Optional<std::string> rp_id,
FidoAuthenticator::GetTokenCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::SetPIN(const std::string& pin,
FidoAuthenticator::SetPINCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::ChangePIN(const std::string& old_pin,
const std::string& new_pin,
SetPINCallback callback) {
NOTREACHED();
}
FidoAuthenticator::MakeCredentialPINDisposition
FidoAuthenticator::WillNeedPINToMakeCredential(
const CtapMakeCredentialRequest& request,
const FidoRequestHandlerBase::Observer* observer) {
return MakeCredentialPINDisposition::kNoPIN;
}
FidoAuthenticator::GetAssertionPINDisposition
FidoAuthenticator::WillNeedPINToGetAssertion(
const CtapGetAssertionRequest& request,
const FidoRequestHandlerBase::Observer* observer) {
return GetAssertionPINDisposition::kNoPIN;
}
void FidoAuthenticator::GetCredentialsMetadata(
base::span<const uint8_t> pin_token,
GetCredentialsMetadataCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::EnumerateCredentials(
base::span<const uint8_t> pin_token,
EnumerateCredentialsCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::DeleteCredential(
base::span<const uint8_t> pin_token,
const PublicKeyCredentialDescriptor& credential_id,
DeleteCredentialCallback callback) {
NOTREACHED();
}
void FidoAuthenticator::GetModality(BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::GetSensorInfo(BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::BioEnrollFingerprint(
const pin::TokenResponse&,
base::Optional<std::vector<uint8_t>> template_id,
BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::BioEnrollCancel(BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::BioEnrollEnumerate(const pin::TokenResponse&,
BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::BioEnrollRename(const pin::TokenResponse&,
std::vector<uint8_t>,
std::string,
BioEnrollmentCallback) {
NOTREACHED();
}
void FidoAuthenticator::BioEnrollDelete(const pin::TokenResponse&,
std::vector<uint8_t>,
BioEnrollmentCallback) {
NOTREACHED();
}
base::Optional<base::span<const int32_t>> FidoAuthenticator::GetAlgorithms() {
return base::nullopt;
}
void FidoAuthenticator::Reset(ResetCallback callback) {
std::move(callback).Run(CtapDeviceResponseCode::kCtap1ErrInvalidCommand,
base::nullopt);
}
ProtocolVersion FidoAuthenticator::SupportedProtocol() const {
return ProtocolVersion::kUnknown;
}
bool FidoAuthenticator::SupportsCredProtectExtension() const {
return Options() && Options()->supports_cred_protect;
}
bool FidoAuthenticator::SupportsHMACSecretExtension() const {
return false;
}
} // namespace device
|