pub struct ConfigFileAuthProvider { /* private fields */ }Expand description
Configuration file based authentication provider
Reads credentials from OCI configuration file (default: ~/.oci/config)
Implementations§
Source§impl ConfigFileAuthProvider
impl ConfigFileAuthProvider
Sourcepub fn from_file(config_path: impl AsRef<Path>, profile: &str) -> Result<Self>
pub fn from_file(config_path: impl AsRef<Path>, profile: &str) -> Result<Self>
Create a new ConfigFileAuthProvider from a configuration file
§Arguments
config_path- Path to the OCI config file (default: ~/.oci/config)profile- Profile name to use (default: DEFAULT)
Sourcepub fn from_default() -> Result<Self>
pub fn from_default() -> Result<Self>
Create from default config file path (~/.oci/config) and DEFAULT profile
Trait Implementations§
Source§impl AuthProvider for ConfigFileAuthProvider
impl AuthProvider for ConfigFileAuthProvider
Source§fn get_key_id(&self) -> String
fn get_key_id(&self) -> String
Get the key ID (e.g., “ocid1.tenancy.oc1..xxxxx/ocid1.user.oc1..xxxxx/fingerprint”)
Source§fn get_private_key(&self) -> &str
fn get_private_key(&self) -> &str
Get the private key in PEM format
Source§fn get_passphrase(&self) -> Option<&str>
fn get_passphrase(&self) -> Option<&str>
Get the passphrase for the private key (if any)
Source§impl Clone for ConfigFileAuthProvider
impl Clone for ConfigFileAuthProvider
Source§fn clone(&self) -> ConfigFileAuthProvider
fn clone(&self) -> ConfigFileAuthProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigFileAuthProvider
impl RefUnwindSafe for ConfigFileAuthProvider
impl Send for ConfigFileAuthProvider
impl Sync for ConfigFileAuthProvider
impl Unpin for ConfigFileAuthProvider
impl UnsafeUnpin for ConfigFileAuthProvider
impl UnwindSafe for ConfigFileAuthProvider
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more