@@ -456,27 +456,27 @@ public WriteChannel writer(BlobWriteOption... options) {
456456 /**
457457 * Generates a signed URL for this blob. If you want to allow access for a fixed amount of time to
458458 * this blob, you can use this method to generate a URL that is only valid within a certain time
459- * period. This is particularly useful if you don't want publicly accessible blobs, but don't want
460- * to require users to explicitly log in. Signing a URL requires a service account
461- * and its associated private key. If a {@link AuthCredentials.ServiceAccountAuthCredentials} was
462- * passed to {@link StorageOptions.Builder#authCredentials(AuthCredentials)} or the default
463- * credentials are being used and the environment variable {@code GOOGLE_APPLICATION_CREDENTIALS}
464- * is set, then {@code signUrl} will use that service account and associated key to sign the URL.
465- * If the credentials passed to {@link StorageOptions} do not expose a private key (this is the
466- * case for App Engine credentials, Compute Engine credentials and Google Cloud SDK credentials)
467- * then {@code signUrl} will throw an {@link IllegalArgumentException} unless a service account
468- * with associated key is passed using the {@code SignUrlOption.serviceAccount()} option. The
469- * service account and private key passed with {@code SignUrlOption.serviceAccount()} have
470- * priority over any credentials set with
471- * {@link StorageOptions.Builder#authCredentials(AuthCredentials)}.
459+ * period. This is particularly useful if you don't want publicly accessible blobs, but also don't
460+ * want to require users to explicitly log in. Signing a URL requires a service account and its
461+ * associated private key. If a {@link AuthCredentials.ServiceAccountAuthCredentials} was passed
462+ * to {@link StorageOptions.Builder#authCredentials(AuthCredentials)} or the default credentials
463+ * are being used and the environment variable {@code GOOGLE_APPLICATION_CREDENTIALS} is set, then
464+ * {@code signUrl} will use that service account and associated key to sign the URL. If the
465+ * credentials passed to {@link StorageOptions} do not expose a private key (this is the case for
466+ * App Engine credentials, Compute Engine credentials and Google Cloud SDK credentials) then
467+ * {@code signUrl} will throw an {@link IllegalArgumentException} unless a service account with
468+ * associated key is passed using the {@code SignUrlOption.serviceAccount()} option. The service
469+ * account and private key passed with {@code SignUrlOption.serviceAccount()} have priority over
470+ * any credentials set with {@link StorageOptions.Builder#authCredentials(AuthCredentials)}.
472471 *
473- * <p>Example usage of creating a signed URL that is valid for 2 weeks:
472+ * <p>Example usage of creating a signed URL that is valid for 2 weeks, using the default
473+ * credentials for signing the URL:
474474 * <pre> {@code
475475 * blob.signUrl(14, TimeUnit.DAYS);
476476 * }</pre>
477477 *
478478 * <p>Example usage of creating a signed URL passing the {@code SignUrlOption.serviceAccount()}
479- * option:
479+ * option, that will be used for signing the URL :
480480 * <pre> {@code
481481 * blob.signUrl(14, TimeUnit.DAYS, SignUrlOption.serviceAccount(
482482 * AuthCredentials.createForJson(new FileInputStream("/path/to/key.json"))));
0 commit comments