Class TokenCredentialProperties
java.lang.Object
com.azure.spring.cloud.core.properties.authentication.TokenCredentialProperties
- All Implemented Interfaces:
TokenCredentialOptionsProvider.TokenCredentialOptions
public final class TokenCredentialProperties
extends Object
implements TokenCredentialOptionsProvider.TokenCredentialOptions
Azure properties used for getting token credential.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the client certificate passwordGet the client certificate pathGet the client idGet the client secretGet the passwordGet the usernamebooleanWhether to enable managed identity to authenticate with Azure.voidsetClientCertificatePassword(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
-
TokenCredentialProperties
public TokenCredentialProperties()
-
-
Method Details
-
getClientId
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the client id- Specified by:
getClientIdin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the client id
-
setClientId
Set the client id.- Parameters:
clientId- The client id.
-
getClientSecret
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the client secret- Specified by:
getClientSecretin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the client secret
-
setClientSecret
Set the client secret.- Parameters:
clientSecret- The client secret.
-
getClientCertificatePath
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the client certificate path- Specified by:
getClientCertificatePathin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the client certificate path
-
setClientCertificatePath
Set the client certificate path.- Parameters:
clientCertificatePath- The client certificate path.
-
getClientCertificatePassword
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the client certificate password- Specified by:
getClientCertificatePasswordin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the client certificate password
-
setClientCertificatePassword
Set the client certificate password.- Parameters:
clientCertificatePassword- The client certificate password.
-
getUsername
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the username- Specified by:
getUsernamein interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the username
-
setUsername
Set the username.- Parameters:
username- The username.
-
getPassword
Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsGet the password- Specified by:
getPasswordin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- the password
-
setPassword
Set the password.- Parameters:
password- The password.
-
isManagedIdentityEnabled
public boolean isManagedIdentityEnabled()Description copied from interface:TokenCredentialOptionsProvider.TokenCredentialOptionsWhether to enable managed identity to authenticate with Azure.- Specified by:
isManagedIdentityEnabledin interfaceTokenCredentialOptionsProvider.TokenCredentialOptions- Returns:
- Is managed identity enabled.
-
setManagedIdentityEnabled
public void setManagedIdentityEnabled(boolean managedIdentityEnabled) Whether to enable managed identity.- Parameters:
managedIdentityEnabled- whether managed identity is enabled.
-