getAllAuthCredentials method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(apiName: 'URLCredentialStorage.allCredentials', apiUrl: 'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1413859-allcredentials'), MacOSPlatform(apiName: 'URLCredentialStorage.allCredentials', apiUrl: 'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1413859-allcredentials'), LinuxPlatform(note: 'Implemented using libsecret for secure storage.')])
Gets a map list of all HTTP auth credentials saved.
Each map contains the key protectionSpace of type URLProtectionSpace
and the key credentials of type List<URLCredential> that contains all the HTTP auth credentials saved for that protectionSpace.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - URLCredentialStorage.allCredentials)
- macOS WKWebView (Official API - URLCredentialStorage.allCredentials)
- Linux WPE WebKit:
- Implemented using libsecret for secure storage.
Use the PlatformHttpAuthCredentialDatabase.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(
apiName: 'URLCredentialStorage.allCredentials',
apiUrl:
'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1413859-allcredentials',
),
MacOSPlatform(
apiName: 'URLCredentialStorage.allCredentials',
apiUrl:
'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1413859-allcredentials',
),
LinuxPlatform(note: 'Implemented using libsecret for secure storage.'),
],
)
Future<List<URLProtectionSpaceHttpAuthCredentials>> getAllAuthCredentials() {
throw UnimplementedError(
'getAllAuthCredentials is not implemented on the current platform',
);
}