Fleet Engine 인증 라이브러리를 사용하여 Java 환경에서 서명된 JSON 웹 토큰을 만들 수 있습니다. Fleet Engine은 JWT를 사용하여 신뢰할 수 없는 환경에서 Fleet Engine API에 대한 액세스를 제한합니다. Fleet Engine 인증 라이브러리는 Java에서 Fleet Engine JWT의 구성을 간소화하고 안전하게 서명합니다. 자세한 내용은 Java용 Fleet Engine 인증 라이브러리를 참고하세요.
이 라이브러리는 다음과 같은 이점을 제공합니다.
Fleet Engine 토큰 생성 프로세스를 간소화합니다.
사용자 인증 정보 파일을 사용하는 것 외에 토큰 서명 메커니즘을 제공합니다 (예: 서비스 계정 가장).
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-17(UTC)"],[[["\u003cp\u003eFor server-to-server communication, Google recommends using their language-specific client libraries, which are based on protobuf files found on GitHub.\u003c/p\u003e\n"],["\u003cp\u003eIf a client library isn't available in your language, utilize gRPC or the Fleet Engine REST endpoints.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud Client Libraries are designed for trusted server environments and should be used with Application Default Credentials and the \u003ccode\u003eondemandAdmin\u003c/code\u003e role; JWTs are not needed in this context.\u003c/p\u003e\n"],["\u003cp\u003eThe Fleet Engine Authentication Library simplifies the creation and signing of JWTs for securing Fleet Engine API access in untrusted environments, particularly recommended for Java implementations.\u003c/p\u003e\n"],["\u003cp\u003eLibraries for various languages like Java, Node.js, Go, Python, C#, PHP, and Ruby are available with instructions and links for installation provided.\u003c/p\u003e\n"]]],[],null,["For a better experience than developing over raw REST or gRPC for\nserver-to-server communication, use Google's language-specific client libraries.\nGet the protobuf files these clients are based on by visiting the [GitHub](https://github.com/googleapis/googleapis/tree/master/google/maps/fleetengine/v1)\nrepository.\n\nIf libraries don't exist in your application's language, use gRPC or the\n[Fleet Engine REST](/maps/documentation/mobility/fleet-engine/reference/trips/rest) endpoints.\n| **Note:** Google Cloud Client Libraries are intended to run in trusted server environments. JWTs are unnecessary. Use [Application Default\n| Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) along with the appropriate `ondemandAdmin` role.\n\nJava\n\nJava libraries are published to public Maven repositories as\n[`com.google.maps:google-maps-fleetengine`](https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine). \n\nGradle \n\n dependencies {\n implementation 'com.google.maps:google-maps-fleetengine:latest.release'\n }\n\nMaven \n\n \u003cproject\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.maps\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-maps-fleetengine\u003c/artifactId\u003e\n \u003cversion\u003eLATEST\u003c/version\u003e\n \u003c/dependency\u003e\n \u003c/project\u003e\n\nSee Java examples for interacting with the Fleet Engine API on the\n[Getting started with Fleet Engine](/maps/documentation/mobility/fleet-engine/essentials/vehicles/on-demand-create-vehicle#vehicle_creation_example) page.\n\nFleet Engine Authentication Library\n\nYou can use the Fleet Engine Authentication Library to create signed JSON web\ntokens in the Java environment. Fleet Engine uses JWTs to restrict access to\nFleet Engine APIs in untrusted environments. The Fleet Engine Authentication\nLibrary simplifies construction of Fleet Engine JWTs in Java and securely signs\nthem. For details, see [Fleet Engine Authentication Library for Java](https://github.com/googlemaps/java-fleetengine-auth).\n\nThe library provides the following benefits:\n\n- Simplifies the process of creating Fleet Engine Tokens.\n- Provides token signing mechanisms other than using credential files (such as impersonating a service account.)\n\n| **Important:** Google highly recommends using the Fleet Engine Authentication Library with all Java implementations.\n\nNode.js / TypeScript\n\nSee \u003chttps://www.npmjs.com/package/@googlemaps/fleetengine\u003e \n\nnpm \n\n npm install @googlemaps/fleetengine\n\nGo Experimental Library\n\nThe Go library is packaged as a module at\n\u003chttps://pkg.go.dev/cloud.google.com/go/maps\u003e\n\nPython Experimental Library\n\nSee \u003chttps://pypi.org/project/google-maps-fleetengine/0.1.0/\u003e \n\npip \n\n pip install google-auth\n pip install google-maps-fleetengine\n\nC# Experimental Library\n\nInstallation instructions for the C# library can be found at\n\u003chttps://www.nuget.org/packages/Google.Maps.FleetEngine.V1\u003e.\n\nPHP Experimental Library\n\nSee \u003chttps://packagist.org/packages/google/maps-fleetengine\u003e.\n\nRuby Experimental Library\n\nSee \u003chttps://rubygems.org/gems/google-maps-fleet_engine\u003e."]]