[−][src]Struct picky::x509::Extension
Implementations
impl Extension
[src]
pub fn extn_id(&self) -> &ObjectIdentifierAsn1
[src]
pub fn critical(&self) -> bool
[src]
pub fn extn_value(&self) -> ExtensionView<'_>
[src]
pub fn into_critical(self) -> Extension
[src]
pub fn into_non_critical(self) -> Extension
[src]
pub fn set_critical(&mut self, critical: bool)
[src]
pub fn new_key_usage(key_usage: KeyUsage) -> Extension
[src]
When present, conforming CAs SHOULD mark this extension as critical
Default is critical.
pub fn new_subject_key_identifier<V>(ski: V) -> Extension where
V: Into<Vec<u8>>,
[src]
V: Into<Vec<u8>>,
Conforming CAs MUST mark this extension as non-critical
Default is non-critical.
pub fn new_authority_key_identifier<KI, I, SN>(
key_identifier: KI,
authority_cert_issuer: I,
authority_cert_serial_number: SN
) -> Extension where
I: Into<Option<GeneralName>>,
KI: Into<Option<OctetStringAsn1>>,
SN: Into<Option<IntegerAsn1>>,
[src]
key_identifier: KI,
authority_cert_issuer: I,
authority_cert_serial_number: SN
) -> Extension where
I: Into<Option<GeneralName>>,
KI: Into<Option<OctetStringAsn1>>,
SN: Into<Option<IntegerAsn1>>,
Conforming CAs MUST mark this extension as non-critical
Default is critical.
pub fn new_basic_constraints<CA, PLC>(
ca: CA,
path_len_constraints: PLC
) -> Extension where
CA: Into<Option<bool>>,
PLC: Into<Option<u8>>,
[src]
ca: CA,
path_len_constraints: PLC
) -> Extension where
CA: Into<Option<bool>>,
PLC: Into<Option<u8>>,
Marking this extension as critical is always acceptable.
Check details here: https://tools.ietf.org/html/rfc5280#section-4.2.1.9
You may change this value using into_non_critical
or set_critical
methods.
Default is critical.
pub fn new_extended_key_usage<EKU>(extended_key_usage: EKU) -> Extension where
EKU: Into<ExtendedKeyUsage>,
[src]
EKU: Into<ExtendedKeyUsage>,
This extension MAY, at the option of the certificate issuer, be either critical or non-critical. Conforming CAs SHOULD NOT mark this extension as critical if the anyExtendedKeyUsage KeyPurposeId is present.
Default is non-critical if anyExtendedKeyUsage is present, critical otherwise.
pub fn new_subject_alt_name<N>(name: N) -> Extension where
N: Into<Asn1SequenceOf<GeneralName>>,
[src]
N: Into<Asn1SequenceOf<GeneralName>>,
If the subject field contains an empty sequence, then the issuing CA MUST include a subjectAltName extension that is marked as critical. When including the subjectAltName extension in a certificate that has a non-empty subject distinguished name, conforming CAs SHOULD mark the subjectAltName extension as non-critical.
Default is critical.
pub fn new_issuer_alt_name<N>(name: N) -> Extension where
N: Into<Asn1SequenceOf<GeneralName>>,
[src]
N: Into<Asn1SequenceOf<GeneralName>>,
Where present, conforming CAs SHOULD mark this extension as non-critical.
Default is non-critical.
Trait Implementations
impl Clone for Extension
[src]
impl Debug for Extension
[src]
impl<'de> Deserialize<'de> for Extension
[src]
fn deserialize<D>(
deserializer: D
) -> Result<Extension, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Extension, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl PartialEq<Extension> for Extension
[src]
impl Serialize for Extension
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralPartialEq for Extension
[src]
Auto Trait Implementations
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,