pub struct AsymmetricSecurityHeader {
pub security_policy_uri: UAString,
pub sender_certificate: ByteString,
pub receiver_certificate_thumbprint: ByteString,
}Expand description
Security header for asymmetric encryption.
Fields§
§security_policy_uri: UAStringSecurity policy URI.
sender_certificate: ByteStringSender certificate as a byte string.
receiver_certificate_thumbprint: ByteStringThumbprint of the receiver certificate as a byte string.
Implementations§
Source§impl AsymmetricSecurityHeader
impl AsymmetricSecurityHeader
Sourcepub fn none() -> AsymmetricSecurityHeader
pub fn none() -> AsymmetricSecurityHeader
Create a new asymmetric security header with no security policy.
Sourcepub fn new(
security_policy: SecurityPolicy,
sender_certificate: &X509,
receiver_certificate_thumbprint: ByteString,
) -> AsymmetricSecurityHeader
pub fn new( security_policy: SecurityPolicy, sender_certificate: &X509, receiver_certificate_thumbprint: ByteString, ) -> AsymmetricSecurityHeader
Create a new asymmetric security header.
Trait Implementations§
Source§impl Clone for AsymmetricSecurityHeader
impl Clone for AsymmetricSecurityHeader
Source§fn clone(&self) -> AsymmetricSecurityHeader
fn clone(&self) -> AsymmetricSecurityHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsymmetricSecurityHeader
impl Debug for AsymmetricSecurityHeader
Source§impl PartialEq for AsymmetricSecurityHeader
impl PartialEq for AsymmetricSecurityHeader
Source§impl SimpleBinaryDecodable for AsymmetricSecurityHeader
impl SimpleBinaryDecodable for AsymmetricSecurityHeader
Source§fn decode<S>(
stream: &mut S,
decoding_options: &DecodingOptions,
) -> Result<AsymmetricSecurityHeader, Error>
fn decode<S>( stream: &mut S, decoding_options: &DecodingOptions, ) -> Result<AsymmetricSecurityHeader, Error>
Decode Self from the byte stream.
Source§impl SimpleBinaryEncodable for AsymmetricSecurityHeader
impl SimpleBinaryEncodable for AsymmetricSecurityHeader
impl StructuralPartialEq for AsymmetricSecurityHeader
Auto Trait Implementations§
impl Freeze for AsymmetricSecurityHeader
impl RefUnwindSafe for AsymmetricSecurityHeader
impl Send for AsymmetricSecurityHeader
impl Sync for AsymmetricSecurityHeader
impl Unpin for AsymmetricSecurityHeader
impl UnsafeUnpin for AsymmetricSecurityHeader
impl UnwindSafe for AsymmetricSecurityHeader
Blanket Implementations§
Source§impl<T> BinaryDecodable for Twhere
T: SimpleBinaryDecodable,
impl<T> BinaryDecodable for Twhere
T: SimpleBinaryDecodable,
Source§fn decode<S>(stream: &mut S, ctx: &Context<'_>) -> Result<T, Error>
fn decode<S>(stream: &mut S, ctx: &Context<'_>) -> Result<T, Error>
Decodes an instance from the read stream. The decoding options contains restrictions set by
the server / client on the length of strings, arrays etc. If these limits are exceeded the
implementation should return with a
BadDecodingError as soon as possible.Source§impl<T> BinaryEncodable for Twhere
T: SimpleBinaryEncodable,
impl<T> BinaryEncodable for Twhere
T: SimpleBinaryEncodable,
Source§fn byte_len(&self, _ctx: &Context<'_>) -> usize
fn byte_len(&self, _ctx: &Context<'_>) -> usize
Returns the exact byte length of the structure as it would be if
encode were called.
This may be called prior to writing to ensure the correct amount of space is available.Source§fn encode<S>(&self, stream: &mut S, _ctx: &Context<'_>) -> Result<(), Error>
fn encode<S>(&self, stream: &mut S, _ctx: &Context<'_>) -> Result<(), Error>
Encodes the instance to the write stream.
Source§fn override_encoding(&self) -> Option<BuiltInDataEncoding>
fn override_encoding(&self) -> Option<BuiltInDataEncoding>
Override the extension object encoding used for this type.
This only makes sense if the type can only ever be encoded using a single
built-in encoding.
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