This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String signSha256WithRsa(String toSign, String privateKeyString) { | |
if (toSign == null || privateKeyString == null) { | |
return null; | |
} | |
try { | |
KeyFactory kf = KeyFactory.getInstance("RSA"); | |
KeySpec keySpec = new PKCS8EncodedKeySpec(org.apache.commons.codec.binary | |
.Base64.decodeBase64(privateKeyString.getBytes("utf-8"))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LowestOfferListing{qualifier=Qualifier{itemCondition='New', itemSubCondition='New', fulfillmentChannel='Amazon', shipsDomestically=true, shippingTime=ShippingTime{max='0-2 days'}, sellerPositiveFeedbackRating='98-100%'}, numberOfOfferListingsConsidered=1, sellerFeedbackCount=291489, price=Price{landedPrice=PriceItem{currencyCode='USD', amount=10.79}, listingPrice=PriceItem{currencyCode='USD', amount=10.79}, shippingPrice=PriceItem{currencyCode='USD', amount=0.0}}, multipleOffersAtLowestPrice=false, merchantId='null'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="Theme.Bla_bla" parent="@android:style/Theme.Holo.Light"> | |
<item name="android:actionBarItemBackground">@drawable/selectable_background_bla_bla</item> | |
<item name="android:popupMenuStyle">@style/PopupMenu.bla_bla</item> | |
<item name="android:dropDownListViewStyle">@style/DropDownListView.bla_bla</item> | |
<item name="android:actionBarTabStyle">@style/ActionBarTabStyle.bla_bla</item> | |
<item name="android:actionDropDownStyle">@style/DropDownNav.bla_bla</item> | |
<item name="android:actionBarStyle">@style/ActionBar.Solid.bla_bla</item> | |
<item name="android:actionModeBackground">@drawable/cab_background_top_bla_bla</item> | |
<item name="android:actionModeSplitBackground">@drawable/cab_background_bottom_bla_bla</item> | |
<item name="android:actionModeCloseButtonStyle">@style/ActionButton.CloseMode.bla_bla</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setupActionBar() { | |
/** {@link ActionBarSherlock} logic */ | |
ActionBarUtil.getInstance().initActionBar(getLayoutInflater(), getSupportActionBar()); | |
if (getSupportActionBar() != null) { | |
infoButtonWrapper = (FrameLayout) findViewById(R.id.info_button_wrapper); | |
infoButton = (ImageButton) findViewById(R.id.info_button); | |
infoButton.setOnClickListener(this); | |
infoBaseButton = (ImageButton) findViewById(R.id.info_base_button); | |
infoBaseButton.setBackgroundResource(R.drawable.icon_more_info); | |
setInfoButtonVisibility(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Provides | |
@Singleton | |
RestAdapter provideRestAdapter(Endpoint endpoint, Client client, ApiHeaders apiHeaders) { | |
return new RestAdapter.Builder() | |
.setClient(client) | |
.setEndpoint(endpoint) | |
.setRequestInterceptor(apiHeaders) | |
.build(); | |
} |