pub struct InMemoryCredentialProvisioner { /* private fields */ }Expand description
Reference provisioner for tests and examples.
Implementations§
Source§impl InMemoryCredentialProvisioner
impl InMemoryCredentialProvisioner
Sourcepub fn issued_credentials(&self) -> Vec<ProvisionedCredential>
pub fn issued_credentials(&self) -> Vec<ProvisionedCredential>
Snapshot issued credentials. Secret values are present for test assertions.
Sourcepub fn revoked_ids(&self) -> Vec<CredentialId>
pub fn revoked_ids(&self) -> Vec<CredentialId>
Snapshot revoked credential ids.
Sourcepub fn validate_child_constraints(
parent: &LeaseRequest,
child: &LeaseRequest,
) -> Result<(), ARCPError>
pub fn validate_child_constraints( parent: &LeaseRequest, child: &LeaseRequest, ) -> Result<(), ARCPError>
Validate a child credential lease against a parent lease.
§Errors
Returns ARCPError::LeaseSubsetViolation when child widens parent.
Trait Implementations§
Source§impl CredentialProvisioner for InMemoryCredentialProvisioner
impl CredentialProvisioner for InMemoryCredentialProvisioner
Source§fn issue<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
lease: &'life1 LeaseRequest,
_ctx: &'life2 CredentialJobContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<ProvisionedCredential>, ARCPError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn issue<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
lease: &'life1 LeaseRequest,
_ctx: &'life2 CredentialJobContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<ProvisionedCredential>, ARCPError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl Default for InMemoryCredentialProvisioner
impl Default for InMemoryCredentialProvisioner
Source§fn default() -> InMemoryCredentialProvisioner
fn default() -> InMemoryCredentialProvisioner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryCredentialProvisioner
impl RefUnwindSafe for InMemoryCredentialProvisioner
impl Send for InMemoryCredentialProvisioner
impl Sync for InMemoryCredentialProvisioner
impl Unpin for InMemoryCredentialProvisioner
impl UnsafeUnpin for InMemoryCredentialProvisioner
impl UnwindSafe for InMemoryCredentialProvisioner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more