java - How to limit web service access to one client? -


i have web service written in java, , has 2 identical clients access methods. difference 1 client "admin" client.

however, there requirement admin client can @ time wants, stop other client accessing web service, or particular, few of methods.

how such thing accomplished? guess there way define web service accessed specific client in web service's code? there way (i'm asking generic technologies or concepts, not direct code here btw) can done? or there other way needs done?

edit:my clients java applications running on windows

if familiar web services, may have noticed of them require access token make requests.

an access token opaque string identifies user, app, or page , can used app make api calls.

so, might want implement in java code authorized client can make request it.

in case, simpler solution use sort of flag/indicator know request has been sent admin , proceed accordingly.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -