winrt-Windows.Security.Credentials 3.2.1__cp314-cp314-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,227 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+ from abc import abstractmethod
10
+
11
+ import winrt._winrt
12
+ import winrt.system
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.security.cryptography.core as windows_security_cryptography_core
16
+ import winrt.windows.storage.streams as windows_storage_streams
17
+ import winrt.windows.system as windows_system
18
+
19
+ from winrt.windows.security.credentials import KeyCredentialAttestationStatus, KeyCredentialCreationOption, KeyCredentialStatus, WebAccountPictureSize, WebAccountState
20
+
21
+ Self = typing.TypeVar('Self')
22
+
23
+ @typing.final
24
+ class KeyCredential(winrt.system.Object):
25
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.KeyCredentialAttestationResult> Windows.Security.Credentials.KeyCredential::GetAttestationAsync()
26
+ def get_attestation_async(self) -> windows_foundation.IAsyncOperation[KeyCredentialAttestationResult]: ...
27
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.KeyCredentialOperationResult> Windows.Security.Credentials.KeyCredential::RequestSignAsync(Windows.Storage.Streams.IBuffer)
28
+ def request_sign_async(self, data: winrt.system.Buffer, /) -> windows_foundation.IAsyncOperation[KeyCredentialOperationResult]: ...
29
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.KeyCredential::RetrievePublicKey(Windows.Security.Cryptography.Core.CryptographicPublicKeyBlobType)
30
+ def retrieve_public_key_with_blob_type(self, blob_type: windows_security_cryptography_core.CryptographicPublicKeyBlobType, /) -> winrt.system.Buffer: ...
31
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.KeyCredential::RetrievePublicKey()
32
+ def retrieve_public_key_with_default_blob_type(self) -> winrt.system.Buffer: ...
33
+ # System.String Windows.Security.Credentials.KeyCredential::get_Name()
34
+ @_property
35
+ def name(self) -> str: ...
36
+
37
+ @typing.final
38
+ class KeyCredentialAttestationResult(winrt.system.Object):
39
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.KeyCredentialAttestationResult::get_AttestationBuffer()
40
+ @_property
41
+ def attestation_buffer(self) -> winrt.system.Buffer: ...
42
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.KeyCredentialAttestationResult::get_CertificateChainBuffer()
43
+ @_property
44
+ def certificate_chain_buffer(self) -> winrt.system.Buffer: ...
45
+ # Windows.Security.Credentials.KeyCredentialAttestationStatus Windows.Security.Credentials.KeyCredentialAttestationResult::get_Status()
46
+ @_property
47
+ def status(self) -> KeyCredentialAttestationStatus: ...
48
+
49
+ @typing.final
50
+ class KeyCredentialManager_Static(winrt._winrt.IInspectable_Static):
51
+ # Windows.Foundation.IAsyncAction Windows.Security.Credentials.KeyCredentialManager::DeleteAsync(System.String)
52
+ def delete_async(cls, name: str, /) -> windows_foundation.IAsyncAction: ...
53
+ # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.Security.Credentials.KeyCredentialManager::IsSupportedAsync()
54
+ def is_supported_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
55
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.KeyCredentialRetrievalResult> Windows.Security.Credentials.KeyCredentialManager::OpenAsync(System.String)
56
+ def open_async(cls, name: str, /) -> windows_foundation.IAsyncOperation[KeyCredentialRetrievalResult]: ...
57
+ # Windows.Foundation.IAsyncAction Windows.Security.Credentials.KeyCredentialManager::RenewAttestationAsync()
58
+ def renew_attestation_async(cls) -> windows_foundation.IAsyncAction: ...
59
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Credentials.KeyCredentialRetrievalResult> Windows.Security.Credentials.KeyCredentialManager::RequestCreateAsync(System.String,Windows.Security.Credentials.KeyCredentialCreationOption)
60
+ def request_create_async(cls, name: str, option: KeyCredentialCreationOption, /) -> windows_foundation.IAsyncOperation[KeyCredentialRetrievalResult]: ...
61
+
62
+ @typing.final
63
+ class KeyCredentialManager(winrt.system.Object, metaclass=KeyCredentialManager_Static):
64
+ pass
65
+
66
+ @typing.final
67
+ class KeyCredentialOperationResult(winrt.system.Object):
68
+ # Windows.Storage.Streams.IBuffer Windows.Security.Credentials.KeyCredentialOperationResult::get_Result()
69
+ @_property
70
+ def result(self) -> winrt.system.Buffer: ...
71
+ # Windows.Security.Credentials.KeyCredentialStatus Windows.Security.Credentials.KeyCredentialOperationResult::get_Status()
72
+ @_property
73
+ def status(self) -> KeyCredentialStatus: ...
74
+
75
+ @typing.final
76
+ class KeyCredentialRetrievalResult(winrt.system.Object):
77
+ # Windows.Security.Credentials.KeyCredential Windows.Security.Credentials.KeyCredentialRetrievalResult::get_Credential()
78
+ @_property
79
+ def credential(self) -> KeyCredential: ...
80
+ # Windows.Security.Credentials.KeyCredentialStatus Windows.Security.Credentials.KeyCredentialRetrievalResult::get_Status()
81
+ @_property
82
+ def status(self) -> KeyCredentialStatus: ...
83
+
84
+ @typing.final
85
+ class PasswordCredential(winrt.system.Object):
86
+ @typing.overload
87
+ def __new__(cls: typing.Type[Self], resource: str, user_name: str, password: str) -> Self: ...
88
+ @typing.overload
89
+ def __new__(cls: typing.Type[Self]) -> Self: ...
90
+ # System.Void Windows.Security.Credentials.PasswordCredential::RetrievePassword()
91
+ def retrieve_password(self) -> None: ...
92
+ # System.String Windows.Security.Credentials.PasswordCredential::get_UserName()
93
+ @_property
94
+ def user_name(self) -> str: ...
95
+ # System.Void Windows.Security.Credentials.PasswordCredential::put_UserName(System.String)
96
+ @user_name.setter
97
+ def user_name(self, value: str) -> None: ...
98
+ # System.String Windows.Security.Credentials.PasswordCredential::get_Resource()
99
+ @_property
100
+ def resource(self) -> str: ...
101
+ # System.Void Windows.Security.Credentials.PasswordCredential::put_Resource(System.String)
102
+ @resource.setter
103
+ def resource(self, value: str) -> None: ...
104
+ # System.String Windows.Security.Credentials.PasswordCredential::get_Password()
105
+ @_property
106
+ def password(self) -> str: ...
107
+ # System.Void Windows.Security.Credentials.PasswordCredential::put_Password(System.String)
108
+ @password.setter
109
+ def password(self, value: str) -> None: ...
110
+ # Windows.Foundation.Collections.IPropertySet Windows.Security.Credentials.PasswordCredential::get_Properties()
111
+ @_property
112
+ def properties(self) -> windows_foundation_collections.IPropertySet: ...
113
+
114
+ @typing.final
115
+ class PasswordCredentialPropertyStore(winrt.system.Object, windows_foundation_collections.IPropertySet, windows_foundation_collections.IObservableMap[str, winrt.system.Object], winrt._winrt.MutableMapping[str, winrt.system.Object]):
116
+ def __len__(self) -> int: ...
117
+ def __iter__(self) -> typing.Iterator[str]: ...
118
+ def __contains__(self, key: object) -> bool: ...
119
+ def __getitem__(self, key: str) -> winrt.system.Object: ...
120
+ def __setitem__(self, key: str, value: winrt.system.Object) -> None: ...
121
+ def __delitem__(self, key: str) -> None: ...
122
+ def __new__(cls: typing.Type[Self]) -> Self: ...
123
+ # System.Void Windows.Security.Credentials.PasswordCredentialPropertyStore::Clear()
124
+ def clear(self) -> None: ...
125
+ # Windows.Foundation.Collections.IIterator`1<Windows.Foundation.Collections.IKeyValuePair`2<System.String,System.Object>> Windows.Security.Credentials.PasswordCredentialPropertyStore::First()
126
+ def first(self) -> windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, winrt.system.Object]]: ...
127
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.Object> Windows.Security.Credentials.PasswordCredentialPropertyStore::GetView()
128
+ def get_view(self) -> typing.Mapping[str, winrt.system.Object]: ...
129
+ # System.Boolean Windows.Security.Credentials.PasswordCredentialPropertyStore::HasKey(System.String)
130
+ def has_key(self, key: str, /) -> bool: ...
131
+ # System.Boolean Windows.Security.Credentials.PasswordCredentialPropertyStore::Insert(System.String,System.Object)
132
+ def insert(self, key: str, value: winrt.system.Object, /) -> bool: ...
133
+ # System.Object Windows.Security.Credentials.PasswordCredentialPropertyStore::Lookup(System.String)
134
+ def lookup(self, key: str, /) -> winrt.system.Object: ...
135
+ # System.Void Windows.Security.Credentials.PasswordCredentialPropertyStore::Remove(System.String)
136
+ def remove(self, key: str, /) -> None: ...
137
+ # Windows.Foundation.EventRegistrationToken Windows.Security.Credentials.PasswordCredentialPropertyStore::add_MapChanged(Windows.Foundation.Collections.MapChangedEventHandler`2<System.String,System.Object>)
138
+ def add_map_changed(self, vhnd: windows_foundation_collections.MapChangedEventHandler[str, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
139
+ # System.Void Windows.Security.Credentials.PasswordCredentialPropertyStore::remove_MapChanged(Windows.Foundation.EventRegistrationToken)
140
+ def remove_map_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
141
+ # System.UInt32 Windows.Security.Credentials.PasswordCredentialPropertyStore::get_Size()
142
+ @_property
143
+ def size(self) -> winrt.system.UInt32: ...
144
+
145
+ @typing.final
146
+ class PasswordVault(winrt.system.Object):
147
+ def __new__(cls: typing.Type[Self]) -> Self: ...
148
+ # System.Void Windows.Security.Credentials.PasswordVault::Add(Windows.Security.Credentials.PasswordCredential)
149
+ def add(self, credential: PasswordCredential, /) -> None: ...
150
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Security.Credentials.PasswordCredential> Windows.Security.Credentials.PasswordVault::FindAllByResource(System.String)
151
+ def find_all_by_resource(self, resource: str, /) -> typing.Sequence[PasswordCredential]: ...
152
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Security.Credentials.PasswordCredential> Windows.Security.Credentials.PasswordVault::FindAllByUserName(System.String)
153
+ def find_all_by_user_name(self, user_name: str, /) -> typing.Sequence[PasswordCredential]: ...
154
+ # System.Void Windows.Security.Credentials.PasswordVault::Remove(Windows.Security.Credentials.PasswordCredential)
155
+ def remove(self, credential: PasswordCredential, /) -> None: ...
156
+ # Windows.Security.Credentials.PasswordCredential Windows.Security.Credentials.PasswordVault::Retrieve(System.String,System.String)
157
+ def retrieve(self, resource: str, user_name: str, /) -> PasswordCredential: ...
158
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Security.Credentials.PasswordCredential> Windows.Security.Credentials.PasswordVault::RetrieveAll()
159
+ def retrieve_all(self) -> typing.Sequence[PasswordCredential]: ...
160
+
161
+ @typing.final
162
+ class WebAccount(winrt.system.Object, IWebAccount):
163
+ def __new__(cls: typing.Type[Self], web_account_provider: WebAccountProvider, user_name: str, state: WebAccountState) -> Self: ...
164
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IRandomAccessStream> Windows.Security.Credentials.WebAccount::GetPictureAsync(Windows.Security.Credentials.WebAccountPictureSize)
165
+ def get_picture_async(self, desized_size: WebAccountPictureSize, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IRandomAccessStream]: ...
166
+ # Windows.Foundation.IAsyncAction Windows.Security.Credentials.WebAccount::SignOutAsync()
167
+ def sign_out_async(self) -> windows_foundation.IAsyncAction: ...
168
+ # Windows.Foundation.IAsyncAction Windows.Security.Credentials.WebAccount::SignOutAsync(System.String)
169
+ def sign_out_with_client_id_async(self, client_id: str, /) -> windows_foundation.IAsyncAction: ...
170
+ # Windows.Security.Credentials.WebAccountState Windows.Security.Credentials.WebAccount::get_State()
171
+ @_property
172
+ def state(self) -> WebAccountState: ...
173
+ # System.String Windows.Security.Credentials.WebAccount::get_UserName()
174
+ @_property
175
+ def user_name(self) -> str: ...
176
+ # Windows.Security.Credentials.WebAccountProvider Windows.Security.Credentials.WebAccount::get_WebAccountProvider()
177
+ @_property
178
+ def web_account_provider(self) -> WebAccountProvider: ...
179
+ # System.String Windows.Security.Credentials.WebAccount::get_Id()
180
+ @_property
181
+ def id(self) -> str: ...
182
+ # Windows.Foundation.Collections.IMapView`2<System.String,System.String> Windows.Security.Credentials.WebAccount::get_Properties()
183
+ @_property
184
+ def properties(self) -> typing.Mapping[str, str]: ...
185
+
186
+ @typing.final
187
+ class WebAccountProvider(winrt.system.Object):
188
+ def __new__(cls: typing.Type[Self], id: str, display_name: str, icon_uri: windows_foundation.Uri) -> Self: ...
189
+ # System.String Windows.Security.Credentials.WebAccountProvider::get_DisplayName()
190
+ @_property
191
+ def display_name(self) -> str: ...
192
+ # Windows.Foundation.Uri Windows.Security.Credentials.WebAccountProvider::get_IconUri()
193
+ @_property
194
+ def icon_uri(self) -> windows_foundation.Uri: ...
195
+ # System.String Windows.Security.Credentials.WebAccountProvider::get_Id()
196
+ @_property
197
+ def id(self) -> str: ...
198
+ # System.String Windows.Security.Credentials.WebAccountProvider::get_Authority()
199
+ @_property
200
+ def authority(self) -> str: ...
201
+ # System.String Windows.Security.Credentials.WebAccountProvider::get_DisplayPurpose()
202
+ @_property
203
+ def display_purpose(self) -> str: ...
204
+ # Windows.System.User Windows.Security.Credentials.WebAccountProvider::get_User()
205
+ @_property
206
+ def user(self) -> windows_system.User: ...
207
+ # System.Boolean Windows.Security.Credentials.WebAccountProvider::get_IsSystemProvider()
208
+ @_property
209
+ def is_system_provider(self) -> bool: ...
210
+
211
+ @typing.final
212
+ class _IWebAccount: ...
213
+
214
+ class IWebAccount(winrt._winrt.IInspectable):
215
+ # Windows.Security.Credentials.WebAccountState Windows.Security.Credentials.IWebAccount::get_State()
216
+ @_property
217
+ @abstractmethod
218
+ def state(self) -> WebAccountState: ...
219
+ # System.String Windows.Security.Credentials.IWebAccount::get_UserName()
220
+ @_property
221
+ @abstractmethod
222
+ def user_name(self) -> str: ...
223
+ # Windows.Security.Credentials.WebAccountProvider Windows.Security.Credentials.IWebAccount::get_WebAccountProvider()
224
+ @_property
225
+ @abstractmethod
226
+ def web_account_provider(self) -> WebAccountProvider: ...
227
+
@@ -0,0 +1,71 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+
5
+ import winrt.runtime._internals
6
+ import winrt.system
7
+ from winrt._winrt_windows_security_credentials import (
8
+ KeyCredential,
9
+ KeyCredentialAttestationResult,
10
+ KeyCredentialManager,
11
+ KeyCredentialOperationResult,
12
+ KeyCredentialRetrievalResult,
13
+ PasswordCredential,
14
+ PasswordCredentialPropertyStore,
15
+ PasswordVault,
16
+ WebAccount,
17
+ WebAccountProvider,
18
+ _IWebAccount,
19
+ IWebAccount,
20
+ )
21
+
22
+ __all__ = [
23
+ "KeyCredentialAttestationStatus",
24
+ "KeyCredentialCreationOption",
25
+ "KeyCredentialStatus",
26
+ "WebAccountPictureSize",
27
+ "WebAccountState",
28
+ "KeyCredential",
29
+ "KeyCredentialAttestationResult",
30
+ "KeyCredentialManager",
31
+ "KeyCredentialOperationResult",
32
+ "KeyCredentialRetrievalResult",
33
+ "PasswordCredential",
34
+ "PasswordCredentialPropertyStore",
35
+ "PasswordVault",
36
+ "WebAccount",
37
+ "WebAccountProvider",
38
+ "IWebAccount",
39
+ ]
40
+
41
+ class KeyCredentialAttestationStatus(enum.IntEnum):
42
+ SUCCESS = 0
43
+ UNKNOWN_ERROR = 1
44
+ NOT_SUPPORTED = 2
45
+ TEMPORARY_FAILURE = 3
46
+
47
+ class KeyCredentialCreationOption(enum.IntEnum):
48
+ REPLACE_EXISTING = 0
49
+ FAIL_IF_EXISTS = 1
50
+
51
+ class KeyCredentialStatus(enum.IntEnum):
52
+ SUCCESS = 0
53
+ UNKNOWN_ERROR = 1
54
+ NOT_FOUND = 2
55
+ USER_CANCELED = 3
56
+ USER_PREFERS_PASSWORD = 4
57
+ CREDENTIAL_ALREADY_EXISTS = 5
58
+ SECURITY_DEVICE_LOCKED = 6
59
+
60
+ class WebAccountPictureSize(enum.IntEnum):
61
+ SIZE64X64 = 64
62
+ SIZE208X208 = 208
63
+ SIZE424X424 = 424
64
+ SIZE1080X1080 = 1080
65
+
66
+ class WebAccountState(enum.IntEnum):
67
+ NONE = 0
68
+ CONNECTED = 1
69
+ ERROR = 2
70
+
71
+ winrt.runtime._internals.mixin_mutable_mapping(PasswordCredentialPropertyStore)
File without changes
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.Security.Credentials
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Security.Cryptography.Core[all]~=3.2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Storage.Streams[all]~=3.2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.System[all]~=3.2.1.0; extra == "all"
22
+
23
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
24
+
25
+ # winrt-Windows.Security.Credentials
26
+
27
+ Windows Runtime (WinRT) APIs for for the `Windows.Security.Credentials` namespace.
28
+
29
+ This package provides the `winrt.windows.security.credentials` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_security_credentials.cp314-win32.pyd,sha256=aT9tJp3H4xML_ruPznj1X5fCmzNFYgBcbpoPOWhWtm4,238592
2
+ winrt/_winrt_windows_security_credentials.pyi,sha256=ypSS9YQIzriUCirIJ66rveLEIOrjo6yC66SKUt8Acf4,14498
3
+ winrt/windows/security/credentials/__init__.py,sha256=vq6zNhEwa7ZGJcym50X3IlSPK39tEKD02YrG948T4k0,1731
4
+ winrt/windows/security/credentials/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_security_credentials-3.2.1.dist-info/METADATA,sha256=XUP468N2ILcfGGBSYSiWsFnwmMijPRkZFRHfvz5vfes,1382
6
+ winrt_windows_security_credentials-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
7
+ winrt_windows_security_credentials-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_security_credentials-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win32
5
+