pub enum CertificateError {
Show 20 variants
InvalidClientId,
ClientIdMismatch,
DisplayNameMismatch,
HandleMismatch,
DomainMismatch,
MissingDisplayName,
MissingHandle,
MissingDomain,
MissingClientId,
InvalidFormat,
AlgorithmMismatch,
KeyMismatch,
InvalidSigningKeypair,
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
InvalidSigningKeypair
The signing keypair could not be parsed for the expected signature algorithm
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()