Class ValidationRequest
java.lang.Object
dev.demeng.sentinel.client.license.validation.ValidationRequest
Request parameters for a license validation call.
Use builder() to construct an instance. The product must be identified in one of two
mutually exclusive ways: either by setting ValidationRequest.Builder.product(String), or by setting both
ValidationRequest.Builder.listingPlatform(String) and ValidationRequest.Builder.listingResourceId(String) (used to
resolve a product through one of its platform listings). This XOR rule is enforced by the server.
If server is not set, it defaults to the machine fingerprint generated by MachineFingerprint.generate().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for constructingValidationRequestinstances. -
Method Summary
-
Method Details
-
builder
Creates a newValidationRequest.Builderfor constructing aValidationRequest.- Returns:
- a new builder instance
-
getKey
- Returns:
- the license key, or
nullif not set
-
getProduct
- Returns:
- the product identifier, or
nullif the product is being identified by platform listing instead
-
getServer
- Returns:
- the server identifier (defaults to the machine fingerprint if not explicitly set)
-
getIp
- Returns:
- the client IP address, or
nullif not set
-
getConnectionPlatform
- Returns:
- the connection platform (e.g.
"discord"), ornullif not set
-
getConnectionValue
- Returns:
- the connection value (e.g. a user ID), or
nullif not set
-
getListingPlatform
- Returns:
- the platform on which the product is listed (e.g.
"Spigot"), ornullif the product is being identified by name instead
-
getListingResourceId
- Returns:
- the platform-side resource ID for the listing (e.g. a Spigot resource ID), or
nullif the product is being identified by name instead
-