Skip to main content

ISecureCredentialStore

  • Namespace: PPDS.Auth.Credentials
  • Assembly: PPDS.Auth
  • Kind: Interface

Summary

Provides secure, platform-native credential storage for service principal secrets.

Members

Methods

ClearAsync

Task ClearAsync(CancellationToken cancellationToken)

Clears all stored credentials.

  • Param cancellationToken: Cancellation token.

ExistsAsync

Task<bool> ExistsAsync(string applicationId, CancellationToken cancellationToken)

Checks if credentials exist for a service principal.

  • Param applicationId: The application (client) ID.

  • Param cancellationToken: Cancellation token.

  • Returns: True if credentials exist.

GetAsync

Task<StoredCredential> GetAsync(string applicationId, CancellationToken cancellationToken)

Retrieves credentials for a service principal by application ID.

  • Param applicationId: The application (client) ID.

  • Param cancellationToken: Cancellation token.

  • Returns: The stored credential, or null if not found.

RemoveAsync

Task<bool> RemoveAsync(string applicationId, CancellationToken cancellationToken)

Removes credentials for a service principal.

  • Param applicationId: The application (client) ID.

  • Param cancellationToken: Cancellation token.

  • Returns: True if removed, false if not found.

StoreAsync

Task StoreAsync(StoredCredential credential, CancellationToken cancellationToken)

Stores credentials for a service principal.

  • Param credential: The credential to store.

  • Param cancellationToken: Cancellation token.

Properties

IsCleartextCachingEnabled

bool IsCleartextCachingEnabled { get; }

Gets whether cleartext caching is enabled (Linux fallback).