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§
Sourcefn to_encrypt_key(&self) -> String
fn to_encrypt_key(&self) -> String
Returns the encryption key to be used for this session.
Sourcefn to_decrypt_key(&self) -> String
fn to_decrypt_key(&self) -> String
Returns the decryption key to be used for this session.