Fix #220
This commit is contained in:
parent
7301e928b0
commit
bebeb5f222
|
@ -29,7 +29,7 @@ macro_rules! expect_two {
|
|||
}};
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Clone)]
|
||||
pub(crate) enum DecodingKeyKind {
|
||||
SecretOrDer(Vec<u8>),
|
||||
RsaModulusExponent { n: Vec<u8>, e: Vec<u8> },
|
||||
|
@ -37,7 +37,7 @@ pub(crate) enum DecodingKeyKind {
|
|||
|
||||
/// All the different kind of keys we can use to decode a JWT
|
||||
/// This key can be re-used so make sure you only initialize it once if you can for better performance
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Clone)]
|
||||
pub struct DecodingKey {
|
||||
pub(crate) family: AlgorithmFamily,
|
||||
pub(crate) kind: DecodingKeyKind,
|
||||
|
|
|
@ -9,7 +9,7 @@ use crate::serialization::b64_encode_part;
|
|||
|
||||
/// A key to encode a JWT with. Can be a secret, a PEM-encoded key or a DER-encoded key.
|
||||
/// This key can be re-used so make sure you only initialize it once if you can for better performance
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Clone)]
|
||||
pub struct EncodingKey {
|
||||
pub(crate) family: AlgorithmFamily,
|
||||
content: Vec<u8>,
|
||||
|
|
Loading…
Reference in New Issue