Package com.cognite.client.config
Class AuthConfig
- java.lang.Object
-
- com.cognite.client.config.AuthConfig
-
- All Implemented Interfaces:
Serializable
public abstract class AuthConfig extends Object implements Serializable
Class representing the Cognite Data Fusion (CDF) project information: - Host. The default host ishttps://api.cognitedata.com. - Project. This is the name of a specific, isolated CDF environment. This information is used to uniquely identify which Cognite Data Fusion project/environment to connect with.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthConfig.Builder
-
Constructor Summary
Constructors Constructor Description AuthConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AuthConfigcreate()abstract StringgetHost()abstract StringgetProject()static AuthConfigof(String cdfProject)abstract AuthConfig.BuildertoBuilder()StringtoString()AuthConfigwithHost(String host)Configure a specific Cognite Data Fusion host.AuthConfigwithProject(String project)Set the Cognite Data Fusion project (environment) to connect with.
-
-
-
Method Detail
-
create
public static AuthConfig create()
-
of
public static AuthConfig of(String cdfProject)
-
getProject
@Nullable public abstract String getProject()
-
getHost
public abstract String getHost()
-
toBuilder
public abstract AuthConfig.Builder toBuilder()
-
withHost
public AuthConfig withHost(String host)
Configure a specific Cognite Data Fusion host. This is relevant configuration for users of dedicated clusters or with custom routing configurations. The default host ishttps://api.cognitedata.com.- Parameters:
host- The CDF host to connect to.
-
withProject
public AuthConfig withProject(String project)
Set the Cognite Data Fusion project (environment) to connect with.- Parameters:
project- The project id to interact with.
-
-