getAllAuthCredentials method

  1. @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.')])
Future<List<URLProtectionSpaceHttpAuthCredentials>> getAllAuthCredentials()

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:

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',
  );
}