Class BasicMlflowHostCreds

    • Constructor Summary

      Constructors 
      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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Hostname (e.g., http://localhost:5000) to MLflow server.
      MlflowHostCreds getHostCreds()
      Returns a valid MlflowHostCreds.
      java.lang.String getPassword()
      Password to use with Basic authentication when talking to server.
      java.lang.String getToken()
      Token to use with Bearer authentication when talking to server.
      java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicMlflowHostCreds

        public BasicMlflowHostCreds​(java.lang.String host)
      • BasicMlflowHostCreds

        public BasicMlflowHostCreds​(java.lang.String host,
                                    java.lang.String username,
                                    java.lang.String password)
      • BasicMlflowHostCreds

        public BasicMlflowHostCreds​(java.lang.String host,
                                    java.lang.String token)
      • BasicMlflowHostCreds

        public BasicMlflowHostCreds​(java.lang.String host,
                                    java.lang.String username,
                                    java.lang.String password,
                                    java.lang.String token,
                                    boolean shouldIgnoreTlsVerification)
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Description copied from interface: MlflowHostCreds
        Hostname (e.g., http://localhost:5000) to MLflow server.
        Specified by:
        getHost in interface MlflowHostCreds
      • getUsername

        public java.lang.String getUsername()
        Description copied from interface: MlflowHostCreds
        Username to use with Basic authentication when talking to server. If this is specified, password must also be specified.
        Specified by:
        getUsername in interface MlflowHostCreds
      • getPassword

        public java.lang.String getPassword()
        Description copied from interface: MlflowHostCreds
        Password to use with Basic authentication when talking to server. If this is specified, username must also be specified.
        Specified by:
        getPassword in interface MlflowHostCreds
      • getToken

        public java.lang.String getToken()
        Description copied from interface: MlflowHostCreds
        Token to use with Bearer authentication when talking to server. If provided, user/password authentication will be ignored.
        Specified by:
        getToken in interface MlflowHostCreds
      • shouldIgnoreTlsVerification

        public boolean shouldIgnoreTlsVerification()
        Description copied from interface: MlflowHostCreds
        If 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:
        shouldIgnoreTlsVerification in interface MlflowHostCreds