-
Notifications
You must be signed in to change notification settings - Fork 0
/
PublicKeyCredentialRequestOptions.cljs
170 lines (121 loc) · 6.21 KB
/
PublicKeyCredentialRequestOptions.cljs
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
(ns web.auth.PublicKeyCredentialRequestOptions
"The PublicKeyCredentialRequestOptions dictionary of the Web Authentication
holds the options passed to `navigator.credentials.get()` in
to fetch a given `web.auth.PublicKeyCredential`."
(:refer-clojure :exclude []))
(defn challenge
"Property.
The challenge property of the `web.auth.PublicKeyCredentialRequestOptions`
is a `web.typed.BufferSource` used as a cryptographic challenge.
is randomly generated then sent from the relying party's server.
value (among other client data) will be signed by the authenticator's
key and produce `AuthenticatorAssertionResponse.signature` which
be sent back to the server as part of the response.
`challenge = publicKeyCredentialRequestOptions.challenge`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/challenge`"
[this]
(-> this (.-challenge)))
(defn set-challenge!
"Property.
The challenge property of the `web.auth.PublicKeyCredentialRequestOptions`
is a `web.typed.BufferSource` used as a cryptographic challenge.
is randomly generated then sent from the relying party's server.
value (among other client data) will be signed by the authenticator's
key and produce `AuthenticatorAssertionResponse.signature` which
be sent back to the server as part of the response.
`challenge = publicKeyCredentialRequestOptions.challenge`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/challenge`"
[this val]
(aset this "challenge" val))
(defn timeout
"Property.
The timeout property, of the `web.auth.PublicKeyCredentialRequestOptions`
represents an hint, given in milliseconds, for the time the script
willing to wait for the completion of the retrieval operation.
`timeout = publicKeyCredentialRequestOptions.timeout`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/timeout`"
[this]
(-> this (.-timeout)))
(defn set-timeout!
"Property.
The timeout property, of the `web.auth.PublicKeyCredentialRequestOptions`
represents an hint, given in milliseconds, for the time the script
willing to wait for the completion of the retrieval operation.
`timeout = publicKeyCredentialRequestOptions.timeout`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/timeout`"
[this val]
(aset this "timeout" val))
(defn rp-id
"Property.
The rpId property, of the `web.auth.PublicKeyCredentialRequestOptions`
is an optional property which indicates the relying party's identifier
a `web.USVString`. Its value can only be a suffix of the current
domain. For example, if you are browsing on foo.example.com,
rpId value may be \\\"example.com\\\" but not \\\"bar.org\\\" or \\\"baz.example.com\\\".
`rpId = publicKeyCredentialRequestOptions.rpId`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/rpId`"
[this]
(-> this (.-rpId)))
(defn set-rp-id!
"Property.
The rpId property, of the `web.auth.PublicKeyCredentialRequestOptions`
is an optional property which indicates the relying party's identifier
a `web.USVString`. Its value can only be a suffix of the current
domain. For example, if you are browsing on foo.example.com,
rpId value may be \\\"example.com\\\" but not \\\"bar.org\\\" or \\\"baz.example.com\\\".
`rpId = publicKeyCredentialRequestOptions.rpId`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/rpId`"
[this val]
(aset this "rpId" val))
(defn allow-credentials
"Property.
allowCredentials is an optional property of the `web.auth.PublicKeyCredentialRequestOptions`
which indicates the existing credentials acceptable for retrieval.
is an `js.Array` of credential descriptors.
`allowCredentials = publicKeyCredentialRequestOptions.allowCredentials`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/allowCredentials`"
[this]
(-> this (.-allowCredentials)))
(defn set-allow-credentials!
"Property.
allowCredentials is an optional property of the `web.auth.PublicKeyCredentialRequestOptions`
which indicates the existing credentials acceptable for retrieval.
is an `js.Array` of credential descriptors.
`allowCredentials = publicKeyCredentialRequestOptions.allowCredentials`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/allowCredentials`"
[this val]
(aset this "allowCredentials" val))
(defn user-verification
"Property.
userVerification is an optional property of the `web.auth.PublicKeyCredentialRequestOptions`.
is a string which indicates how the user verification should
part of the authentication process.
`userVerification = publicKeyCredentialRequestOptions.userVerification`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/userVerification`"
[this]
(-> this (.-userVerification)))
(defn set-user-verification!
"Property.
userVerification is an optional property of the `web.auth.PublicKeyCredentialRequestOptions`.
is a string which indicates how the user verification should
part of the authentication process.
`userVerification = publicKeyCredentialRequestOptions.userVerification`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/userVerification`"
[this val]
(aset this "userVerification" val))
(defn extensions
"Property.
extensions, an optional property of the `web.auth.PublicKeyCredentialRequestOptions`
is an object providing the client extensions and their input
`extensions = publicKeyCredentialRequestOptions.extensions`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/extensions`"
[this]
(-> this (.-extensions)))
(defn set-extensions!
"Property.
extensions, an optional property of the `web.auth.PublicKeyCredentialRequestOptions`
is an object providing the client extensions and their input
`extensions = publicKeyCredentialRequestOptions.extensions`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions/extensions`"
[this val]
(aset this "extensions" val))