ePOST API

rice.post.security
Class PostCertificate

java.lang.Object
  extended by rice.post.security.PostCertificate
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CAPostCertificate, PKnoIPostCertificate

public abstract class PostCertificate
extends java.lang.Object
implements java.io.Serializable

This class is the abstraction of a certificate in the POST system, regardless of the underlying security model. This class contains an address and a key.

Version:
$Id: PostCertificate.java 1293 2003-07-16 18:26:36Z amislove $
Author:
amislove
See Also:
Serialized Form

Constructor Summary
protected PostCertificate(PostEntityAddress address, java.security.PublicKey key)
          Builds a PostCertificate from a user address and a public key.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns whether or not this object is equal
 PostEntityAddress getAddress()
          Gets the Address attribute of the PostCertificate object
 java.security.PublicKey getKey()
          Gets the Key attribute of the PostCertificate object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostCertificate

protected PostCertificate(PostEntityAddress address,
                          java.security.PublicKey key)
Builds a PostCertificate from a user address and a public key.

Parameters:
address - The address of the user whose certificate this is
key - The key of the user whose certificate this is
Method Detail

getAddress

public PostEntityAddress getAddress()
Gets the Address attribute of the PostCertificate object

Returns:
The Address value

getKey

public java.security.PublicKey getKey()
Gets the Key attribute of the PostCertificate object

Returns:
The Key value

equals

public boolean equals(java.lang.Object o)
Returns whether or not this object is equal

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare to
Returns:
Whether or not this one is equal.

ePOST API

Copyright © 2001-2005 - Rice Pastry.