Struct actix_4_jwt_auth::biscuit::jwk::RSAKeyParameters
source · pub struct RSAKeyParameters {
pub key_type: RSAKeyType,
pub n: BigUint,
pub e: BigUint,
pub d: Option<BigUint>,
pub p: Option<BigUint>,
pub q: Option<BigUint>,
pub dp: Option<BigUint>,
pub dq: Option<BigUint>,
pub qi: Option<BigUint>,
pub other_primes_info: Option<Vec<OtherPrimesInfo>>,
}
Expand description
Parameters for a RSA Key
Fields§
§key_type: RSAKeyType
Key type value for a RSA Key
n: BigUint
The “n” (modulus) parameter contains the modulus value for the RSA
public key.
It is serialized as a Base64urlUInt
-encoded value.
e: BigUint
The “e” (exponent) parameter contains the exponent value for the RSA
public key.
It is serialized as a Base64urlUInt
-encoded value.
d: Option<BigUint>
The “d” (private exponent) parameter contains the private exponent
value for the RSA private key.
It is serialized as a Base64urlUInt
-encoded value.
p: Option<BigUint>
The “p” (first prime factor) parameter contains the first prime
factor.
It is serialized as a Base64urlUInt
-encoded value.
q: Option<BigUint>
The “q” (second prime factor) parameter contains the second prime
factor.
It is serialized as a Base64urlUInt
-encoded value.
dp: Option<BigUint>
The “dp” (first factor CRT exponent) parameter contains the Chinese
Remainder Theorem (CRT) exponent of the first factor.
It is serialized as a Base64urlUInt
-encoded value.
dq: Option<BigUint>
The “dq” (second factor CRT exponent) parameter contains the CRT
exponent of the second factor.
It is serialized as a Base64urlUInt
-encoded value.
qi: Option<BigUint>
The “qi” (first CRT coefficient) parameter contains the CRT
coefficient of the second factor
It is serialized as a Base64urlUInt
-encoded value.
other_primes_info: Option<Vec<OtherPrimesInfo>>
The “oth” (other primes info) parameter contains an array of information about any third and subsequent primes, should they exist.
Implementations§
source§impl RSAKeyParameters
impl RSAKeyParameters
sourcepub fn jws_public_key_secret(&self) -> Secret
pub fn jws_public_key_secret(&self) -> Secret
Construct a jws::Secret
RSA public key for signature verification
Trait Implementations§
source§impl Clone for RSAKeyParameters
impl Clone for RSAKeyParameters
source§fn clone(&self) -> RSAKeyParameters
fn clone(&self) -> RSAKeyParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RSAKeyParameters
impl Default for RSAKeyParameters
source§fn default() -> RSAKeyParameters
fn default() -> RSAKeyParameters
source§impl<'de> Deserialize<'de> for RSAKeyParameters
impl<'de> Deserialize<'de> for RSAKeyParameters
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RSAKeyParameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RSAKeyParameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<RSAKeyParameters> for Secret
impl From<RSAKeyParameters> for Secret
source§fn from(rsa: RSAKeyParameters) -> Secret
fn from(rsa: RSAKeyParameters) -> Secret
source§impl PartialEq for RSAKeyParameters
impl PartialEq for RSAKeyParameters
source§impl Serialize for RSAKeyParameters
impl Serialize for RSAKeyParameters
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for RSAKeyParameters
impl StructuralPartialEq for RSAKeyParameters
Auto Trait Implementations§
impl Freeze for RSAKeyParameters
impl RefUnwindSafe for RSAKeyParameters
impl Send for RSAKeyParameters
impl Sync for RSAKeyParameters
impl Unpin for RSAKeyParameters
impl UnwindSafe for RSAKeyParameters
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.