AI-generated Key Takeaways
-
GMTDAuthorizationis a protocol for providing authorization tokens for gRPC calls, ensuring access to Fleet Engine service accounts with a minimum 5-minute token lifetime and thread-safe implementation. -
GMTDVehicleReporterListeneris a protocol designed to respond to periodic vehicle updates transmitted byGMTDVehicleReporter. -
Both of these protocols are available globally for use, as indicated by the context of the surrounding content.
Protocols
The following protocols are available globally.
-
Protocol used to provide authorization tokens for gRPC calls. These tokens give access to the Fleet Engine service accounts.
The implementation should ensure that a valid authorization token is always available. The authorization token should have a minimum lifetime of 5 minutes to allow for requests to complete. Therefore, the authorization token must automatically renew expiring tokens and minimize the number of token refreshes by re-using a token until its lifetime nears its end.
Implementations of this protocol must be thread-safe.
Declaration
Swift
protocol GMTDAuthorization : NSObjectProtocolObjective-C
@protocol GMTDAuthorization <NSObject> -
Protocol for responding to periodic vehicle updates sent by
GMTDVehicleReporter.Declaration
Swift
protocol GMTDVehicleReporterListener : NSObjectProtocolObjective-C
@protocol GMTDVehicleReporterListener <NSObject>