ePOST API

rice.post.security
Interface SecurityModule

All Known Implementing Classes:
CASecurityModule, PKnoISecurityModule

public interface SecurityModule

This interface represents the abstraction of a security module, which can be used to verify certificates.

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

Method Summary
 boolean canVerify(PostCertificate certificate)
          This method returns whether or not this module is able to verify the given certificate.
 java.lang.String getName()
          Gets the unique name of the SecurityModule object
 void verify(PostCertificate certificate, Continuation command)
          This method verifies the provided ceritifcate, and returns the result to the continuation (either True or False).
 

Method Detail

getName

java.lang.String getName()
Gets the unique name of the SecurityModule object

Returns:
The Name value

verify

void verify(PostCertificate certificate,
            Continuation command)
This method verifies the provided ceritifcate, and returns the result to the continuation (either True or False).

Parameters:
certificate - The certificate to verify
command - The command to run once the result is available

canVerify

boolean canVerify(PostCertificate certificate)
This method returns whether or not this module is able to verify the given certificate.

Parameters:
certificate - The certificate in question
Returns:
Whether or not this module can verify the certificate

ePOST API

Copyright © 2001-2005 - Rice Pastry.