Skip to main content

CloudHomeCredentialCustody

Trait CloudHomeCredentialCustody 

Source
pub trait CloudHomeCredentialCustody: Send + Sync {
    // Required methods
    fn unlock(&self) -> Result<Option<CloudHomeCredentials>, KeyError>;
    fn persist(
        &self,
        credentials: &CloudHomeCredentials,
    ) -> Result<(), KeyError>;
}
Expand description

Retained access to one store’s cloud-provider credentials.

Provider implementations read and refresh credentials through this capability rather than reaching into the platform keyring. Cloud setup uses StagedCloudHomeCredentials so provider construction and token refreshes remain in memory until the complete cloud connection is ready to install.

Required Methods§

Implementors§