Interface CredentialsProvider


public interface CredentialsProvider
This interface should be implemented by classes that provide mappings between Spotfire users and data source (database) username/password credentials.

For data sources that use other types of authentication than username/password please consider implementing a CustomCredentialsProvider instead.

An implementation of this class can be specified using the information-services.ds.credentials-provider configuration property.

Implementations of this interface must be thread-safe and reentrant.

Since:
3.0
See Also:
  • Method Details

    • getCredentials

      DataSourceCredentials getCredentials(String dataSource, String userName, String domainName)
      Returns credentials towards the given data source for the given user.
      Parameters:
      dataSource - A string identifying the data source to authenticate against. When authenticating against a database, this parameter is the connection URL.
      userName - The name of the Spotfire user.
      domainName - The domain name of the Spotfire user.
      Returns:
      The user name and password to use when accessing the data source.
      Since:
      3.0