开发者

How to make an exception for ChallengeAuthenticator

开发者 https://www.devze.com 2023-02-10 07:52 出处:网络
I am using Restlet Authentication. I create my own Verifier. ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext(),ChallengeScheme.HTTP_BASIC, \"my realm\");

I am using Restlet Authentication. I create my own Verifier.

ChallengeAuthenticator guard = 
  new ChallengeAuthenticator(getContext(),ChallengeScheme.HTTP_BASIC, "my realm");

guard.setVerifier(new CaupenneServerVerifier());

guard.setNext(aRouter);

a开发者_如何学运维Router attaches all the resources. But I only want to guard some of the resources, not all of them. Does anybody know how I can do this? Is there a way in Restlet Authentication to make an exception?

Thanks!


Take a look at the answer to this SO question:

Fine-grained Authentication with RESTlet

0

精彩评论

暂无评论...
验证码 换一张
取 消