cryptix.pgp
Class Message

java.lang.Object
  extended bycryptix.util.Streamable
      extended bycryptix.pgp.Message
All Implemented Interfaces:
StreamInterface
Direct Known Subclasses:
SignedMessage

public class Message
extends Streamable

This class represents a PGP message.


Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Since:
Cryptix 2.2 or earlier

Constructor Summary
Message(byte[] data, PublicKey publickey, byte[] key, RandomStream rand)
           
 
Method Summary
 byte[] data(byte[] key)
           
 void read(java.io.DataInput in)
          Reads 'this' from the DataInput object.
 void write(java.io.DataOutput out)
          Writes 'this' to the DataOutput object.
 
Methods inherited from class cryptix.util.Streamable
load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(byte[] data,
               PublicKey publickey,
               byte[] key,
               RandomStream rand)
        throws java.io.IOException
Method Detail

data

public byte[] data(byte[] key)
            throws java.io.IOException,
                   DecryptException
Throws:
java.io.IOException
DecryptException

read

public void read(java.io.DataInput in)
          throws java.io.IOException
Description copied from interface: StreamInterface
Reads 'this' from the DataInput object.

Throws:
java.io.IOException

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from interface: StreamInterface
Writes 'this' to the DataOutput object.

Throws:
java.io.IOException