Enum openidconnect::core::CoreJsonWebKeyUse [−][src]
#[non_exhaustive]
pub enum CoreJsonWebKeyUse {
Signature,
Encryption,
}
Expand description
Usage restriction for a JSON Web key.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Signature
Key may be used for digital signatures.
Encryption
Key may be used for encryption.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Returns the key ID, or None
if no key ID is specified. Read more
Returns the key type (e.g., RSA). Read more
Returns the allowed key usage (e.g., signing or encryption), or None
if no usage is
specified. Read more
Initializes a new symmetric key or shared signing secret from the specified raw bytes. Read more
fn verify_signature(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureVerificationError>
fn verify_signature(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureVerificationError>
Verifies the given signature
using the given signature algorithm (signature_alg
) over
the given message
. Read more
Auto Trait Implementations
impl RefUnwindSafe for CoreJsonWebKeyUse
impl Send for CoreJsonWebKeyUse
impl Sync for CoreJsonWebKeyUse
impl Unpin for CoreJsonWebKeyUse
impl UnwindSafe for CoreJsonWebKeyUse
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more