Extend security masked data protocol
This commit is contained in:
parent
f5675b640d
commit
df9062475c
|
@ -11,6 +11,18 @@
|
||||||
(deftype MaskedData [data]
|
(deftype MaskedData [data]
|
||||||
Object
|
Object
|
||||||
(toString [_] "******")
|
(toString [_] "******")
|
||||||
|
|
||||||
|
ICounted
|
||||||
|
(-count [^js this]
|
||||||
|
(count (.-data this)))
|
||||||
|
|
||||||
|
IEquiv
|
||||||
|
(-equiv [this other]
|
||||||
|
(if (instance? MaskedData other)
|
||||||
|
(= (unmask this)
|
||||||
|
(unmask other))
|
||||||
|
false))
|
||||||
|
|
||||||
Unmaskable
|
Unmaskable
|
||||||
(unmask [^js this]
|
(unmask [^js this]
|
||||||
(.-data this)))
|
(.-data this)))
|
||||||
|
|
Loading…
Reference in New Issue