fr.cnes.sitools.security.authorization.business
Class SitoolsUserAuthorizer

java.lang.Object
  extended by DelegatedAuthorizer
      extended by fr.cnes.sitools.security.authorization.business.SitoolsUserAuthorizer

public class SitoolsUserAuthorizer
extends DelegatedAuthorizer

Specific authorizer for user where identifier is a request attribute passed to the constructor.

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
SitoolsUserAuthorizer()
          Constructor
SitoolsUserAuthorizer(java.lang.String attribute)
          Constructor Authorizer encapsulation
SitoolsUserAuthorizer(java.lang.String attribute, java.util.List<org.restlet.data.Method> methods)
          Constructor Authorizer encapsulation
 
Method Summary
 boolean authorize(org.restlet.Request request, org.restlet.Response response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitoolsUserAuthorizer

public SitoolsUserAuthorizer(java.lang.String attribute)
Constructor Authorizer encapsulation

Parameters:
attribute - user identifier attribute in request

SitoolsUserAuthorizer

public SitoolsUserAuthorizer(java.lang.String attribute,
                             java.util.List<org.restlet.data.Method> methods)
Constructor Authorizer encapsulation

Parameters:
attribute - user identifier attribute in request
methods - the list of Method to allow for public user

SitoolsUserAuthorizer

public SitoolsUserAuthorizer()
Constructor

Method Detail

authorize

public boolean authorize(org.restlet.Request request,
                         org.restlet.Response response)


Copyright © 2010-2013 CNES. All Rights Reserved.