pub struct IssuingDistributionPointBuilder { /* private fields */ }Expand description
Fluent builder for an IssuingDistributionPoint extension value
(OID 2.5.29.28, RFC 5280 Section 5.2.5).
Set the optional distribution point name and/or the boolean flags, then
call build to obtain the DER bytes of the
IssuingDistributionPoint SEQUENCE — the content that goes inside the
OCTET STRING wrapper in the Extension SEQUENCE.
All boolean flags default to false (omitted in DER per DEFAULT FALSE
semantics). The distribution point is optional.
Uses the generated IssuingDistributionPoint type with
IMPLICIT-tagged BOOLEAN fields (as specified in RFC 5280).
§Example
use synta_certificate::IssuingDistributionPointBuilder;
let idp_der = IssuingDistributionPointBuilder::new()
.full_name_uri("http://crl.example.com/ca.crl")
.only_contains_user_certs(true)
.build()
.unwrap();Implementations§
Source§impl IssuingDistributionPointBuilder
impl IssuingDistributionPointBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new IssuingDistributionPointBuilder with all fields absent/false.
Sourcepub fn full_name_uri(self, uri: &str) -> Self
pub fn full_name_uri(self, uri: &str) -> Self
Set the distribution point to a URI full name.
Sourcepub fn full_name_dns(self, dns: &str) -> Self
pub fn full_name_dns(self, dns: &str) -> Self
Set the distribution point to a DNS name full name.
Sourcepub fn only_contains_user_certs(self, val: bool) -> Self
pub fn only_contains_user_certs(self, val: bool) -> Self
Set onlyContainsUserCerts.
Sourcepub fn only_contains_cacerts(self, val: bool) -> Self
pub fn only_contains_cacerts(self, val: bool) -> Self
Set onlyContainsCACerts.
Sourcepub fn indirect_crl(self, val: bool) -> Self
pub fn indirect_crl(self, val: bool) -> Self
Set indirectCRL.
Sourcepub fn only_contains_attribute_certs(self, val: bool) -> Self
pub fn only_contains_attribute_certs(self, val: bool) -> Self
Set onlyContainsAttributeCerts.