> +    @Inject
> +    public AuthenticateRequest(@Provider Supplier<Credentials> splr) {
> +        authToken = splr.get();
> +    }
> +
> +    public static String TokenBased() {
> +        return authToken.identity;
> +    }
> +
> +    public static String TokenBased(String auth_token) {
> +        return auth_token;
> +    }
> +
> +    @Override
> +    public HttpRequest filter(HttpRequest request) throws HttpException {
> +        checkNotNull(authToken.identity, "credential returned null");

Move this to the constructor.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/275/files/0767d011a984011133c9e34b3389b449ca0756cd#r68670117

Reply via email to