Class PrefixedSpringCredentialBuilder

    • Constructor Detail

      • PrefixedSpringCredentialBuilder

        public PrefixedSpringCredentialBuilder()
    • Method Detail

      • prefix

        public PrefixedSpringCredentialBuilder prefix​(String prefix)
        Configures the prefix.
        Parameters:
        prefix - the prefix
        Returns:
        the updated PrefixedSpringCredentialBuilder object
      • build

        public com.azure.core.credential.TokenCredential build()
        Build a Spring token credential with a specific prefix.
        Returns:
        the token credential populated from the prefixed properties.
        Throws:
        IllegalArgumentException - if no environment or prefix is set.