pub enum SignatureVerificationError {
Missing,
UnsupportedAlgorithm,
Encoding,
Invalid(String),
Other(Box<dyn Error + Send + Sync>),
}Expand description
Why a signature was rejected.
Variants§
Missing
The policy carries no signature at all. Only fatal when the
caller treats unsigned policies as invalid (e.g. server config
require_signed_policies=true); the policy crate itself maps
this to “treat as not-currently-active” in that mode.
UnsupportedAlgorithm
The signature algorithm tag is not supported by this verifier.
Encoding
The signature payload (length, hex encoding, key id) is malformed.
Invalid(String)
Cryptographic verification rejected the signature.
Other(Box<dyn Error + Send + Sync>)
Any other failure — key-not-found, I/O, canonicalization, etc.
Trait Implementations§
Source§impl Debug for SignatureVerificationError
impl Debug for SignatureVerificationError
Source§impl Display for SignatureVerificationError
impl Display for SignatureVerificationError
Source§impl Error for SignatureVerificationError
impl Error for SignatureVerificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SignatureVerificationError
impl !UnwindSafe for SignatureVerificationError
impl Freeze for SignatureVerificationError
impl Send for SignatureVerificationError
impl Sync for SignatureVerificationError
impl Unpin for SignatureVerificationError
impl UnsafeUnpin for SignatureVerificationError
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