pub struct AuthenticatedProofEnvelopeVerification {
pub valid: bool,
pub signature_valid: bool,
pub time_valid: bool,
pub not_yet_valid: bool,
pub expired: bool,
pub algorithm: String,
pub key_id: Vec<u8>,
pub proof_bundle: Vec<u8>,
pub context: Vec<u8>,
pub issued_at_millis: Option<u64>,
pub expires_at_millis: Option<u64>,
pub nonce: Vec<u8>,
}Expand description
Verification result for an AuthenticatedProofEnvelope.
Fields§
§valid: boolTrue when the algorithm is supported, the signature matches, and optional time bounds are valid for the supplied verification time.
signature_valid: boolTrue when the algorithm is supported and the HMAC matches the envelope signing payload.
time_valid: boolTrue when the optional issue/expiration bounds are valid or time checking was skipped.
not_yet_valid: boolTrue when issued_at_millis is later than the supplied verification time.
expired: boolTrue when expires_at_millis is less than or equal to the supplied
verification time.
algorithm: StringSignature algorithm from the envelope.
key_id: Vec<u8>Caller-defined key identifier from the envelope.
proof_bundle: Vec<u8>Authenticated proof bundle bytes.
context: Vec<u8>Authenticated application context bytes.
issued_at_millis: Option<u64>Issue time from the envelope.
expires_at_millis: Option<u64>Expiration time from the envelope.
nonce: Vec<u8>Nonce from the envelope.
Trait Implementations§
Source§impl Clone for AuthenticatedProofEnvelopeVerification
impl Clone for AuthenticatedProofEnvelopeVerification
Source§fn clone(&self) -> AuthenticatedProofEnvelopeVerification
fn clone(&self) -> AuthenticatedProofEnvelopeVerification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Eq for AuthenticatedProofEnvelopeVerification
impl StructuralPartialEq for AuthenticatedProofEnvelopeVerification
Auto Trait Implementations§
impl Freeze for AuthenticatedProofEnvelopeVerification
impl RefUnwindSafe for AuthenticatedProofEnvelopeVerification
impl Send for AuthenticatedProofEnvelopeVerification
impl Sync for AuthenticatedProofEnvelopeVerification
impl Unpin for AuthenticatedProofEnvelopeVerification
impl UnsafeUnpin for AuthenticatedProofEnvelopeVerification
impl UnwindSafe for AuthenticatedProofEnvelopeVerification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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