Implementation:Treeverse LakeFS Java SDK Model CredentialsWithSecret
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing credentials including the secret access key in the lakeFS Java SDK.
Description
The CredentialsWithSecret class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to credential fields including the secret key through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when receiving newly created credentials (with the secret key visible) through the lakeFS Java SDK API classes.
Code Reference
Source Location
- Repository: Treeverse_LakeFS
- File: clients/java/src/main/java/io/lakefs/clients/sdk/model/CredentialsWithSecret.java
- Lines: 1-353
Signature
public class CredentialsWithSecret {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.CredentialsWithSecret;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| accessKeyId | String | Yes | The access key ID for the credentials |
| secretAccessKey | String | Yes | The secret access key (only available at creation time) |
| creationDate | Long | Yes | Epoch timestamp when the credentials were created |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.CredentialsWithSecret;
CredentialsWithSecret obj = new CredentialsWithSecret();
obj.setAccessKeyId("AKIAIOSFODNN7EXAMPLE");
obj.setSecretAccessKey("wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY");
obj.setCreationDate(1700000000L);
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment