pub enum CertificateError {
Show 19 variants
InvalidClientId,
ClientIdMismatch,
DisplayNameMismatch,
HandleMismatch,
DomainMismatch,
MissingDisplayName,
MissingHandle,
MissingDomain,
MissingClientId,
InvalidFormat,
AlgorithmMismatch,
KeyMismatch,
UnsupportedPublicKey,
Validation(Error),
Der(Error),
Utf8(Utf8Error),
Acme(Error),
RustyJwtError(RustyJwtError),
JsonWebToken(Error),
}Expand description
Given x509 certificate is invalid and does not follow Wire’s format
Variants§
InvalidClientId
Client ID is not in a valid format
ClientIdMismatch
ClientId does not match expected one
DisplayNameMismatch
Display name does not match expected one
HandleMismatch
Handle does not match expected one
DomainMismatch
Domain does not match expected one
MissingDisplayName
DisplayName is missing from the certificate
MissingHandle
Handle is missing from the certificate
MissingDomain
Domain is missing from the certificate
MissingClientId
ClientId is missing from the certificate
InvalidFormat
X509 lacks required standard fields
AlgorithmMismatch
Certificate algorithm does not match the one of the signing keypair
KeyMismatch
Certificate public key does not match the one in the signing keypair
UnsupportedPublicKey
Advertised public key is not supported
Validation(Error)
Validation error
Der(Error)
DER error
Utf8(Utf8Error)
UTF-8 error
Acme(Error)
ACME error
RustyJwtError(RustyJwtError)
JWT error
JsonWebToken(Error)
jsonwebtoken error
Trait Implementations§
Source§impl Debug for CertificateError
impl Debug for CertificateError
Source§impl Display for CertificateError
impl Display for CertificateError
Source§impl Error for CertificateError
impl Error for CertificateError
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()
Source§impl From<CertificateError> for Error
impl From<CertificateError> for Error
Source§fn from(source: CertificateError) -> Self
fn from(source: CertificateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CertificateError
impl From<Error> for CertificateError
Source§impl From<Error> for CertificateError
impl From<Error> for CertificateError
Source§impl From<Error> for CertificateError
impl From<Error> for CertificateError
Source§impl From<Error> for CertificateError
impl From<Error> for CertificateError
Source§impl From<RustyJwtError> for CertificateError
impl From<RustyJwtError> for CertificateError
Auto Trait Implementations§
impl !RefUnwindSafe for CertificateError
impl !UnwindSafe for CertificateError
impl Freeze for CertificateError
impl Send for CertificateError
impl Sync for CertificateError
impl Unpin for CertificateError
impl UnsafeUnpin for CertificateError
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