ePOST API

rice.post.security
Class SecurityService

java.lang.Object
  extended by rice.post.security.SecurityService

public class SecurityService
extends java.lang.Object

This class is a central repository for all of the SecurityModules which are currently loaded, and can verify certificates for applications which do not care about the module-certificate relationships.

Version:
$Id: SecurityService.java 1293 2003-07-16 18:26:36Z amislove $
Author:
amislove

Constructor Summary
SecurityService()
          Constructor for SecurityService.
 
Method Summary
 SecurityModule getModule(java.lang.String name)
          Gets the module corresponding to the given name
 void loadModule(SecurityModule module)
          Loads a module under the name module.getName()
 void unloadModule(SecurityModule module)
          Unloads the module under the name module.getName()
 void verify(PostCertificate certificate, Continuation command)
          Verifies the given certificate, and passes the result, either True or False, to the given command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityService

public SecurityService()
Constructor for SecurityService.

Method Detail

getModule

public SecurityModule getModule(java.lang.String name)
Gets the module corresponding to the given name

Parameters:
name - The name of the module to get
Returns:
The Module value

loadModule

public void loadModule(SecurityModule module)
Loads a module under the name module.getName()

Parameters:
module - The module to load

unloadModule

public void unloadModule(SecurityModule module)
Unloads the module under the name module.getName()

Parameters:
module - The module to unload

verify

public void verify(PostCertificate certificate,
                   Continuation command)
Verifies the given certificate, and passes the result, either True or False, to the given command. If a module cannot be found to verify the certificate, command.receiveException is called with a SecurityException.

Parameters:
certificate - The certificate to verify
command - The command to call with the result

ePOST API

Copyright © 2001-2005 - Rice Pastry.