Enum biscuit::jwk::AlgorithmParameters
[−]
[src]
pub enum AlgorithmParameters { EllipticCurve(EllipticCurveKeyParameters), RSA(RSAKeyParameters), OctectKey { key_type: OctectKeyType, value: Vec<u8>, }, }
Algorithm specific parameters
Variants
EllipticCurve(EllipticCurveKeyParameters)
An Elliptic Curve key
RSA(RSAKeyParameters)
A RSA Public or Private Key
OctectKey
A symmetric Octect key
Fields of OctectKey
key_type: OctectKeyType | Key type value for an Octect Key |
value: Vec<u8> | The octect key value |
Methods
impl AlgorithmParameters
[src]
fn key_type(&self) -> KeyType
Returns the type of key represented by this set of algorithm parameters
fn octect_key(&self) -> Result<&[u8], Error>
Return the byte sequence of an octect key
Trait Implementations
impl Clone for AlgorithmParameters
[src]
fn clone(&self) -> AlgorithmParameters
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for AlgorithmParameters
[src]
impl PartialEq for AlgorithmParameters
[src]
fn eq(&self, __arg_0: &AlgorithmParameters) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AlgorithmParameters) -> bool
This method tests for !=
.