pub enum CertificateVerifyError {
BadPublicKey(String),
BadSignature(String),
PayloadEncode(String),
InvalidSignature,
UnsupportedAlgorithm(String),
UnsupportedSignedFields(String),
}Expand description
Errors verifying an AgentCertificate signature.
Variants§
BadPublicKey(String)
Public key in signature.public_key was not valid base64url or wrong length.
BadSignature(String)
Signature bytes were not valid base64url or wrong length.
PayloadEncode(String)
Could not reconstruct canonical signed payload.
InvalidSignature
Signature did not verify against the embedded public key.
UnsupportedAlgorithm(String)
Signature algorithm is not supported (only ed25519 is recognized).
UnsupportedSignedFields(String)
signed_fields does not name the expected payload composition.
Trait Implementations§
Source§impl Debug for CertificateVerifyError
impl Debug for CertificateVerifyError
Source§impl Display for CertificateVerifyError
impl Display for CertificateVerifyError
Source§impl Error for CertificateVerifyError
impl Error for CertificateVerifyError
1.30.0 · 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 Freeze for CertificateVerifyError
impl RefUnwindSafe for CertificateVerifyError
impl Send for CertificateVerifyError
impl Sync for CertificateVerifyError
impl Unpin for CertificateVerifyError
impl UnsafeUnpin for CertificateVerifyError
impl UnwindSafe for CertificateVerifyError
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