public class BasicMlflowHostCreds extends Object implements MlflowHostCreds, MlflowHostCredsProvider
| Constructor and Description |
|---|
BasicMlflowHostCreds(String host) |
BasicMlflowHostCreds(String host,
String token) |
BasicMlflowHostCreds(String host,
String username,
String password) |
BasicMlflowHostCreds(String host,
String username,
String password,
String token,
boolean shouldIgnoreTlsVerification) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Hostname (e.g., http://localhost:5000) to MLflow server.
|
MlflowHostCreds |
getHostCreds()
Returns a valid MlflowHostCreds.
|
String |
getPassword()
Password to use with Basic authentication when talking to server.
|
String |
getToken()
Token to use with Bearer authentication when talking to server.
|
String |
getUsername()
Username to use with Basic authentication when talking to server.
|
void |
refresh()
Refreshes the underlying credentials.
|
boolean |
shouldIgnoreTlsVerification()
If true, we will not verify the server's hostname or TLS certificate.
|
public BasicMlflowHostCreds(String host)
public String getHost()
MlflowHostCredsgetHost in interface MlflowHostCredspublic String getUsername()
MlflowHostCredsgetUsername in interface MlflowHostCredspublic String getPassword()
MlflowHostCredsgetPassword in interface MlflowHostCredspublic String getToken()
MlflowHostCredsgetToken in interface MlflowHostCredspublic boolean shouldIgnoreTlsVerification()
MlflowHostCredsshouldIgnoreTlsVerification in interface MlflowHostCredspublic MlflowHostCreds getHostCreds()
MlflowHostCredsProvidergetHostCreds in interface MlflowHostCredsProviderpublic void refresh()
MlflowHostCredsProviderrefresh in interface MlflowHostCredsProviderCopyright © 2019. All rights reserved.