Struct SubjectAlternativeName
pub struct SubjectAlternativeName { /* private fields */ }Available on crate feature
boring only.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
dir_name is deprecated and always panics. Please file a bug if you have a use case for this.
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
other_name is deprecated and always panics. Please file a bug if you have a use case for this.
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 Forget for SubjectAlternativeName
impl Freeze for SubjectAlternativeName
impl Move for SubjectAlternativeName
impl RefUnwindSafe for SubjectAlternativeName
impl Send for SubjectAlternativeNamewhere
RawVecInner: Send,
impl Sync for SubjectAlternativeNamewhere
RawVecInner: Sync,
impl Unpin for SubjectAlternativeName
impl UnsafeUnpin for SubjectAlternativeName
impl UnwindSafe for SubjectAlternativeNamewhere
RawVecInner: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§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