pub struct SubjectAlternativeName { /* private fields */ }
Expand description
An extension that allows additional identities to be bound to the subject of the certificate.
Implementations
sourceimpl SubjectAlternativeName
impl SubjectAlternativeName
sourcepub fn new() -> SubjectAlternativeName
pub fn new() -> SubjectAlternativeName
Construct a new SubjectAlternativeName
extension.
sourcepub fn critical(&mut self) -> &mut SubjectAlternativeName
pub fn critical(&mut self) -> &mut SubjectAlternativeName
Sets the critical
flag to true
. The extension will be critical.
sourcepub fn email(&mut self, email: &str) -> &mut SubjectAlternativeName
pub fn email(&mut self, email: &str) -> &mut SubjectAlternativeName
Sets the email
flag.
sourcepub fn uri(&mut self, uri: &str) -> &mut SubjectAlternativeName
pub fn uri(&mut self, uri: &str) -> &mut SubjectAlternativeName
Sets the uri
flag.
sourcepub fn dns(&mut self, dns: &str) -> &mut SubjectAlternativeName
pub fn dns(&mut self, dns: &str) -> &mut SubjectAlternativeName
Sets the dns
flag.
sourcepub fn rid(&mut self, rid: &str) -> &mut SubjectAlternativeName
pub fn rid(&mut self, rid: &str) -> &mut SubjectAlternativeName
Sets the rid
flag.
sourcepub fn ip(&mut self, ip: &str) -> &mut SubjectAlternativeName
pub fn ip(&mut self, ip: &str) -> &mut SubjectAlternativeName
Sets the ip
flag.
sourcepub fn dir_name(&mut self, dir_name: &str) -> &mut SubjectAlternativeName
pub fn dir_name(&mut self, dir_name: &str) -> &mut SubjectAlternativeName
Sets the dirName
flag.
sourcepub fn other_name(&mut self, other_name: &str) -> &mut SubjectAlternativeName
pub fn other_name(&mut self, other_name: &str) -> &mut SubjectAlternativeName
Sets the otherName
flag.
sourcepub fn build(
&self,
ctx: &X509v3Context<'_>
) -> Result<X509Extension, ErrorStack>
pub fn build(
&self,
ctx: &X509v3Context<'_>
) -> Result<X509Extension, ErrorStack>
Return a SubjectAlternativeName
extension as an X509Extension
.
Trait Implementations
sourceimpl Default for SubjectAlternativeName
impl Default for SubjectAlternativeName
sourcefn default() -> SubjectAlternativeName
fn default() -> SubjectAlternativeName
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubjectAlternativeName
impl Send for SubjectAlternativeName
impl Sync for SubjectAlternativeName
impl Unpin for SubjectAlternativeName
impl UnwindSafe for SubjectAlternativeName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more