1

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.

Carsten
  • 4,204
  • 4
  • 32
  • 49

2 Answers2

3

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);
Everett Toews
  • 10,337
  • 10
  • 44
  • 45
Adrian Cole
  • 792
  • 4
  • 10
  • Thanks. I'm no longer using jclouds, so I can't confirm this at the momnent. If anybody can confirm this independently I'll tick it as right answer. – Carsten Nov 22 '12 at 23:55
3

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

robert_bor
  • 125
  • 2
  • 8
  • 2
    As an author of JOSS, can you review the streaming upload questions on this site that are unanswered/incorrect? That is, using JOSS we noticed that the uploadObject(InputStream) method did not allow for configurable size control over the read/persistence side (buffer size on reading). It looks like JOSS reads the entire InputStream into memory prior to storage instead of streaming to persistence store in configurable sized blocks. – Darrell Teague May 10 '16 at 19:17