> +import org.jclouds.location.Provider;
> +import org.jclouds.rest.AuthorizationException;
> +
> +import com.google.common.base.Supplier;
> +
> +/**
> + * Shipyard remote API authentication is made via the HTTP header 
> 'X-Service-Key' which in turns
> + * has it's value as an encoded string (Shipyard-cli generates this for you).
> + * 
> + */
> +@Singleton
> +public class ServiceKeyAuthentication implements HttpRequestFilter {
> +   private final Supplier<Credentials> creds;
> +
> +   @Inject
> +   protected ServiceKeyAuthentication(@Provider Supplier<Credentials> creds) 
> {

Make all Guice constructors package private by removing the method modifier. 
Just:
```java
@Inject
ServiceKeyAuthentication(@Provider Supplier<Credentials> creds) {
```

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/116/files#r22195861

Reply via email to