Package com.google.auth
Interface RequestMetadataCallback
public interface RequestMetadataCallback
The callback that receives the result of the asynchronous
Credentials.getRequestMetadata(java.net.URI, java.util.concurrent.Executor, RequestMetadataCallback)
. Exactly one method should be called.-
Method Summary
-
Method Details
-
onSuccess
Called when metadata is successfully produced.- Parameters:
metadata
- Metadata returned for the request.
-
onFailure
Called when metadata generation failed.- Parameters:
exception
- The thrown exception which caused the request metadata fetch to fail.
-