Class TokenCredentialConfigurationProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.properties.core.authentication.TokenCredentialConfigurationProperties
- All Implemented Interfaces:
com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
public class TokenCredentialConfigurationProperties
extends Object
implements com.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
Azure properties used for getting token credential.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetClientCertificatePassword(String clientCertificatePassword) Set the client certificate password.voidsetClientCertificatePath(String clientCertificatePath) Set the client certificate path.voidsetClientId(String clientId) Set the client ID.voidsetClientSecret(String clientSecret) Set the client secret.voidsetManagedIdentityEnabled(boolean managedIdentityEnabled) Whether to enable managed identity.voidsetPassword(String password) Set the password.voidsetUsername(String username) Set the username.
-
Constructor Details
-
TokenCredentialConfigurationProperties
public TokenCredentialConfigurationProperties()
-
-
Method Details
-
getClientId
- Specified by:
getClientIdin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setClientId
Set the client ID.- Parameters:
clientId- The client ID.
-
getClientSecret
- Specified by:
getClientSecretin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setClientSecret
Set the client secret.- Parameters:
clientSecret- The client secret.
-
getClientCertificatePath
- Specified by:
getClientCertificatePathin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setClientCertificatePath
Set the client certificate path.- Parameters:
clientCertificatePath- The client certificate path.
-
getClientCertificatePassword
- Specified by:
getClientCertificatePasswordin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setClientCertificatePassword
Set the client certificate password.- Parameters:
clientCertificatePassword- The client certificate password.
-
getUsername
- Specified by:
getUsernamein interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setUsername
Set the username.- Parameters:
username- The username.
-
getPassword
- Specified by:
getPasswordin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setPassword
Set the password.- Parameters:
password- The password.
-
isManagedIdentityEnabled
public boolean isManagedIdentityEnabled()- Specified by:
isManagedIdentityEnabledin interfacecom.azure.spring.cloud.core.provider.authentication.TokenCredentialOptionsProvider.TokenCredentialOptions
-
setManagedIdentityEnabled
public void setManagedIdentityEnabled(boolean managedIdentityEnabled) Whether to enable managed identity.- Parameters:
managedIdentityEnabled- whether managed identity is enabled.
-