Trait AuthenticationProvider

Source
pub trait AuthenticationProvider:
    Send
    + Sync
    + Debug
    + AuthenticationProviderClone {
    // Required methods
    fn tenancy_id(&self) -> &str;
    fn user_id(&self) -> &str;
    fn fingerprint(&self) -> &str;
    fn private_key(&self) -> Result<Rsa<Private>, Box<dyn Error>>;
    fn region_id(&self) -> &str;

    // Provided method
    fn key_id(&self) -> String { ... }
}
Expand description

Trait defining an Authentication Provider

Required Methods§

Source

fn tenancy_id(&self) -> &str

Returns the Tenancy OCID associated with this AuthenticationProvider

Source

fn user_id(&self) -> &str

Returns the User OCID associated with this AuthenticationProvider

Source

fn fingerprint(&self) -> &str

Returns the Fingerprint associated with the Private Key of this AuthenticationProvider

Source

fn private_key(&self) -> Result<Rsa<Private>, Box<dyn Error>>

Returns the Private Key associated with this AuthenticationProvider

Source

fn region_id(&self) -> &str

Returns the region-id associated with this AuthenticationProvider

Provided Methods§

Source

fn key_id(&self) -> String

Returns the key id associated with this AuthenticationProvider to be used for signing requests

Trait Implementations§

Source§

impl Clone for Box<dyn AuthenticationProvider>

Source§

fn clone(&self) -> Box<dyn AuthenticationProvider>

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Implementors§