Files
ServerSync/lib/secretstorage/__pycache__/item.cpython-314.pyc

69 lines
12 KiB
Plaintext
Raw Normal View History

2026-02-19 00:55:27 +02:00
+
<00>;<3B>i<00><00><><00>Rt^RIHt^RIHtHtHt^RIHt^RI H
t
^RI H t ^RI HtHt^RIHtHtHtHtHt]
R,t!R R4tR
#) aQSecretStorage item contains a *secret*, some *attributes* and a
*label* visible to user. Editing all these properties and reading the
secret is possible only when the :doc:`collection <collection>` storing
the item is unlocked. The collection can be unlocked using collection's
:meth:`~secretstorage.collection.Collection.unlock` method.)<01>default_backend)<03>Cipher<65>
algorithms<EFBFBD>modes)<01>DBusConnection)<01> SS_PREFIX)<01>Session)<02>LockedException<6F>PromptDismissedException)<05>DBusAddressWrapper<65> exec_prompt<70> format_secret<65> open_session<6F>unlock_objects<74>Itemc<00>Pa<00>]tRt^toRtR$V3RlRlltV3RlRltV3RlRltV3R lR
ltR$V3R lR llt V3R lRlt
V3RlRlt V3RlRlt V3RlRlt V3RlRltV3RlRltV3RlRltR%V3RlRlltV3RlRltV3RlR ltV3R!lR"ltR#tVtR#)&rzRepresents a secret item.Nc<00>><<01>V^8<>dQhRS[RS[RS[R,RR/#)<06><00>
connection<EFBFBD> item_path<74>sessionN<6E>return)r<00>strr)<02>format<61> __classdict__s"<22><>9/tmp/pip-target-ugtna5l2/lib/python/secretstorage/item.py<70> __annotate__<5F>Item.__annotate__!s0<00><><00>%<25>%<25>><3E>%<25><1F>%<25>*1<>D<EFBFBD>.<2E>%<25>DH<44>%<25>c<08><><00>W n\V\V4VnVPP R4W0nWnR#)<02>LabelN)rr <00>
ITEM_IFACE<EFBFBD>_item<65> get_propertyrr)<04>selfrrrs&&&&r<00>__init__<5F> Item.__init__!s3<00><00>"<22><0E>'<27> <09>:<3A>z<EFBFBD>J<><04>
<EFBFBD> <0C>
<EFBFBD>
<EFBFBD><1F><1F><07>(<28><1E> <0C>$<24>rc<00>$<<01>V^8<>dQhRRRS[/#)r<00>otherrr<00><01>bool)rrs"<22>rrr)s<00><><00>1<>1<>,<2C>1<><14>1rc<08>x<00>\VP\4'gQhVPVP8H#<00>N)<03>
isinstancerr)r$r(s&&r<00>__eq__<5F> Item.__eq__)s,<00><00><19>%<25>/<2F>/<2F>3<EFBFBD>/<2F>/<2F>/<2F>/<2F><13>~<7E>~<7E><15><1F><1F>0<>0rc<00> <<01>V^8<>dQhRS[/#<00>rrr))rrs"<22>rrr-s<00><><00>7<>7<>4<EFBFBD>7rc <0C>J<00>\VPPR44#)zBReturns :const:`True` if item is locked, otherwise
:const:`False`.<2E>Locked)r*r"r#<00>r$s&r<00> is_locked<65>Item.is_locked-s<00><00><14>D<EFBFBD>J<EFBFBD>J<EFBFBD>+<2B>+<2B>H<EFBFBD>5<>6<>6rc<00><<01>V^8<>dQhRR/#<00>rrN<>)rrs"<22>rrr2s<00><><00>5<>5<>4<EFBFBD>5rc <0C>H<00>VP4'd \R4hR#)zQIf collection is locked, raises
:exc:`~secretstorage.exceptions.LockedException`.zItem is locked!N)r5r r4s&r<00>ensure_not_locked<65>Item.ensure_not_locked2s"<00><00> <10>><3E>><3E> <1B> <1B>!<21>"3<>4<> 4<> rc<00>4<<01>V^8<>dQhRS[R,RS[/#)r<00>timeoutNr)<02>floatr*)rrs"<22>rrr8s#<00><><00>R<01>R<01>e<EFBFBD>d<EFBFBD>l<EFBFBD>R<01>d<EFBFBD>Rrc <0C>H<00>\VPVP.VR7#)a#Requests unlocking the item. Usually, this means that the
whole collection containing this item will be unlocked.
Returns a boolean representing whether the prompt has been
dismissed; that means :const:`False` on successful unlocking
and :const:`True` if it has been dismissed.
:raises: ``TimeoutError`` if `timeout` (in seconds) passed
and the prompt was neither accepted nor dismissed.
.. versionadded:: 2.1.2
.. versionchanged:: 3.0
No longer accepts the ``callback`` argument.
.. versionchanged:: 3.5
Added ``timeout`` argument.
)r>)rrr)r$r>s&&r<00>unlock<63> Item.unlock8s<00><00>&<1E>d<EFBFBD>o<EFBFBD>o<EFBFBD><04><0E><0E>/?<3F><17>Q<>Qrc<00>6<<01>V^8<>dQhRS[S[S[3,/#r1<00><02>dictr)rrs"<22>rrrMs<00><><00><1B><1B><04>S<EFBFBD>#<23>X<EFBFBD><0E>rc <0C>N<00>VPPR4p\V4#)z%Returns item attributes (dictionary).<2E>
Attributes)r"r#rE)r$<00>attrss& r<00>get_attributes<65>Item.get_attributesMs <00><00><14>
<EFBFBD>
<EFBFBD>'<27>'<27> <0C>5<><05><13>E<EFBFBD>{<7B>rc<00>:<<01>V^8<>dQhRS[S[S[3,RR/#)r<00>
attributesrNrD)rrs"<22>rrrRs'<00><><00>C<01>C<01><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E>C<01>D<EFBFBD>Crc <0C>@<00>VPPRRV4R#)z2Sets item attributes to `attributes` (dictionary).rGza{ss}N)r"<00> set_property)r$rLs&&r<00>set_attributes<65>Item.set_attributesRs<00><00> <0C>
<EFBFBD>
<EFBFBD><1F><1F> <0C>g<EFBFBD>z<EFBFBD>Brc<00> <<01>V^8<>dQhRS[/#r1<00>r)rrs"<22>rrrVs<00><><00><15><15>3<EFBFBD>rc <0C>l<00>VPPR4p\V\4'gQhV#)z$Returns item label (unicode string).r )r"r#r-r<00>r$<00>labels& r<00> get_label<65>Item.get_labelVs.<00><00><14>
<EFBFBD>
<EFBFBD>'<27>'<27><07>0<><05><19>%<25><13>%<25>%<25>%<25>%<25><14> rc<00>$<<01>V^8<>dQhRS[RR/#)rrUrNrR)rrs"<22>rrr\s<00><><00>5<>5<>s<EFBFBD>5<>t<EFBFBD>5rc <0C>`<00>VP4VPPRRV4R#)zSets item label to `label`.r <00>sN)r;r"rNrTs&&r<00> set_label<65>Item.set_label\s$<00><00> <0C><1E><1E> <20> <0C>
<EFBFBD>
<EFBFBD><1F><1F><07><13>e<EFBFBD>4rc<00><<01>V^8<>dQhRR/#r8r9)rrs"<22>rrras<00><><00>D<01>D<01><04>Drc <0C><><00>VP4VPPRR4wpVR8wd.\VPV4wr#V'd \ R4hR#R#)zDeletes the item.<2E>Delete<74><00>/zPrompt dismissed.N)r;r"<00>callr rr
)r$<00>prompt<70> dismissed<65>_results& r<00>delete<74> Item.deleteasW<00><00> <0C><1E><1E> <20><16>*<2A>*<2A>/<2F>/<2F>(<28>B<EFBFBD>/<2F><07><06> <11>S<EFBFBD>=<3D>!,<2C>T<EFBFBD>_<EFBFBD>_<EFBFBD>f<EFBFBD>!E<> <1E>I<EFBFBD><18>.<2E>/B<>C<>C<><19> rc<00> <<01>V^8<>dQhRS[/#r1)<01>bytes)rrs"<22>rrrjs<00><><00>2<>2<>E<EFBFBD>2rc <0C><00>VP4VP'g\VP4VnVPP RRVPP 4wpVPP'g\V^,4#VPPfQh\P!VPP4p\V^,4p\V\P!V4\44P!4pV^,pVP#\V44VP%4,p\'V\4'gQhVRVR,)#)z!Returns item secret (bytestring).<2E> GetSecret<65>oN<6F><4E><EFBFBD><EFBFBD><EFBFBD>)r;rrrr"rb<00> object_path<74> encryptedri<00>aes_keyr<00>AESrr<00>CBCr<00> decryptor<6F>update<74>finalizer-)r$<00>secret<65>aes<65>aes_ivrs<00>encrypted_secret<65> padded_secrets& r<00>
get_secret<EFBFBD>Item.get_secretjs<00><00> <0C><1E><1E> <20><13>|<7C>|<7C>|<7C>'<27><04><0F><0F>8<>D<EFBFBD>L<EFBFBD><16>*<2A>*<2A>/<2F>/<2F>+<2B>s<EFBFBD>D<EFBFBD>L<EFBFBD>L<EFBFBD>4L<34>4L<34>M<><07><06><13>|<7C>|<7C>%<25>%<25>%<25><18><16><01><19>#<23> #<23><13>|<7C>|<7C>#<23>#<23>/<2F>/<2F>/<2F><18>n<EFBFBD>n<EFBFBD>T<EFBFBD>\<5C>\<5C>1<>1<>2<><03><16>v<EFBFBD>a<EFBFBD>y<EFBFBD>!<21><06><1A>3<EFBFBD><05> <09> <09>&<26> 1<>?<3F>3D<33>E<>O<>O<>Q<> <09>!<21>!<21>9<EFBFBD><18>!<21>(<28>(<28><15>/?<3F>)@<40>A<>I<EFBFBD>DV<44>DV<44>DX<44>X<> <0A><19>-<2D><15>/<2F>/<2F>/<2F>/<2F><1C>0<>}<7D>R<EFBFBD>0<>0<>1<>1rc<00> <<01>V^8<>dQhRS[/#r1rR)rrs"<22>rrr{s<00><><00><1E><1E><13>rc <0C><00>VP4VP'g\VP4VnVPP RRVPP 4wp\V^,4#)z-Returns content type of item secret (string).rkrl)r;rrrr"rbrnr)r$rvs& r<00>get_secret_content_type<70>Item.get_secret_content_type{sW<00><00> <0C><1E><1E> <20><13>|<7C>|<7C>|<7C>'<27><04><0F><0F>8<>D<EFBFBD>L<EFBFBD><16>*<2A>*<2A>/<2F>/<2F>+<2B>s<EFBFBD>D<EFBFBD>L<EFBFBD>L<EFBFBD>4L<34>4L<34>M<><07><06><12>6<EFBFBD>!<21>9<EFBFBD>~<7E>rc<00>*<<01>V^8<>dQhRS[RS[RR/#)rrv<00> content_typerN)rir)rrs"<22>rrr<00>s$<00><><00> :<3A> :<3A><15> :<3A>!$<24> :<3A>8<<3C> :rc <0C><><00>VP4VP'g\VP4Vn\ VPW4pVP
P RRV4R#)zSets item secret to `secret`. If `content_type` is given,
also sets the content type of the secret (``text/plain`` by
default).<2E> SetSecretz(oayays)N)r;rrrr r"rb)r$rvr<><00>_secrets&&& r<00>
set_secret<EFBFBD>Item.set_secret<65>sM<00><00>
<0A><1E><1E> <20><13>|<7C>|<7C>|<7C>'<27><04><0F><0F>8<>D<EFBFBD>L<EFBFBD><1F><04> <0C> <0C>f<EFBFBD>C<><07> <0C>
<EFBFBD>
<EFBFBD><0F><0F> <0B>Z<EFBFBD><17>9rc<00> <<01>V^8<>dQhRS[/#r1<00><01>int)rrs"<22>rrr<00>s<00><><00><17><17>S<EFBFBD>rc <0C>l<00>VPPR4p\V\4'gQhV#)zhReturns UNIX timestamp (integer) representing the time
when the item was created.
.. versionadded:: 1.1<EFBFBD>Created<65>r"r#r-r<>)r$<00>createds& r<00> get_created<65>Item.get_created<65>s0<00><00>
<17>*<2A>*<2A>)<29>)<29>)<29>4<><07><19>'<27>3<EFBFBD>'<27>'<27>'<27>'<27><16>rc<00> <<01>V^8<>dQhRS[/#r1r<>)rrs"<22>rrr<00>s<00><><00><18><18>c<EFBFBD>rc <0C>l<00>VPPR4p\V\4'gQhV#)zWReturns UNIX timestamp (integer) representing the time
when the item was last modified.<2E>Modifiedr<64>)r$<00>modifieds& r<00> get_modified<65>Item.get_modified<65>s0<00><00><18>:<3A>:<3A>*<2A>*<2A>:<3A>6<><08><19>(<28>C<EFBFBD>(<28>(<28>(<28>(<28><17>rc<00> <<01>V^8<>dQhRS[/#r1rR)rrs"<22>rrr<00>s<00><><00>F<01>F<01>#<23>Frc<08>H<00>RVP4: RVP: R2#)z<Item z path=<3D>>)rVrr4s&r<00>__repr__<5F> Item.__repr__<5F>s$<00><00><17><04><0E><0E>(<28>+<2B>6<EFBFBD>$<24>.<2E>.<2E>1C<31>1<EFBFBD>E<>Er)r"rrrr,)z
text/plain)<17>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__r%r.r5r;rArIrOrVr[rfr{rr<>r<>r<>r<><00>__static_attributes__<5F>__classdictcell__)rs@rrrs<><00><><00><00>#<23>%<25>%<25>1<>1<>7<>7<>
5<>5<> R<01>R<01>*<1B><1B>
C<01>C<01><15><15> 5<>5<>
D<01>D<01>2<>2<>"<1E><1E> :<3A> :<3A><17><17><18><18>F<01>FrN)r<><00>cryptography.hazmat.backendsr<00>&cryptography.hazmat.primitives.ciphersrrr<00>jeepney.io.blockingr<00>secretstorage.definesr<00>secretstorage.dhcryptor<00>secretstorage.exceptionsr r
<00>secretstorage.utilr r r rrr!rr9rr<00><module>r<>sE<00><01> ?<3F> 9<>L<>L<>.<2E>+<2B>*<2A>N<><02><02><17><16> <1F>
<EFBFBD>AF<01>AFr