removeHttpAuthCredential method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(apiName: 'URLCredentialStorage.remove', apiUrl: 'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1408664-remove'), MacOSPlatform(apiName: 'URLCredentialStorage.remove', apiUrl: 'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1408664-remove'), LinuxPlatform(note: 'Implemented using libsecret for secure storage.')])
Future<void> removeHttpAuthCredential({
  1. required URLProtectionSpace protectionSpace,
  2. required URLCredential credential,
})

Removes an HTTP auth credential for that protectionSpace.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • protectionSpace: all platforms
  • credential: all platforms

Use the PlatformHttpAuthCredentialDatabase.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(
      apiName: 'URLCredentialStorage.remove',
      apiUrl:
          'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1408664-remove',
    ),
    MacOSPlatform(
      apiName: 'URLCredentialStorage.remove',
      apiUrl:
          'https://developer.apple.com/documentation/foundation/urlcredentialstorage/1408664-remove',
    ),
    LinuxPlatform(note: 'Implemented using libsecret for secure storage.'),
  ],
)
Future<void> removeHttpAuthCredential({
  required URLProtectionSpace protectionSpace,
  required URLCredential credential,
}) {
  throw UnimplementedError(
    'removeHttpAuthCredential is not implemented on the current platform',
  );
}