pub struct LocalCredentialStore { /* private fields */ }Implementations§
Source§impl LocalCredentialStore
impl LocalCredentialStore
Sourcepub fn production_setup_root_path() -> Result<PathBuf, CredentialStoreError>
pub fn production_setup_root_path() -> Result<PathBuf, CredentialStoreError>
Returns the fixed device-setup root without touching the filesystem. The path is suitable for internal use only and must never be emitted.
Sourcepub fn ensure_production_setup_root() -> Result<PathBuf, CredentialStoreError>
pub fn ensure_production_setup_root() -> Result<PathBuf, CredentialStoreError>
Creates the fixed owner-only device-setup root and returns its path.
Sourcepub fn production() -> Result<Self, CredentialStoreError>
pub fn production() -> Result<Self, CredentialStoreError>
Opens the fixed, non-synchronizing credential root for this OS account.
Sourcepub fn production_existing() -> Result<Self, CredentialStoreError>
pub fn production_existing() -> Result<Self, CredentialStoreError>
Opens an already initialized fixed store without creating any filesystem object.
pub fn add( &self, provider: &str, label: &str, secret: &[u8], ) -> Result<CredentialMetadata, CredentialStoreError>
pub fn rotate_preview( &self, credential_ref: &str, expires_at_epoch_seconds: u64, ) -> Result<CredentialLifecyclePreview, CredentialStoreError>
pub fn remove_preview( &self, credential_ref: &str, expires_at_epoch_seconds: u64, ) -> Result<CredentialLifecyclePreview, CredentialStoreError>
Sourcepub fn reconcile_rotate(
&self,
credential_ref: &str,
request: CredentialLifecycleRequestIdentity<'_>,
) -> Result<CredentialRotationReconciliation, CredentialStoreError>
pub fn reconcile_rotate( &self, credential_ref: &str, request: CredentialLifecycleRequestIdentity<'_>, ) -> Result<CredentialRotationReconciliation, CredentialStoreError>
Reconciles an already-journaled rotation without reading a new secret or requiring a second confirmation. The request identity is matched to the durable journal, but its user-facing preview expiry is intentionally not re-evaluated: authorization was validated before the journal became durable.
Sourcepub fn reconcile_remove(
&self,
credential_ref: &str,
request: CredentialLifecycleRequestIdentity<'_>,
) -> Result<CredentialRemovalReconciliation, CredentialStoreError>
pub fn reconcile_remove( &self, credential_ref: &str, request: CredentialLifecycleRequestIdentity<'_>, ) -> Result<CredentialRemovalReconciliation, CredentialStoreError>
Reconciles an already-authorized removal from its durable journal. Matching recovery is independent of the expired preview clock because the original confirmation and complete request identity are journaled before the descriptor-bound erasure boundary.