Record Class UploadTokenClaims
java.lang.Object
java.lang.Record
ai.pipeline.connector.intake.token.UploadTokenClaims
- Record Components:
accountId- owning account the upload was resolved todatasourceId- datasource the upload arrived ondocId- the platform doc_id ({datasourceId}:{uuid})issuedAt- epoch seconds the token was minted
public record UploadTokenClaims(String accountId, String datasourceId, String docId, long issuedAt)
extends Record
The tenant-scoped identity carried inside an
UploadTrackingToken.
These claims are signed (not secret): the token is opaque-ish but the point is integrity and scoping, not confidentiality. They let a status lookup resolve which document a caller is asking about and confirm it belongs to the account that uploaded it — without the caller being able to forge or enumerate other documents.
-
Constructor Summary
ConstructorsConstructorDescriptionUploadTokenClaims(String accountId, String datasourceId, String docId, long issuedAt) Creates an instance of aUploadTokenClaimsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.Returns the value of thedatasourceIdrecord component.docId()Returns the value of thedocIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longissuedAt()Returns the value of theissuedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UploadTokenClaims
Creates an instance of aUploadTokenClaimsrecord class.- Parameters:
accountId- the value for theaccountIdrecord componentdatasourceId- the value for thedatasourceIdrecord componentdocId- the value for thedocIdrecord componentissuedAt- the value for theissuedAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accountId
-
datasourceId
Returns the value of thedatasourceIdrecord component.- Returns:
- the value of the
datasourceIdrecord component
-
docId
-
issuedAt
-