Struct SubjectAlternativeName
pub struct SubjectAlternativeName { /* private fields */ }
Expand description
An extension that allows additional identities to be bound to the subject of the certificate.
Implementations§
§impl SubjectAlternativeName
impl SubjectAlternativeName
pub fn new() -> SubjectAlternativeName
pub fn new() -> SubjectAlternativeName
Construct a new SubjectAlternativeName
extension.
pub fn critical(&mut self) -> &mut SubjectAlternativeName
pub fn critical(&mut self) -> &mut SubjectAlternativeName
Sets the critical
flag to true
. The extension will be critical.
pub fn email(&mut self, email: &str) -> &mut SubjectAlternativeName
pub fn email(&mut self, email: &str) -> &mut SubjectAlternativeName
Sets the email
flag.
pub fn uri(&mut self, uri: &str) -> &mut SubjectAlternativeName
pub fn uri(&mut self, uri: &str) -> &mut SubjectAlternativeName
Sets the uri
flag.
pub fn dns(&mut self, dns: &str) -> &mut SubjectAlternativeName
pub fn dns(&mut self, dns: &str) -> &mut SubjectAlternativeName
Sets the dns
flag.
pub fn rid(&mut self, rid: &str) -> &mut SubjectAlternativeName
pub fn rid(&mut self, rid: &str) -> &mut SubjectAlternativeName
Sets the rid
flag.
pub fn ip(&mut self, ip: &str) -> &mut SubjectAlternativeName
pub fn ip(&mut self, ip: &str) -> &mut SubjectAlternativeName
Sets the ip
flag.
pub fn dir_name(&mut self, _dir_name: &str) -> &mut SubjectAlternativeName
👎Deprecated: dir_name is deprecated and always panics. Please file a bug if you have a use case for this.
pub fn dir_name(&mut self, _dir_name: &str) -> &mut SubjectAlternativeName
Sets the dirName
flag.
Not currently actually supported, always panics.
pub fn other_name(&mut self, _other_name: &str) -> &mut SubjectAlternativeName
👎Deprecated: other_name is deprecated and always panics. Please file a bug if you have a use case for this.
pub fn other_name(&mut self, _other_name: &str) -> &mut SubjectAlternativeName
Sets the otherName
flag.
Not currently actually supported, always panics.
pub 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§
§impl Default for SubjectAlternativeName
impl Default for SubjectAlternativeName
§fn default() -> SubjectAlternativeName
fn default() -> SubjectAlternativeName
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubjectAlternativeName
impl RefUnwindSafe for SubjectAlternativeName
impl Send for SubjectAlternativeName
impl Sync for SubjectAlternativeName
impl Unpin for SubjectAlternativeName
impl UnwindSafe for SubjectAlternativeName
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more