org.opentox.auth
Class GuardDog

java.lang.Object
  extended by org.opentox.auth.GuardDog

public class GuardDog
extends java.lang.Object

Author:
Sopasakis Pantelis

Nested Class Summary
private  class GuardDog.ChallengeAuthenticatorImpl
          An Implementation of ChallengeAuthenticator
 
Field Summary
private  java.util.List<org.restlet.data.Method> unauth
           
 
Constructor Summary
GuardDog()
           
 
Method Summary
 org.restlet.security.UniformGuard createGuard(OpenToxApplication application, org.restlet.security.Verifier verifier, boolean optional, java.util.List<org.restlet.data.Method> guardedMethods, java.util.List<org.restlet.data.Method> unauthenticatedMethods, java.lang.Class<?> targetClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unauth

private volatile java.util.List<org.restlet.data.Method> unauth
Constructor Detail

GuardDog

public GuardDog()
Method Detail

createGuard

public org.restlet.security.UniformGuard createGuard(OpenToxApplication application,
                                                     org.restlet.security.Verifier verifier,
                                                     boolean optional,
                                                     java.util.List<org.restlet.data.Method> guardedMethods,
                                                     java.util.List<org.restlet.data.Method> unauthenticatedMethods,
                                                     java.lang.Class<?> targetClass)
Parameters:
application - Main Application
verifier - Instance of org.restlet.security.Verifier used to verify that the client is the one it claims it is.
optional - Indicates if the authentication success is optional.
guardedMethods - The set of all methods that are guarded. Methods excluded from that set are completely forbidden.
unauthenticatedMethods - Methods that can be applied by unauthenticated clients.
targetClass - Subclass of ServerResource.
Returns:
The guard dog for the specified resource.