Struct x509_cert::request::attributes::ChallengePassword
source · pub struct ChallengePassword(pub DirectoryString);
Expand description
ChallengePassword
as defined in RFC 2985 Section 5.4.1
challengePassword ATTRIBUTE ::= {
WITH SYNTAX DirectoryString {pkcs-9-ub-challengePassword}
EQUALITY MATCHING RULE caseExactMatch
SINGLE VALUE TRUE
ID pkcs-9-at-challengePassword
}
Tuple Fields§
§0: DirectoryString
Trait Implementations§
source§impl AsAttribute for ChallengePassword
impl AsAttribute for ChallengePassword
source§fn to_attribute(&self) -> Result<Attribute>
fn to_attribute(&self) -> Result<Attribute>
Returns the Attribute with the content encoded.
source§impl AssociatedOid for ChallengePassword
impl AssociatedOid for ChallengePassword
source§const OID: ObjectIdentifier = _
const OID: ObjectIdentifier = _
The OID associated with this type.
Auto Trait Implementations§
impl RefUnwindSafe for ChallengePassword
impl Send for ChallengePassword
impl Sync for ChallengePassword
impl Unpin for ChallengePassword
impl UnwindSafe for ChallengePassword
Blanket Implementations§
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
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.