pub struct PckCrl<V: VerificationType = Verified> { /* private fields */ }
Implementations§
Source§impl PckCrl<Unverified>
impl PckCrl<Unverified>
pub fn new( crl: String, ca_chain: Vec<String>, ) -> Result<PckCrl<Unverified>, Error>
pub fn read_from_file( input_dir: &str, ca: DcapArtifactIssuer, ) -> Result<Self, Error>
Source§impl<V: VerificationType> PckCrl<V>
impl<V: VerificationType> PckCrl<V>
pub fn write_to_file_as( &self, output_dir: &str, ca: DcapArtifactIssuer, ) -> Result<String, Error>
pub fn write_to_file_if_not_exist_as( &self, output_dir: &str, ca: DcapArtifactIssuer, ) -> Result<Option<PathBuf>, Error>
pub fn crl_as_pem(&self) -> &String
pub fn crl_as_der(&self) -> Result<Vec<u8>, Error>
pub fn certificate_chain(&self) -> &Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PckCrl<Unverified>
impl<'de> Deserialize<'de> for PckCrl<Unverified>
Source§fn deserialize<D>(deserializer: D) -> Result<PckCrl<Unverified>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PckCrl<Unverified>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<V: VerificationType> Serialize for PckCrl<V>
impl<V: VerificationType> Serialize for PckCrl<V>
impl<V: Eq + VerificationType> Eq for PckCrl<V>
impl<V: VerificationType> StructuralPartialEq for PckCrl<V>
Auto Trait Implementations§
impl<V> Freeze for PckCrl<V>
impl<V> RefUnwindSafe for PckCrl<V>where
V: RefUnwindSafe,
impl<V> Send for PckCrl<V>where
V: Send,
impl<V> Sync for PckCrl<V>where
V: Sync,
impl<V> Unpin for PckCrl<V>where
V: Unpin,
impl<V> UnwindSafe for PckCrl<V>where
V: UnwindSafe,
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