The answer is no , authentication exists for you to resolve this problem in a secure and unique way in the HTTP protocol.
You have these options among others listed here, these are the most used and recommended:
Basic Authentication (TLS)
Basic Authentication is the easiest to implement because it can be implemented most of the time, without any extra library ... Its problem is that it is "basic", and so it has its lower level of security than other protocols. You send your username and password through a Base64 Encode Encode, and it uses SSL to further encrypt (TLS). After that you can create a session table, generate a hash and use that in your browser saving application.
Oauth2:
Oauth2 uses SSL (TLS) to encrypt password / user and other non-mandatory properties as scope . It is actually a protocol, complex, and used in the authorization system of Google and Facebook. I use it in a big project, and I do not recommend for it.
Use something more native to java.
In the case of Jax RS, there must be something for sure about authentication.
In your case, I recommend #.
Third-party use like Stormpath
You can use third-party services to do all the work, but it's an extra cost, and you get kind of tied up with the service.
link