Class ClientSecretCredentialBuilder

public class ClientSecretCredentialBuilder extends AadCredentialBuilderBase<ClientSecretCredentialBuilder>
Fluent credential builder for instantiating a ClientSecretCredential.
See Also:
  • Constructor Details

    • ClientSecretCredentialBuilder

      public ClientSecretCredentialBuilder()
  • Method Details

    • clientSecret

      public ClientSecretCredentialBuilder clientSecret(String clientSecret)
      Sets the client secret for the authentication.
      clientSecret - the secret value of the AAD application.
      An updated instance of this builder.
    • tokenCachePersistenceOptions

      public ClientSecretCredentialBuilder tokenCachePersistenceOptions(TokenCachePersistenceOptions tokenCachePersistenceOptions)
      Configures the persistent shared token cache options and enables the persistent token cache which is disabled by default. If configured, the credential will store tokens in a cache persisted to the machine, protected to the current user, which can be shared by other credentials and processes.
      tokenCachePersistenceOptions - the token cache configuration options
      An updated instance of this builder with the token cache options configured.
    • build

      public ClientSecretCredential build()
      Creates a new ClientCertificateCredential with the current configurations.
      a ClientSecretCredentialBuilder with the current configurations.