pub struct SafeBag {
pub bag_id: ObjectIdentifier,
pub bag_value: Vec<u8>,
pub bag_attributes: Option<Attributes>,
}
Expand description
The SafeBag
type is defined in [RFC 7292 Section 4.1].
SafeBag ::= SEQUENCE {
bagId BAG-TYPE.&id ({PKCS12BagSet})
bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}),
bagAttributes SET OF PKCS12Attribute OPTIONAL
}
Fields§
§bag_id: ObjectIdentifier
§bag_value: Vec<u8>
§bag_attributes: Option<Attributes>
Trait Implementations§
source§impl<'a> DecodeValue<'a> for SafeBag
impl<'a> DecodeValue<'a> for SafeBag
source§impl EncodeValue for SafeBag
impl EncodeValue for SafeBag
source§impl PartialEq for SafeBag
impl PartialEq for SafeBag
impl Eq for SafeBag
impl<'a> Sequence<'a> for SafeBag
impl StructuralEq for SafeBag
impl StructuralPartialEq for SafeBag
Auto Trait Implementations§
impl RefUnwindSafe for SafeBag
impl Send for SafeBag
impl Sync for SafeBag
impl Unpin for SafeBag
impl UnwindSafe for SafeBag
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<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
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.