-
Notifications
You must be signed in to change notification settings - Fork 0
/
Credential.cljs
81 lines (56 loc) · 2.18 KB
/
Credential.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
(ns web.credential.Credential
"The Credential interface of the the Credential Management API
information about an entity as a prerequisite to a trust decision."
(:refer-clojure :exclude [type name]))
(defn id
"Property.
The id property of the `web.credential.Credential` interface
a `web.dom.DOMString` containing the credential's identifier.
might be any one of a GUID, username, or email address.
`var id = Credential.id;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/id`"
[this]
(-> this (.-id)))
(defn set-id!
"Property.
The id property of the `web.credential.Credential` interface
a `web.dom.DOMString` containing the credential's identifier.
might be any one of a GUID, username, or email address.
`var id = Credential.id;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/id`"
[this val]
(aset this "id" val))
(defn type
"Property.
The type property of the `web.credential.Credential` interface
a `web.dom.DOMString` containing the credential's type. Valid
are password, federated and public-key.
`var credType = Credential.type;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/type`"
[this]
(-> this (.-type)))
(defn set-type!
"Property.
The type property of the `web.credential.Credential` interface
a `web.dom.DOMString` containing the credential's type. Valid
are password, federated and public-key.
`var credType = Credential.type;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/type`"
[this val]
(aset this "type" val))
(defn name
"Property.
The name property of the `web.credential.Credential` interface
a `web.dom.DOMString`, containing the name associated with a
`var credName = Credential.name;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/name`"
[this]
(-> this (.-name)))
(defn set-name!
"Property.
The name property of the `web.credential.Credential` interface
a `web.dom.DOMString`, containing the name associated with a
`var credName = Credential.name;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/Credential/name`"
[this val]
(aset this "name" val))