> +import org.jclouds.rest.annotations.Headers;
> +import org.jclouds.rest.annotations.RequestFilters;
> +
> +import com.google.common.base.Charsets;
> +import com.google.common.io.BaseEncoding;
> +
> +public interface AuthorizationApi {
> + @Named("b2_authorize_account")
> + @GET
> + @Path("/b2api/v1/b2_authorize_account")
> + @Headers(keys = "Authorization", values = "{accountId}:{applicationKey}")
> + @RequestFilters(Base64EncodeAuthorization.class)
> + @Consumes(APPLICATION_JSON)
> + Authorization authorizeAccount(@PathParam("accountId") String accountId,
> @PathParam("applicationKey") String applicationKey);
> +
> + static final class Base64EncodeAuthorization implements HttpRequestFilter
> {
This class is not needed; jclouds already provides it.
---
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/270/files/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64120170