Package org.mlflow.tracking.creds
Class BasicMlflowHostCreds
- java.lang.Object
- 
- org.mlflow.tracking.creds.BasicMlflowHostCreds
 
- 
- All Implemented Interfaces:
- MlflowHostCreds,- MlflowHostCredsProvider
 - Direct Known Subclasses:
- DatabricksMlflowHostCreds
 
 public class BasicMlflowHostCreds extends java.lang.Object implements MlflowHostCreds, MlflowHostCredsProvider A static hostname and optional credentials to talk to an MLflow server.
- 
- 
Constructor SummaryConstructors Constructor Description BasicMlflowHostCreds(java.lang.String host)BasicMlflowHostCreds(java.lang.String host, java.lang.String token)BasicMlflowHostCreds(java.lang.String host, java.lang.String username, java.lang.String password)BasicMlflowHostCreds(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String token, boolean shouldIgnoreTlsVerification)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHost()Hostname (e.g., http://localhost:5000) to MLflow server.MlflowHostCredsgetHostCreds()Returns a valid MlflowHostCreds.java.lang.StringgetPassword()Password to use with Basic authentication when talking to server.java.lang.StringgetToken()Token to use with Bearer authentication when talking to server.java.lang.StringgetUsername()Username to use with Basic authentication when talking to server.voidrefresh()Refreshes the underlying credentials.booleanshouldIgnoreTlsVerification()If true, we will not verify the server's hostname or TLS certificate.
 
- 
- 
- 
Constructor Detail- 
BasicMlflowHostCredspublic BasicMlflowHostCreds(java.lang.String host) 
 - 
BasicMlflowHostCredspublic BasicMlflowHostCreds(java.lang.String host, java.lang.String username, java.lang.String password)
 - 
BasicMlflowHostCredspublic BasicMlflowHostCreds(java.lang.String host, java.lang.String token)
 - 
BasicMlflowHostCredspublic BasicMlflowHostCreds(java.lang.String host, java.lang.String username, java.lang.String password, java.lang.String token, boolean shouldIgnoreTlsVerification)
 
- 
 - 
Method Detail- 
getHostpublic java.lang.String getHost() Description copied from interface:MlflowHostCredsHostname (e.g., http://localhost:5000) to MLflow server.- Specified by:
- getHostin interface- MlflowHostCreds
 
 - 
getUsernamepublic java.lang.String getUsername() Description copied from interface:MlflowHostCredsUsername to use with Basic authentication when talking to server. If this is specified, password must also be specified.- Specified by:
- getUsernamein interface- MlflowHostCreds
 
 - 
getPasswordpublic java.lang.String getPassword() Description copied from interface:MlflowHostCredsPassword to use with Basic authentication when talking to server. If this is specified, username must also be specified.- Specified by:
- getPasswordin interface- MlflowHostCreds
 
 - 
getTokenpublic java.lang.String getToken() Description copied from interface:MlflowHostCredsToken to use with Bearer authentication when talking to server. If provided, user/password authentication will be ignored.- Specified by:
- getTokenin interface- MlflowHostCreds
 
 - 
shouldIgnoreTlsVerificationpublic boolean shouldIgnoreTlsVerification() Description copied from interface:MlflowHostCredsIf true, we will not verify the server's hostname or TLS certificate. This is useful for certain testing situations, but should never be true in production.- Specified by:
- shouldIgnoreTlsVerificationin interface- MlflowHostCreds
 
 - 
getHostCredspublic MlflowHostCreds getHostCreds() Description copied from interface:MlflowHostCredsProviderReturns a valid MlflowHostCreds. This may be cached.- Specified by:
- getHostCredsin interface- MlflowHostCredsProvider
 
 - 
refreshpublic void refresh() Description copied from interface:MlflowHostCredsProviderRefreshes the underlying credentials. May be a no-op.- Specified by:
- refreshin interface- MlflowHostCredsProvider
 
 
- 
 
-