> - expirationSeconds = expirationSeconds > 30 ? expirationSeconds - 30 :
> expirationSeconds;
> - return CacheBuilder.newBuilder().expireAfterWrite(expirationSeconds,
> SECONDS).build(CacheLoader.from(getAccess));
> - }
> -
> - /**
> - * Defers instantiation of {@linkplain SignOrProduceMacForToken} so as to
> avoid requiring private keys when the alg
> - * is set to {@linkplain org.jclouds.oauth.v2.JWSAlgorithms#NONE}.
> - */
> - @Provides @Singleton Supplier<Function<byte[], byte[]>>
> signOrProduceMacForToken(@Named(JWS_ALG) String jwsAlg,
> - Provider<SignOrProduceMacForToken> in) {
> - if (jwsAlg.equals(NONE)) { // Current implementation requires we
> return null on none.
> - return (Supplier) Suppliers.ofInstance(Functions.constant(null));
> - }
> - return Suppliers.memoize(in.get());
> + @Authorization
> + protected Supplier<URI>
> oauthEndpoint(@javax.inject.Named("oauth.endpoint") String endpoint) {
> but seems I need to do a global sweep.
There's another one down here ;-)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/96/files#r20550173