DataSyncGrantType

sealed interface DataSyncGrantType : TokenGrant

Marker type accepted by the dataSync parameter of com.pubnub.api.PubNub.grantToken.

This interface is sealed: only the SDK's own concrete grant classes may implement it. External callers create instances through the DataSyncGrant factory. Sealing prevents a caller from supplying a grant with an unknown namespace (e.g. a typo) that the serializer would otherwise silently drop from the minted token.

Properties

Link copied to clipboard
abstract val create: Boolean
Link copied to clipboard
abstract val delete: Boolean
Link copied to clipboard
abstract val get: Boolean
Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val join: Boolean
Link copied to clipboard
abstract val manage: Boolean
Link copied to clipboard
abstract val namespace: String
Link copied to clipboard
abstract val projection: String?

The single DataSync projection the token holder looks through for this resource, or null for the implicit __default__ projection. This is the token-level viewing projection (the ADR's pn-projections value is a single projection name); it is distinct from the schema-level field→projections mapping.

Link copied to clipboard
abstract val read: Boolean
Link copied to clipboard
abstract val update: Boolean
Link copied to clipboard
abstract val write: Boolean