Solved

Odata, client certificate authentication in java client

Posted on 2013-01-09
6
684 Views
Last Modified: 2013-01-17
Dear experts,

I am trying to build an application that gets OData from a OData website. to do this i have to use Client certificate authentication to access the data. I however don't know how to get this done and make a connection to the site. Does someone have an example for me?.

Thanks,

Mark Vrenken
0
Comment
Question by:MarkVrenken
  • 3
  • 3
6 Comments
 
LVL 16

Expert Comment

by:Valeri
ID: 38758376
0
 
LVL 16

Expert Comment

by:Valeri
ID: 38758543
and after that:
ODataConsumer.newBuilder(serviceUri).setClientBehaviors(OClientBehaviors.allowSelfSignedCerts()).build();

I think this is what you are asking about?! You are using odata4j aren't you?
0
 
LVL 1

Author Comment

by:MarkVrenken
ID: 38758558
Hi Valerie,

Thanks for your responces! Yes i am using OData4j. I will try this. Thanks very much, hope it works.

Regards,

Mark Vrenken
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Author Comment

by:MarkVrenken
ID: 38758902
Hi Valeri,

Can you please explain me why I have to add this key to the keystore? I have installed the server certificate to my pc, is this enough or is it necessary to also add it to the keystore? because then i have to ask the system admin (cacerts access is denied in cmd)

Cheers,

Mark
0
 
LVL 16

Accepted Solution

by:
Valeri earned 500 total points
ID: 38759701
Actually I have never used this type of authentication. I have used only base authentication. But I think you have to add it, because of this code. It looks like the certificates are loaded from there.

http://code.google.com/p/odata4j/source/browse/odata4j-core/src/main/java/org/odata4j/consumer/behaviors/AllowSelfSignedCertsBehavior.java?name=0.5
0
 
LVL 1

Author Closing Comment

by:MarkVrenken
ID: 38786965
I have not yet got this far because of some issues with connectivity but thanks for your help. I am trying to use the Odata4j package but have to use a proxy and don't know how to do this in combination with the ODataConsumer.

THanks for your help!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 38
stringclean challenge 26 56
mapShare challenge 13 68
unix in java example 9 39
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now