crypto
Class NamedKeyPair

java.lang.Object
  extended by crypto.NamedKeyPair
All Implemented Interfaces:
java.io.Serializable

public class NamedKeyPair
extends java.lang.Object
implements java.io.Serializable

Encapsulates a public/private key pair together with some comment (textual description) that describes them like type, owner, time-stamp etc.

See Also:
Serialized Form

Field Summary
 java.lang.String comment
          The description of the public key, e.g. owner, timestamp etc.
 java.security.PrivateKey privateKey
          The private key
 java.security.PublicKey publicKey
          The public key
private static long serialVersionUID
          Implements java.io.Serializable interface
 
Constructor Summary
NamedKeyPair(java.security.PublicKey publicKey, java.security.PrivateKey privateKey, java.lang.String comment)
          Constructs object
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Implements java.io.Serializable interface

See Also:
Constant Field Values

publicKey

public java.security.PublicKey publicKey
The public key


privateKey

public java.security.PrivateKey privateKey
The private key


comment

public java.lang.String comment
The description of the public key, e.g. owner, timestamp etc.

Constructor Detail

NamedKeyPair

public NamedKeyPair(java.security.PublicKey publicKey,
                    java.security.PrivateKey privateKey,
                    java.lang.String comment)
Constructs object