Java library to talk to swift (OpenStack) with keystone authentication - java

Is there a java library that supports swift (OpenStack) with keystone authentication?
It seems to be work in progress in JClouds but not finished yet, and cloudfiles does not seem to support it (yet) either.

JOSS is a dedicated OpenStack Swift binding for Java using Keystone authentication. On the Github page, there are several tutorials to see how it works.
Disclaimer: I am one of the authors of JOSS

A complete overhaul of swift (called openstack-swift) is in progress. In the mean time, you can use any jclouds 1.7 release with the provider key "swift-keystone".
Ex.
view = ContextBuilder.newBuilder("swift-keystone") // or new SwiftKeystoneApiMetadata()
.credentials("tenantName:userName", "password")
.endpoint("http://localhost:5000/v2.0")
.buildView(BlobStoreContext.class);

Related

Integrating 3rd party API with jhipster based webapp

I am trying to build a simple web app using jHipster. Currently I am trying to build a simple stock entity that will enable a user to input the stock name and the entity should generate a listing of that stock with open, high, low and close data. I am unable to figure out how to integrate the web app with a third party API that supplies the data. I could not find any documentation regarding this issue online. Thank you.
I found this tutorial on implementing API's that might help.
What you need to do is create an HTTP client that can access your API.
I'm not too familiar with jHipster but finding the proper library to import seems like a good first step. Good luck.
Source:
https://zapier.com/learn/apis/chapter-8-implementation/
If you aren't sure which language to choose, a great way to narrow down the selection can be to find an API you want to implement and see if the company provides a client library. A library is code that the API owner publishes that already implements the client side of their API. Sometimes the library will be individually available for download or it will be bundled in an SDK (Software Development Kit). Using a library saves you time because instead of reading the API documentation and forming raw HTTP requests, you can simply copy and paste a few lines of code and already have a working client.

Cloudfront limited time (signed) URL using Java AWS SDK

How do I create cloudfront signed URL using AWS SDK?
This really seems like it should be easy to do, but I just fail to see it. I generally understand how it works and could probably throw together plain Java code to do it myself. It seems weird that AWS SDK does not provide a method for this.
Earlier question but with C#: cloudfront private time limited url.
This link explains in theory how such cloudfront urls are generated, but without code examples
This link explains how it is done with Java, but it apparently uses JetS3t library instead of AWS SDK. at least I have been unable to locate the used CloudFrontService class in AWS SDK Javadoc
This link demonstrates how it is done for S3 using AWS SDK
This blog post I found referenced in another related question contains source code for a java class CloudFrontSecurityProvider to do the signing and it is not very complicated.
FYI - This blog explains how it is done in Java... very simple.
java.awsblog.com/post/Tx1VE22EWFR4H86/Accessing-Private-Content-in-Amazon-CloudFront

Google transliteration API in Java Swing project

I'm working on a transliteration project in Java Swing. It can access the internet, but I'm unable to set it up. How do we do that? Do we need to download the Google API libraries or just a function call will do?
Here are some useful Transliteration links:
The Google Transliterate API Devloper's Guide
Google API library for Java for download
(I think it has all API libraries of Google:Translate, transliterate, search, etc.)
I spent a lot of time, but Icouldn't find how to set up the Transliteration API, not even at SO.
Seems the transliteration API is deprecated and is not included in the Java client, only in the JavaScript client.
The actual calls the JS library makes are pretty simple and could easily be replicated from anywhere:
http://www.google.com/inputtools/request?ime=transliteration_en_ru&num=5&cp=0&cs=0&ie=utf-8&oe=utf-8&text=prosto
Don't know if doing that is against Google's terms, though. Probably it is.
You could also try running the Ajax client in Rhino. You'll need env-js which provides a pure javascript DOM environment.
It's just hideous enough to work!

Java library for authentication and importing contacts

I need to develop following functionality for my JSF web application:
Authenticating users through external providers like Gmail, Hotmail, Yahoo, Twitter, Facebook, LinkedIn, Foursquare, MySpace
Importing their contacts from them (Gmail, Yahoo)
I am planning to use SocialAuth Java library for the same, can some one how has used them tell me about your experience with it?
If someone know some better approach for the same, please let me know!
socialauth is your best bet! it supports almost all providers and supports a large variety of java frameworks. Even if you are not using Struts or Spring, you can use the libraries and integrate it with any framework you want.
They also have a very good documentation and examples online:
http://code.google.com/p/socialauth/
Also Check this previous Question :
Taking contact list from hotmail gmail yahoo in java?

Are there MSNP Implementation for Java, ActionScript (Flash) exist?

Interesting if there any Implementation of MSNP Live Messanges Protocol for Java or ActionScript (Flash)?
Here's one for ActionScript: http://code.google.com/p/as3msnp/
This seems to be the only one: http://sourceforge.net/apps/trac/java-jml
As per Microsoft new policy towards Skype MSNP12 protocol is not working.
major host of following reference are now responding
Microsoft Service host and ports
So, JML lib is now useless which work over MSNP8-15.
Here is another thread over MSNP - What's the future of MSNP
I used the below API in a chating server we were developing 4 years ago , at that time MSNP10 was working with us.You can download the API from below link and I found it very easy to getting started with this API based on the documentation and examples they have provided on their website.
http://sourceforge.net/apps/trac/java-jml/
Good Luck.

Categories

Resources