Package io.revealbi.core.data
Class RVKeyPairDataSourceCredential
java.lang.Object
io.revealbi.core.data.RVKeyPairDataSourceCredential
- All Implemented Interfaces:
IRVDataSourceCredential
Used for key-pair authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionRVKeyPairDataSourceCredential(String userName, String privateKey) Creates credentials with the user name and the private key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the private key used for authentication.Returns the user name for key-pair authentication.
-
Constructor Details
-
RVKeyPairDataSourceCredential
Creates credentials with the user name and the private key.- Parameters:
userName- User nameprivateKey- Private key
-
-
Method Details
-
getUserName
Returns the user name for key-pair authentication.- Returns:
- The user name.
-
getPrivateKey
Returns the private key used for authentication.- Returns:
- The private key as a string (PEM-encoded or raw depending on the data source).
-