> +
> + public static TemporaryUrlSigner checkApiEvery(final AccountApi api, long
> seconds) {
> + Supplier<String> keySupplier = memoizeWithExpiration(new
> TemporaryUrlKeyFromAccount(api), seconds, SECONDS);
> + return new TemporaryUrlSigner(keySupplier);
> + }
> +
> + private final Supplier<String> keySupplier;
> +
> + TemporaryUrlSigner(Supplier<String> keySupplier) {
> + this.keySupplier = keySupplier;
> + }
> +
> + public String sign(String method, String path, long
> expirationTimestampSeconds) {
> + checkNotNull(method, "method");
> + checkNotNull(path, "path");
> + checkArgument(expirationTimestampSeconds > 0, "expirationTimestamp
> must be a unix epoch timestamp");
"...but was: %d"?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/32/files#r7235165