Interface TokenRequest._FinalStage

All Known Implementing Classes:
TokenRequest.Builder
Enclosing class:
TokenRequest

public static interface TokenRequest._FinalStage
  • Method Details

    • build

      TokenRequest build()
    • additionalProperty

      TokenRequest._FinalStage additionalProperty(String key, Object value)
    • additionalProperties

      TokenRequest._FinalStage additionalProperties(Map<String,Object> additionalProperties)
    • userId

      The Vectros user ID of the end user this token is minted for. This is the UUID returned when you created the user via POST /v1/users. Optional — omit it for service-to-service tokens that have no specific user context. If provided, it must reference a real user in your account. Use GET /v1/users?externalId={yourId} to resolve your own system's user ID to the Vectros user ID.

    • userId

    • contextId

      TokenRequest._FinalStage contextId(Optional<String> contextId)

      The app context to mint the token into. Optional — omit it to inherit your own credential's context (a root API key defaults to default). Must reference an app context that already exists in your tenant (create one via POST /v1/app-contexts); an unrecognized value returns a uniform 404 not found. Only meaningful for root API key callers — this endpoint is root-key-only, so there is no confined credential this could let reach a context it doesn't hold.

    • contextId

      TokenRequest._FinalStage contextId(String contextId)
    • expiresInSeconds

      TokenRequest._FinalStage expiresInSeconds(Optional<Integer> expiresInSeconds)

      How long the token remains valid, in seconds. Maximum 3600 (1 hour), which is also the default.

    • expiresInSeconds

      TokenRequest._FinalStage expiresInSeconds(Integer expiresInSeconds)