pub struct X509;
Implementations§
source§impl X509
impl X509
sourcepub fn push_certificate<B: Builder>(
builder: &mut B,
tbs_cert_var: &Value<Vec<u8>>,
sig: &Signature
) -> Result<()>
pub fn push_certificate<B: Builder>( builder: &mut B, tbs_cert_var: &Value<Vec<u8>>, sig: &Signature ) -> Result<()>
Push an X509 certificate into the builder. The TBS certificate is represented by a byte array (see push_x509_tbs_certificate).
sourcepub fn push_tbs_certificate<B: Builder>(
builder: &mut B,
cert: &Certificate
) -> Result<()>
pub fn push_tbs_certificate<B: Builder>( builder: &mut B, cert: &Certificate ) -> Result<()>
Push an X509 TBS certificate into the builder.
pub fn push_cert_extension<B: Builder>( builder: &mut B, ext: &CertificateExtension ) -> Result<()>
pub fn push_name<B: Builder>( builder: &mut B, name_hint: Option<String>, name: &Name ) -> Result<()>
pub fn push_basic_constraints_ext<B: Builder>( builder: &mut B, constraints: &BasicConstraints ) -> Result<()>
pub fn push_subject_alt_name_ext<B: Builder>( builder: &mut B, subject_alt_name: &Name ) -> Result<()>
pub fn push_key_usage_ext<B: Builder>( builder: &mut B, key_usage: &KeyUsage ) -> Result<()>
pub fn push_auth_key_id_ext<B: Builder>( builder: &mut B, auth_key_id: &Value<Vec<u8>> ) -> Result<()>
pub fn push_subject_key_id_ext<B: Builder>( builder: &mut B, auth_key_id: &Value<Vec<u8>> ) -> Result<()>
pub fn push_extension<B: Builder>( builder: &mut B, oid: &Oid, critical: bool, gen: impl FnOnce(&mut B) -> Result<()> ) -> Result<()>
pub fn push_public_key_info<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>
pub fn push_pubkey_alg_id<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>
pub fn push_public_key<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>
pub fn push_ec_public_key_params<B: Builder>( builder: &mut B, pubkey: &EcPublicKeyInfo ) -> Result<()>
pub fn push_ec_public_key<B: Builder>( builder: &mut B, pubkey: &EcPublicKeyInfo ) -> Result<()>
pub fn push_validity<B: Builder>( builder: &mut B, not_before: &Value<String>, not_after: &Value<String> ) -> Result<()>
pub fn push_sig_alg_id<B: Builder>( builder: &mut B, sig: &Signature ) -> Result<()>
pub fn push_signature<B: Builder>( builder: &mut B, sig: &Signature ) -> Result<()>
pub fn push_ecdsa_sig<B: Builder>( builder: &mut B, sig: &EcdsaSignature ) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for X509
impl Send for X509
impl Sync for X509
impl Unpin for X509
impl UnwindSafe for X509
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more