[−]Struct openssl::x509::X509Ref
Reference to X509
.
Methods
impl X509Ref
[src]
impl X509Ref
pub fn subject_name(&self) -> &X509NameRef
[src]
pub fn subject_name(&self) -> &X509NameRef
Returns this certificate's subject name.
This corresponds to X509_get_subject_name
.
pub fn issuer_name(&self) -> &X509NameRef
[src]
pub fn issuer_name(&self) -> &X509NameRef
Returns this certificate's issuer name.
This corresponds to X509_get_issuer_name
.
pub fn subject_alt_names(&self) -> Option<Stack<GeneralName>>
[src]
pub fn subject_alt_names(&self) -> Option<Stack<GeneralName>>
Returns this certificate's subject alternative name entries, if they exist.
This corresponds to X509_get_ext_d2i
called with NID_subject_alt_name
.
pub fn issuer_alt_names(&self) -> Option<Stack<GeneralName>>
[src]
pub fn issuer_alt_names(&self) -> Option<Stack<GeneralName>>
Returns this certificate's issuer alternative name entries, if they exist.
This corresponds to X509_get_ext_d2i
called with NID_issuer_alt_name
.
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>
[src]
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>
pub fn digest(
&self,
hash_type: MessageDigest
) -> Result<DigestBytes, ErrorStack>
[src]
pub fn digest(
&self,
hash_type: MessageDigest
) -> Result<DigestBytes, ErrorStack>
Returns a digest of the DER representation of the certificate.
This corresponds to X509_digest
.
pub fn fingerprint(
&self,
hash_type: MessageDigest
) -> Result<Vec<u8>, ErrorStack>
[src]
pub fn fingerprint(
&self,
hash_type: MessageDigest
) -> Result<Vec<u8>, ErrorStack>
: renamed to digest
pub fn not_after(&self) -> &Asn1TimeRef
[src]
pub fn not_after(&self) -> &Asn1TimeRef
Returns the certificate's Not After validity period.
pub fn not_before(&self) -> &Asn1TimeRef
[src]
pub fn not_before(&self) -> &Asn1TimeRef
Returns the certificate's Not Before validity period.
pub fn signature(&self) -> &Asn1BitStringRef
[src]
pub fn signature(&self) -> &Asn1BitStringRef
Returns the certificate's signature
pub fn signature_algorithm(&self) -> &X509AlgorithmRef
[src]
pub fn signature_algorithm(&self) -> &X509AlgorithmRef
Returns the certificate's signature algorithm.
pub fn ocsp_responders(&self) -> Result<Stack<OpensslString>, ErrorStack>
[src]
pub fn ocsp_responders(&self) -> Result<Stack<OpensslString>, ErrorStack>
Returns the list of OCSP responder URLs specified in the certificate's Authority Information Access field.
pub fn issued(&self, subject: &X509Ref) -> X509VerifyResult
[src]
pub fn issued(&self, subject: &X509Ref) -> X509VerifyResult
Checks that this certificate issued subject
.
pub fn serial_number(&self) -> &Asn1IntegerRef
[src]
pub fn serial_number(&self) -> &Asn1IntegerRef
Returns this certificate's serial number.
This corresponds to X509_get_serialNumber
.
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the certificate into a PEM-encoded X509 structure.
The output will have a header of -----BEGIN CERTIFICATE-----
.
This corresponds to PEM_write_bio_X509
.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the certificate into a DER-encoded X509 structure.
This corresponds to i2d_X509
.
Trait Implementations
impl Sync for X509Ref
[src]
impl Sync for X509Ref
impl ToOwned for X509Ref
[src]
impl ToOwned for X509Ref
type Owned = X509
fn to_owned(&self) -> X509
[src]
fn to_owned(&self) -> X509
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl AsRef<X509Ref> for X509
impl AsRef<X509Ref> for X509
impl AsRef<X509Ref> for X509Ref
[src]
impl AsRef<X509Ref> for X509Ref
impl Send for X509Ref
[src]
impl Send for X509Ref
impl Borrow<X509Ref> for X509
impl Borrow<X509Ref> for X509
impl ForeignTypeRef for X509Ref
impl ForeignTypeRef for X509Ref
type CType = X509
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more