• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

api handshaking - 2 java applications one will host a json link and the other will consume that.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please find the requirement below for the api handshaking ..

Create two sample java applications, one will host a json link and the other one will consume that. The purpose is to validate the authenticity of the calling application as a valid consumer.

The calling application will send a encrypted string in the header while calling the json. The json host will parse the header and validate the caller. The algorithm to validate is mentioned below. If the caller is valid the json will be shared or errors will be thrown.

Algorithm for the validation...
A secret string with a character shift will be sent along with the shift byte number.

For example, if the secret string is ABP and the shift byte is 1 then the header will be...

"header":{

"secretkey": "bcq"

"sfift":1

}




Please help me developers & fixers because I am a beginner of JSON technology so I am unable to do any development. The platform is Eclipse Luna . Please give me the correct codes for developing this application because I am a beginner in Java application. No one is helping me in my company. Please describe about the procedure & coding developers.
 
Ranch Hand
Posts: 47
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please help me developers & fixers because I am a beginner of JSON technology


Well... Here is not much about JSON. And it is not a technology, just data format. You can use jackson library to parse it.

so I am unable to do any development


I'm sorry to say that, but you probably either should learn "any development" or try to change your profession.

If you have troubles with java itself, try books by Schildt or Horstmann - or courses at mooc.fi...

Please give me the correct codes for developing this application because I am a beginner in Java application


You mean, to do your work for you?

I'm afraid there would be not many volunteers moreover that you provided quite insufficient data.

No one is helping me in my company.


Please, avoid blaming your colleagues. This never makes good impression about you.

Please describe about the procedure & coding developers.


Create two applications. One should send HTTP requests, another should listen and respond to them. Googling by "java make http request" will provide you with many examples.
Then you'll need to extract header - I do not understand whether you mean specific HTTP header, or just some logic header in your message. You may use jackson as I told above.
Then simply perform shift of characters by given value... It sounds more like a simple school task, so I do not think it would be hard.
 
reply
    Bookmark Topic Watch Topic
  • New Topic