jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Sun, 22 May 2016 20:39:21 GMT
> +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 {

Done.

---
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#r64155923
Mime
View raw message