eu.emi.dsr.security
Class ACLFilter

java.lang.Object
  extended by eu.emi.dsr.security.ACLFilter
All Implemented Interfaces:
com.sun.jersey.spi.container.ContainerRequestFilter

public class ACLFilter
extends Object
implements com.sun.jersey.spi.container.ContainerRequestFilter

It checks incoming requests, trying to access the serviceadmin resource for the valid/authorized DNs

Author:
a.memon

Constructor Summary
ACLFilter()
           
ACLFilter(File aclFile)
           
 
Method Summary
protected  Client checkAccess(String userName)
           
 com.sun.jersey.spi.container.ContainerRequest filter(com.sun.jersey.spi.container.ContainerRequest request)
           
protected  void readACL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACLFilter

public ACLFilter()
          throws IOException
Throws:
IOException

ACLFilter

public ACLFilter(File aclFile)
          throws IOException
Parameters:
file -
Throws:
IOException
Method Detail

filter

public com.sun.jersey.spi.container.ContainerRequest filter(com.sun.jersey.spi.container.ContainerRequest request)
                                                     throws javax.ws.rs.WebApplicationException
Specified by:
filter in interface com.sun.jersey.spi.container.ContainerRequestFilter
Throws:
javax.ws.rs.WebApplicationException

checkAccess

protected Client checkAccess(String userName)
                      throws javax.ws.rs.WebApplicationException
Throws:
javax.ws.rs.WebApplicationException

readACL

protected void readACL()


Copyright © 2012. All Rights Reserved.