I haven't made a break through on this yet. Any pointers will be very useful.


On Sat, Nov 5, 2016, 17:47 Ken <run2obtain@gmail.com> wrote:
Hi Andrew,

Thanks, sorry for the longer message before.
Here is a short code example, directly taken from the examples here.


   public Swifter() {
      Iterable<Module> modules = ImmutableSet.<Module>of(
            new SLF4JLoggingModule());

      String provider = "openstack-swift";
      String identity = "xx:xx";
      String credential = "xxxx";

      swiftApi = ContextBuilder.newBuilder(provider)
            .credentials(identity, credential)

   private void createContainer() {
      System.out.println("Create Container");

      ContainerApi containerApi = swiftApi.getContainerApi("RegionOne");
      CreateContainerOptions options = CreateContainerOptions.Builder
                  "key1", "value1",
                  "key2", "value2"));

      containerApi.create(CONTAINER_NAME, options);

      System.out.println("  " + CONTAINER_NAME);

   private void uploadObjectFromString() {
      System.out.println("Upload Object From String");

      ObjectApi objectApi = swiftApi.getObjectApi("RegionOne", CONTAINER_NAME);
      Payload payload = newByteSourcePayload(wrap("Hello World".getBytes()));

      objectApi.put(OBJECT_NAME, payload, PutOptions.Builder.metadata(ImmutableMap.of("key1", "value1")));

      System.out.println("  " + OBJECT_NAME);


On Sat, Nov 5, 2016 at 5:39 PM, Andrew Phillips <aphillips@qrmedia.com> wrote:
Hi Ken

I want to use Jcloud swift and nova, the connection always time outs
successfully authenticating...

Could you provide a short code sample (with passwords etc. obfuscated) to help us understand how the connection is configured?