#[non_exhaustive]pub enum CredentialErrorKind {
ProtocolViolation,
UnsupportedExtension,
UnsupportedAlgorithm,
ConstraintExceeded,
InconsistentDetails,
KeyNotPresent,
VerifyFailed,
}Expand description
Classification of a CredentialError.
The variants in here are mainly used for debug output, and all signify that
the processing of the token was not successful. This type can be used to
construct a CredentialError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProtocolViolation
Input data contains items that violate a protocol.
This is somewhat fuzzy towards
UnsupportedExtension if extension points
are not clearly documented or understood in a protocol.
UnsupportedExtension
Input data contains items that are understood in principle, but not supported by the implementation.
In the fuzziness towards ProtocolViolation,
it is preferred to err on the side of UnsupportedExtension.
UnsupportedAlgorithm
Input data uses a COSE algorithm that is not supported by the implementation.
ConstraintExceeded
The data looks fine to a point, but exceeds the capacity of the implementation (data or identifier too long).
InconsistentDetails
Input data is understood, but self-contradictory.
Example: A COSE encrypted item where the nonce length does not match the algorithm’s requirements.
KeyNotPresent
The peer expects to use key material which is not known to this system.
VerifyFailed
Data could be processed and keys were found, but cryptographic verification was unsuccessful.
Trait Implementations§
Source§impl Clone for CredentialErrorDetail
impl Clone for CredentialErrorDetail
Source§fn clone(&self) -> CredentialErrorDetail
fn clone(&self) -> CredentialErrorDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more