pub struct ReenrollResponse { /* private fields */ }Expand description
Re-enrollment response (RFC 7030 §4.2.2).
Identical wire format to EnrollResponse. Contains the renewed certificate
chain as a PKCS#7 certs-only structure.
Implementations§
Source§impl ReenrollResponse
impl ReenrollResponse
Sourcepub fn new(pkcs7_der: Vec<u8>) -> Self
pub fn new(pkcs7_der: Vec<u8>) -> Self
Creates a new re-enrollment response from DER-encoded PKCS#7.
Sourcepub fn from_enroll_response(inner: EnrollResponse) -> Self
pub fn from_enroll_response(inner: EnrollResponse) -> Self
Creates from an existing EnrollResponse.
Sourcepub fn inner(&self) -> &EnrollResponse
pub fn inner(&self) -> &EnrollResponse
Returns the inner enrollment response.
Sourcepub fn into_inner(self) -> EnrollResponse
pub fn into_inner(self) -> EnrollResponse
Consumes self and returns the inner enrollment response.
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 re-enrollment response.
Trait Implementations§
Source§impl Clone for ReenrollResponse
impl Clone for ReenrollResponse
Source§fn clone(&self) -> ReenrollResponse
fn clone(&self) -> ReenrollResponse
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 ReenrollResponse
impl Debug for ReenrollResponse
Source§impl<'de> Deserialize<'de> for ReenrollResponse
impl<'de> Deserialize<'de> for ReenrollResponse
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 ReenrollResponse
impl PartialEq for ReenrollResponse
Source§impl Serialize for ReenrollResponse
impl Serialize for ReenrollResponse
impl Eq for ReenrollResponse
impl StructuralPartialEq for ReenrollResponse
Auto Trait Implementations§
impl Freeze for ReenrollResponse
impl RefUnwindSafe for ReenrollResponse
impl Send for ReenrollResponse
impl Sync for ReenrollResponse
impl Unpin for ReenrollResponse
impl UnsafeUnpin for ReenrollResponse
impl UnwindSafe for ReenrollResponse
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