pub struct EnrollResponse { /* private fields */ }Expand description
Enrollment response containing a PKCS#7 certificate chain (RFC 7030 §4.2.3).
The response includes:
- End-entity certificate (signed by CA with ML-DSA or traditional key)
- Intermediate CA certificates (optional)
- Root CA certificate (optional)
The certificate chain is returned as a PKCS#7 certs-only structure.
Implementations§
Source§impl EnrollResponse
impl EnrollResponse
Sourcepub fn new(pkcs7_der: Vec<u8>) -> Self
pub fn new(pkcs7_der: Vec<u8>) -> Self
Creates a new enrollment response from DER-encoded PKCS#7.
Sourcepub fn into_pkcs7_der(self) -> Vec<u8> ⓘ
pub fn into_pkcs7_der(self) -> Vec<u8> ⓘ
Consumes self and returns the DER-encoded PKCS#7 data.
Sourcepub fn from_base64(base64_data: &str) -> EstResult<Self>
pub fn from_base64(base64_data: &str) -> EstResult<Self>
Decodes a base64-encoded enrollment response.
Trait Implementations§
Source§impl Clone for EnrollResponse
impl Clone for EnrollResponse
Source§fn clone(&self) -> EnrollResponse
fn clone(&self) -> EnrollResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnrollResponse
impl Debug for EnrollResponse
Source§impl<'de> Deserialize<'de> for EnrollResponse
impl<'de> Deserialize<'de> for EnrollResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EnrollResponse
impl PartialEq for EnrollResponse
Source§impl Serialize for EnrollResponse
impl Serialize for EnrollResponse
impl Eq for EnrollResponse
impl StructuralPartialEq for EnrollResponse
Auto Trait Implementations§
impl Freeze for EnrollResponse
impl RefUnwindSafe for EnrollResponse
impl Send for EnrollResponse
impl Sync for EnrollResponse
impl Unpin for EnrollResponse
impl UnsafeUnpin for EnrollResponse
impl UnwindSafe for EnrollResponse
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