Class ServerCredentials.ServerCredentialsBuilder

  • Enclosing class:
    ServerCredentials

    public static class ServerCredentials.ServerCredentialsBuilder
    extends java.lang.Object
    • Method Detail

      • password

        public ServerCredentials.ServerCredentialsBuilder password​(java.lang.String password)
        The password that will be used for authenticating connections to the servers. Mutually exclusive with iamConfig.
        Returns:
        this.
      • username

        public ServerCredentials.ServerCredentialsBuilder username​(java.lang.String username)
        The username that will be used for authenticating connections to the servers. If not supplied for password-based authentication, "default" will be used. Required for IAM authentication.
        Returns:
        this.
      • iamConfig

        public ServerCredentials.ServerCredentialsBuilder iamConfig​(IamAuthConfig iamConfig)
        IAM authentication configuration. Mutually exclusive with password. The client will automatically generate and refresh the authentication token based on the provided configuration.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object