Class SpringCredentialBuilderBase<T extends SpringCredentialBuilderBase<T>>

    • Field Detail

      • environment

        protected org.springframework.core.env.Environment environment
        The Environment.
    • Method Detail

      • environment

        public T environment​(org.springframework.core.env.Environment environment)
        Configures the environment.
        Parameters:
        environment - the environment
        Returns:
        the updated credential builder
      • populateTokenCredential

        protected com.azure.core.credential.TokenCredential populateTokenCredential​(String prefix)
        Populates and constructs a TokenCredential.
        Parameters:
        prefix - the prefix
        Returns:
        A new TokenCredential
      • populateTokenCredentialBasedOnClientId

        protected com.azure.core.credential.TokenCredential populateTokenCredentialBasedOnClientId​(String prefix)
        Populates and constructs a TokenCredential based on a client ID.
        Parameters:
        prefix - the prefix
        Returns:
        A new TokenCredential
      • defaultManagedIdentityCredential

        protected com.azure.identity.ManagedIdentityCredential defaultManagedIdentityCredential()
        Gets the default ManagedIdentityCredential.
        Returns:
        the default ManagedIdentityCredential
      • getPropertyValue

        protected String getPropertyValue​(String prefix,
                                          String propertyKey)
        Gets a property value from the environment.
        Parameters:
        prefix - the prefix
        propertyKey - the property key
        Returns:
        the property value from the environment if it exists or else null