Enum kinetic::authentication::Credentials [−] [src]

pub enum Credentials {
    Hmac {
        identity: i64,
        key: Vec<u8>,
    },
    Pin {
        pin: Vec<u8>,
    },
}

Kinetic authentication credentials

Kinetic authentication credentials include Hmac and Pin.

Variants

Hmac

Authenticates a message with an identity and a key

Fields

identity
key
Pin

Authenticates a message with an pin

Fields

pin

Methods

impl Credentials

fn authenticate_proto(&self, command_bytes: &Vec<u8>) -> Message

fn verify_proto(&self, msg: &Message) -> bool

Trait Implementations

impl Default for Credentials

fn default() -> Credentials

Derived Implementations

impl Clone for Credentials

fn clone(&self) -> Credentials

fn clone_from(&mut self, source: &Self)