pub struct ClientCertificateCredential { /* private fields */ }
Expand description
Enables authentication to Azure Active Directory using a client certificate that was generated for an App Registration.
In order to use subject name validation send_cert_chain
option must be set to true
The certificate is expected to be in base64 encoded PKCS12 format
Implementations§
source§impl ClientCertificateCredential
impl ClientCertificateCredential
sourcepub fn new<C, P>(
tenant_id: String,
client_id: String,
client_certificate: C,
client_certificate_pass: P,
options: CertificateCredentialOptions
) -> ClientCertificateCredential
pub fn new<C, P>( tenant_id: String, client_id: String, client_certificate: C, client_certificate_pass: P, options: CertificateCredentialOptions ) -> ClientCertificateCredential
Create a new ClientCertificateCredential
Trait Implementations§
source§impl Debug for ClientCertificateCredential
impl Debug for ClientCertificateCredential
source§impl TokenCredential for ClientCertificateCredential
impl TokenCredential for ClientCertificateCredential
source§fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Gets a
AccessToken
for the specified resourceAuto Trait Implementations§
impl !RefUnwindSafe for ClientCertificateCredential
impl Send for ClientCertificateCredential
impl Sync for ClientCertificateCredential
impl Unpin for ClientCertificateCredential
impl !UnwindSafe for ClientCertificateCredential
Blanket Implementations§
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