Class RVKeyPairDataSourceCredential

java.lang.Object
io.revealbi.core.data.RVKeyPairDataSourceCredential
All Implemented Interfaces:
IRVDataSourceCredential

public class RVKeyPairDataSourceCredential extends Object implements IRVDataSourceCredential
Used for key-pair authentication.
  • Constructor Details

    • RVKeyPairDataSourceCredential

      public RVKeyPairDataSourceCredential(String userName, String privateKey)
      Creates credentials with the user name and the private key.
      Parameters:
      userName - User name
      privateKey - Private key
  • Method Details

    • getUserName

      public String getUserName()
      Returns the user name for key-pair authentication.
      Returns:
      The user name.
    • getPrivateKey

      public String getPrivateKey()
      Returns the private key used for authentication.
      Returns:
      The private key as a string (PEM-encoded or raw depending on the data source).