Trait ToEncryptionTokens

Source
pub trait ToEncryptionTokens {
    // Required methods
    fn to_encrypt_key(&self) -> String;
    fn to_decrypt_key(&self) -> String;

    // Provided methods
    fn encrypt(&self, data: &str) -> String { ... }
    fn decrypt(&self, hex_data: &str) -> Vec<u8>  { ... }
}
Expand description

This trait is used to provide access to the tokens needed to initiate a partnerLogin.

Required Methods§

Source

fn to_encrypt_key(&self) -> String

Returns the encryption key to be used for this session.

Source

fn to_decrypt_key(&self) -> String

Returns the decryption key to be used for this session.

Provided Methods§

Source

fn encrypt(&self, data: &str) -> String

Encrypt the provided data using the session encryption key.

Source

fn decrypt(&self, hex_data: &str) -> Vec<u8>

Decrypt the provided data using the session decryption key.

Implementors§