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()
MlflowHostCreds
getHost
in interface MlflowHostCreds
public String getUsername()
MlflowHostCreds
getUsername
in interface MlflowHostCreds
public String getPassword()
MlflowHostCreds
getPassword
in interface MlflowHostCreds
public String getToken()
MlflowHostCreds
getToken
in interface MlflowHostCreds
public boolean shouldIgnoreTlsVerification()
MlflowHostCreds
shouldIgnoreTlsVerification
in interface MlflowHostCreds
public MlflowHostCreds getHostCreds()
MlflowHostCredsProvider
getHostCreds
in interface MlflowHostCredsProvider
public void refresh()
MlflowHostCredsProvider
refresh
in interface MlflowHostCredsProvider
Copyright © 2019. All rights reserved.