pub struct StaticEnrollmentService { /* private fields */ }Expand description
A static enrollment service that approves pre-provisioned nodes.
Useful for deployments where all nodes are known ahead of time. Bootstrap tokens are checked against a pre-configured list.
Implementations§
Trait Implementations§
Source§impl EnrollmentService for StaticEnrollmentService
impl EnrollmentService for StaticEnrollmentService
Source§fn process_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 EnrollmentRequest,
) -> Pin<Box<dyn Future<Output = Result<EnrollmentResponse, SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 EnrollmentRequest,
) -> Pin<Box<dyn Future<Output = Result<EnrollmentResponse, SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an enrollment request. Read more
Source§fn check_status<'life0, 'life1, 'async_trait>(
&'life0 self,
_subject_key: &'life1 [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<EnrollmentStatus, SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_status<'life0, 'life1, 'async_trait>(
&'life0 self,
_subject_key: &'life1 [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<EnrollmentStatus, SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check the enrollment status for a public key.
Source§fn revoke<'life0, 'life1, 'async_trait>(
&'life0 self,
_subject_key: &'life1 [u8; 32],
_reason: String,
) -> Pin<Box<dyn Future<Output = Result<(), SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke<'life0, 'life1, 'async_trait>(
&'life0 self,
_subject_key: &'life1 [u8; 32],
_reason: String,
) -> Pin<Box<dyn Future<Output = Result<(), SecurityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Revoke an enrollment (invalidate the certificate).
Auto Trait Implementations§
impl Freeze for StaticEnrollmentService
impl RefUnwindSafe for StaticEnrollmentService
impl Send for StaticEnrollmentService
impl Sync for StaticEnrollmentService
impl Unpin for StaticEnrollmentService
impl UnsafeUnpin for StaticEnrollmentService
impl UnwindSafe for StaticEnrollmentService
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