Class LocalAppIdentityService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.appidentity.dev.LocalAppIdentityService
- All Implemented Interfaces:
LocalRpcService
@AutoService(LocalRpcService.class)
public class LocalAppIdentityService
extends AbstractLocalRpcService
Stub implementation of the app identity service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultGcsBucketName(LocalRpcService.Status status, AppIdentityServicePb.GetDefaultGcsBucketNameRequest request) Returns the package for the service, for example, "datastore_v3".getPublicCertificatesForApp(LocalRpcService.Status status, AppIdentityServicePb.GetPublicCertificateForAppRequest request) getServiceAccountName(LocalRpcService.Status status, AppIdentityServicePb.GetServiceAccountNameRequest request) voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.signForApp(LocalRpcService.Status status, AppIdentityServicePb.SignForAppRequest request) voidstart()Puts a new service into "serving" mode.voidstop()Stops the service, releasing all of its resources.Methods inherited from class com.google.appengine.tools.development.AbstractLocalRpcService
getDefaultDeadline, getMaxApiRequestSize, getMaximumDeadline
-
Field Details
-
PACKAGE
- See Also:
-
PRIVATE_KEY_PATH
- See Also:
-
PUBLIC_CERT_PATH
- See Also:
-
-
Constructor Details
-
LocalAppIdentityService
public LocalAppIdentityService()
-
-
Method Details
-
getPackage
Returns the package for the service, for example, "datastore_v3".- Returns:
- a not
nullpackage name.
-
init
Initializes the service with a set of configuration properties. Must be called before a service isstarted.- Specified by:
initin interfaceLocalRpcService- Overrides:
initin classAbstractLocalRpcService- Parameters:
context- A context object for the applicationproperties- A read-onlyMapof properties.
-
start
public void start()Puts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.- Specified by:
startin interfaceLocalRpcService- Overrides:
startin classAbstractLocalRpcService
-
stop
public void stop()Stops the service, releasing all of its resources.- Specified by:
stopin interfaceLocalRpcService- Overrides:
stopin classAbstractLocalRpcService
-
signForApp
public AppIdentityServicePb.SignForAppResponse signForApp(LocalRpcService.Status status, AppIdentityServicePb.SignForAppRequest request) throws Exception - Throws:
Exception
-
getPublicCertificatesForApp
public AppIdentityServicePb.GetPublicCertificateForAppResponse getPublicCertificatesForApp(LocalRpcService.Status status, AppIdentityServicePb.GetPublicCertificateForAppRequest request) -
getServiceAccountName
public AppIdentityServicePb.GetServiceAccountNameResponse getServiceAccountName(LocalRpcService.Status status, AppIdentityServicePb.GetServiceAccountNameRequest request) -
getDefaultGcsBucketName
public AppIdentityServicePb.GetDefaultGcsBucketNameResponse getDefaultGcsBucketName(LocalRpcService.Status status, AppIdentityServicePb.GetDefaultGcsBucketNameRequest request) -
getAccessToken
public AppIdentityServicePb.GetAccessTokenResponse getAccessToken(LocalRpcService.Status status, AppIdentityServicePb.GetAccessTokenRequest request)
-