Beispiel #1
0
 @Override
 public void set(SsoAuthData value, String name, HttlRequestBuilder<?> builder) {
   // quite hackish way to pass api_secret here
   String api_secret = builder.getParameters().getFirst("api_secret");
   if (api_secret == null) {
     throw new DisqusException("api_secret parameter not found");
   }
   String remote_auth = SsoAuthenticator.remote_auth_s3(value, api_secret);
   builder.param("remote_auth_s3", remote_auth);
 }
Beispiel #2
0
 @Override
 public void set(Vote value, String name, HttlRequestBuilder<?> builder) {
   builder.param(name, value.value);
 }