Class CdpProfileConfigFile
java.lang.Object
com.cloudera.cdp.authentication.credentials.profile.CdpProfileConfigFile
Handles loading a CDP profile from either the default location or from an
input path. Offers a convenience method for retreiving credentials from a
named profile.
-
Constructor Summary
ConstructorDescriptionConstructor.CdpProfileConfigFile
(File file) Loads the CDP credential profiles from the input file.CdpProfileConfigFile
(String filePath) Loads the CDP credential profiles from the input path. -
Method Summary
Modifier and TypeMethodDescriptiongetCredentials
(String profileName) Returns the CdpCredentials using the profile name provided.
-
Constructor Details
-
CdpProfileConfigFile
public CdpProfileConfigFile()Constructor. Loads the CDP credentials file from the default location. -
CdpProfileConfigFile
Loads the CDP credential profiles from the input path.- Parameters:
filePath
- path to CDP credentials file
-
CdpProfileConfigFile
Loads the CDP credential profiles from the input file.- Parameters:
file
- CDP credentials file
-
-
Method Details
-
getCredentials
Returns the CdpCredentials using the profile name provided.- Parameters:
profileName
- CDP profile name- Returns:
- CdpCredentials
-