[][src]Enum biscuit::jwk::AlgorithmParameters

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]

pub fn key_type(&self) -> KeyType[src]

Returns the type of key represented by this set of algorithm parameters

pub fn octect_key(&self) -> Result<&[u8], Error>[src]

Return the byte sequence of an octect key

Trait Implementations

impl PartialEq<AlgorithmParameters> for AlgorithmParameters[src]

impl Clone for AlgorithmParameters[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for AlgorithmParameters[src]

impl Debug for AlgorithmParameters[src]

impl Serialize for AlgorithmParameters[src]

impl<'de> Deserialize<'de> for AlgorithmParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]