Package io.revealbi.core.data
Class RVUsernamePasswordDataSourceCredential
java.lang.Object
io.revealbi.core.data.RVUsernamePasswordDataSourceCredential
- All Implemented Interfaces:
IRVDataSourceCredential
public class RVUsernamePasswordDataSourceCredential
extends Object
implements IRVDataSourceCredential
The class used to represent domain/user/password credentials, required to connect to all data bases (MS SQL, MySQL, etc)
and some other data sources (REST API for example).
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor used to indicate that anonymous credentials or current system user (for MS SQLServer or MS SSAS) needs to be usedRVUsernamePasswordDataSourceCredential(String userName, String password) Creates credentials with no domainRVUsernamePasswordDataSourceCredential(String userName, String password, String domain) Creates credentials with the specified attributes -
Method Summary
Modifier and TypeMethodDescriptionReturns the domain (used for Windows/NTLM authentication).Returns the password.Returns the user name.
-
Constructor Details
-
RVUsernamePasswordDataSourceCredential
public RVUsernamePasswordDataSourceCredential()Constructor used to indicate that anonymous credentials or current system user (for MS SQLServer or MS SSAS) needs to be used -
RVUsernamePasswordDataSourceCredential
Creates credentials with no domain- Parameters:
userName- User namepassword- Password
-
RVUsernamePasswordDataSourceCredential
Creates credentials with the specified attributes- Parameters:
userName- User namepassword- Passworddomain- Domain
-
-
Method Details
-
getUserName
Returns the user name.- Returns:
- The user name, or
nullfor anonymous authentication.
-
getPassword
Returns the password.- Returns:
- The password, or
nullfor anonymous authentication.
-
getDomain
Returns the domain (used for Windows/NTLM authentication).- Returns:
- The domain name, or
nullif not set.
-