Struct X509Name
pub struct X509Name(/* private fields */);boring only.Expand description
The names of an X509 certificate.
Implementations§
§impl X509Name
impl X509Name
pub fn builder() -> Result<X509NameBuilder, ErrorStack>
pub fn builder() -> Result<X509NameBuilder, ErrorStack>
Returns a new builder.
pub fn load_client_ca_file<P>(file: P) -> Result<Stack<X509Name>, ErrorStack>
pub fn load_client_ca_file<P>(file: P) -> Result<Stack<X509Name>, ErrorStack>
Loads subject names from a file containing PEM-formatted certificates.
This is commonly used in conjunction with SslContextBuilder::set_client_ca_list.
pub fn from_der(der: &[u8]) -> Result<X509Name, ErrorStack>
pub fn from_der(der: &[u8]) -> Result<X509Name, ErrorStack>
Deserializes a DER-encoded X509 name structure.
This corresponds to d2i_X509_NAME.
Methods from Deref<Target = X509NameRef>§
pub fn entries_by_nid(&self, nid: Nid) -> X509NameEntries<'_> ⓘ
pub fn entries_by_nid(&self, nid: Nid) -> X509NameEntries<'_> ⓘ
Returns the name entries by the nid.
pub fn entries(&self) -> X509NameEntries<'_> ⓘ
pub fn entries(&self) -> X509NameEntries<'_> ⓘ
Returns an iterator over all X509NameEntry values
pub fn print_ex(&self, flags: i32) -> Option<String>
pub fn print_ex(&self, flags: i32) -> Option<String>
Returns an owned String representing the X509 name configurable via incoming flags.
This function will return None if the underlying string contains invalid utf-8.
This corresponds to X509_NAME_print_ex.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the certificate into a DER-encoded X509 name structure.
§Panics
Panics if the native encoder reports a different length for the encoding than for its size query.
This corresponds to i2d_X509_NAME.
Trait Implementations§
§impl AsMut<X509NameRef> for X509Name
impl AsMut<X509NameRef> for X509Name
§fn as_mut(&mut self) -> &mut X509NameRef
fn as_mut(&mut self) -> &mut X509NameRef
§impl AsRef<X509NameRef> for X509Name
impl AsRef<X509NameRef> for X509Name
§fn as_ref(&self) -> &X509NameRef
fn as_ref(&self) -> &X509NameRef
§impl Borrow<X509NameRef> for X509Name
impl Borrow<X509NameRef> for X509Name
§fn borrow(&self) -> &X509NameRef
fn borrow(&self) -> &X509NameRef
§impl BorrowMut<X509NameRef> for X509Name
impl BorrowMut<X509NameRef> for X509Name
§fn borrow_mut(&mut self) -> &mut X509NameRef
fn borrow_mut(&mut self) -> &mut X509NameRef
§impl Deref for X509Name
impl Deref for X509Name
§type Target = X509NameRef
type Target = X509NameRef
§fn deref(&self) -> &X509NameRef
fn deref(&self) -> &X509NameRef
§impl DerefMut for X509Name
impl DerefMut for X509Name
§fn deref_mut(&mut self) -> &mut X509NameRef
fn deref_mut(&mut self) -> &mut X509NameRef
§impl ForeignType for X509Name
impl ForeignType for X509Name
impl Send for X509Name
impl Sync for X509Name
Auto Trait Implementations§
impl Forget for X509Name
impl Freeze for X509Name
impl RefUnwindSafe for X509Name
impl Unpin for X509Name
impl UnsafeUnpin for X509Name
impl UnwindSafe for X509Name
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
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> ⓘ
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> ⓘ
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>
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>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more