Implementation:Treeverse LakeFS Java SDK Model AuthenticationToken
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Java_SDK, Data_Model |
| Last Updated | 2026-02-08 00:00 GMT |
Overview
Concrete data transfer object representing a JWT authentication token in the lakeFS Java SDK.
Description
The AuthenticationToken class is an auto-generated model object produced by OpenAPI Generator from the lakeFS API specification. It provides type-safe access to authentication token fields through getter/setter methods and supports JSON serialization via Gson.
Usage
Use this model when working with authentication tokens returned from login operations 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/AuthenticationToken.java
- Lines: 1-320
Signature
public class AuthenticationToken {
// Fields with @SerializedName annotations
// Getter/setter methods
// equals, hashCode, toString
// JSON type adapter
}
Import
import io.lakefs.clients.sdk.model.AuthenticationToken;
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| token | String | Yes | A JWT token that could be used to authenticate requests |
| tokenExpiration | Long | No | Token expiration timestamp as epoch seconds |
Outputs
| Name | Type | Description |
|---|---|---|
| JSON | String | Serialized JSON representation |
Usage Examples
Creating an Instance
import io.lakefs.clients.sdk.model.AuthenticationToken;
AuthenticationToken obj = new AuthenticationToken();
obj.setToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...");
obj.setTokenExpiration(1700000000L);
Principle
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment