|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.post.security.ca.CASecurityModule
public class CASecurityModule
This class is the security module which implements the PKI (CA) based security system.
| Field Summary | |
|---|---|
static java.lang.String |
MODULE_NAME
The name of the module |
| Constructor Summary | |
|---|---|
CASecurityModule(java.security.PublicKey caKey)
Constructor for CASecurityModule. |
|
| Method Summary | |
|---|---|
boolean |
canVerify(PostCertificate certificate)
This method returns whether or not this module is able to verify the given certificate. |
static CAPostCertificate |
generate(PostUserAddress address,
java.security.PublicKey key,
java.security.PrivateKey caKey)
Static method for generating a ceritificate from a user, public key, and the CA's private key |
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String MODULE_NAME
| Constructor Detail |
|---|
public CASecurityModule(java.security.PublicKey caKey)
caKey - The well-known public key of the certificate authority| Method Detail |
|---|
public static CAPostCertificate generate(PostUserAddress address,
java.security.PublicKey key,
java.security.PrivateKey caKey)
throws java.lang.SecurityException
address - The address of the userkey - The public key of the usercaKey - The private key of the certificate authority
java.lang.SecurityException - If the certificate generation has a problempublic java.lang.String getName()
getName in interface SecurityModule
public boolean canVerify(PostCertificate certificate)
canVerify in interface SecurityModule
certificate - The certificate in question
public void verify(PostCertificate certificate,
Continuation command)
throws java.lang.SecurityException
verify in interface SecurityModule
certificate - The certificate to verifycommand - The command to run once the result is available
java.lang.SecurityException - If the certificate verification has a problem
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||