• Main Page
  • Related Pages
  • Packages
  • Classes
  • Files
  • File List

crypto/NamedKeyPair.java

Go to the documentation of this file.
00001 
00002 package crypto;
00003 
00004 import java.security.PrivateKey;
00005 import java.security.PublicKey;
00006 import java.io.Serializable;
00007 
00008 /**
00009  *  Encapsulates a public/private key pair together with some comment
00010  *  (textual description) that describes them like type, owner, time-stamp etc.
00011  */
00012 public class NamedKeyPair implements Serializable
00013 {
00014     /**
00015      *  Implements java.io.Serializable interface
00016      */
00017     private static final long serialVersionUID = -7283024661187692775L;
00018 
00019     /**
00020      *  The public key
00021      */
00022     public PublicKey publicKey;
00023 
00024     /**
00025      *  The private key
00026      */
00027     public PrivateKey privateKey;
00028     
00029     /**
00030      *  The description of the public key, e.g. owner, timestamp etc.
00031      */
00032     public String comment;
00033     
00034     /**
00035      *  Constructs object 
00036      */
00037     public NamedKeyPair( PublicKey publicKey, PrivateKey privateKey, String comment ) 
00038     {
00039         this.publicKey = publicKey;
00040         this.privateKey = privateKey;
00041         this.comment = comment;
00042     }
00043 }

Generated on Thu Dec 16 2010 14:44:42 for VoIP Kryptofon by  doxygen 1.7.2