Hi Dustin,
This is all you indeed need to do:
Here is a similar sample:
// Create a simple password verifier
MapVerifier verifier = new MapVerifier();
verifier.getSecrets().put("scott", "tiger".toCharArray());
// Create a Guard
ChallengeGuard guard = new ChallengeGuard(getContext(),
ChallengeScheme.HTTP_BASIC, "Tutorial");
guard.getAuthenticator().setVerifier(verifier);
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
-----Message d'origine-----
De : Dustin N. Jenkins [mailto:[email protected]]
Envoyé : vendredi 8 mai 2009 19:41
À : [email protected]
Objet : Guard to ChallengeGuard upgrade
Hi all. I'm using the Restlet 1.2 (2.0) snapshot and have been looking
over the Security implementation.
If I were to simple replace the old checkSecret() method with something
else, would it be as easy as setting the LocalVerifier in the
Authenticator and implementing the getSecret() method? Is there
something more to it?
Thanks!
Dustin
--
Dustin N. Jenkins | Tel/Tél: 250.363.3101 | [email protected]
facsimile/télécopieur: (250) 363-0045
National Research Council Canada | 5071 West Saanich Rd, Victoria BC.
V9E 2E7
Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria
(C.-B) V9E 2E7
Government of Canada | Gouvernement du Canada
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2117135
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2261673