org.edg.security.voms.service
Class CAUpdater

java.lang.Object
  |
  +--java.util.TimerTask
        |
        +--org.edg.security.voms.service.CAUpdater
All Implemented Interfaces:
java.lang.Runnable

public final class CAUpdater
extends java.util.TimerTask

Updater for the CA table. This class loads the list of acceptable Certificate Authorities from a preconfigured (voms.cafiles) fileset or by default from the "/etc/grid-security/certificates/*.0" files.
If it finds a CA, which is not yet in the virtual organization's CA table, then it inserts a record.

Version:
$Id: CAUpdater.java,v 1.18 2003/11/30 19:00:03 szamcsi Exp $
Author:
Akos Frohner, Karoly Lorentey

Field Summary
private static CAUpdater cup
           
private static org.apache.log4j.Logger log
           
private  long period
           
private  VOMSTimer timer
           
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
private CAUpdater(VOMSTimer timer)
           
 
Method Summary
 void run()
          The method to be called by the Timer.
static CAUpdater theCAUpdater()
           
 void updateCAs()
          Loads the list of CAs into the CA table.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

cup

private static CAUpdater cup

timer

private VOMSTimer timer

period

private long period
Constructor Detail

CAUpdater

private CAUpdater(VOMSTimer timer)
Method Detail

theCAUpdater

public static CAUpdater theCAUpdater()

run

public void run()
The method to be called by the Timer.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

updateCAs

public void updateCAs()
Loads the list of CAs into the CA table. This also sets the security context to the local administrator's attributes.