java - Jersey encrypt URL -


i using jersey implement rest web service.

this resource

@path("/mywb") public class fooditems { @path("{id}")     public fooditem gettodo(@pathparam("id") string id) {         return // code.     } } 

the url call web service :

http://localhost:8080/myproject/myrest/mywb/1/delete 

i want encrypt id parameter in url.

i have read , seems uribuilder best practice that. don't know how it. appreciated.

also should search encrypt or encode ?

if want pass parameter in request url, need use cipher, when key known both client , server. encrypt parameter before sending , decrypt when it.

another option send parameter in body, , use https instead of http.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -