Interface DsqlUtilities
- All Known Implementing Classes:
DefaultDsqlUtilities
public interface DsqlUtilities
Utilities for working with DSQL. An instance of this class can be created by:
1) Using the low-level client DsqlClient.utilities()
(or DsqlAsyncClient.utilities()
} method.
This is recommended as SDK will use the same configuration from the DsqlClient
object to create the
DsqlUtilities
object.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for creating an instance ofDsqlUtilities
. -
Method Summary
Modifier and TypeMethodDescriptionstatic DsqlUtilities.Builder
builder()
Create a builder that can be used to configure and create aDsqlUtilities
.default String
Generates an admin authentication token for IAM authentication to an DSQL database.default String
Generates an admin authentication token for IAM authentication to an DSQL database.default String
Generates an authentication token for IAM authentication to an DSQL database.default String
Generates an authentication token for IAM authentication to an DSQL database.
-
Method Details
-
builder
Create a builder that can be used to configure and create aDsqlUtilities
. -
generateDbConnectAuthToken
Generates an authentication token for IAM authentication to an DSQL database.- Parameters:
request
- The request used to generate the authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-
generateDbConnectAuthToken
Generates an authentication token for IAM authentication to an DSQL database.- Parameters:
request
- The request used to generate the authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-
generateDbConnectAdminAuthToken
Generates an admin authentication token for IAM authentication to an DSQL database.- Parameters:
request
- The request used to generate the admin authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-
generateDbConnectAdminAuthToken
Generates an admin authentication token for IAM authentication to an DSQL database.- Parameters:
request
- The request used to generate the admin authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException
- if the required parameters are not valid
-