All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.ArmouredData

java.lang.Object
   |
   +----cryptix.pgp.ArmouredData

public final class ArmouredData
extends Object
This class represents an ASCII-Armoured message.

Although this class can also represent a clearsigned message, it is not the job of this class either to sign, or to verify the signature - that is the job of the Signature class. Thus, using the ArmouredData class alone, it is perfectly possible to create a clearsigned message with a bad signature!

It is also not the job of this class to deal with character set conversions or canonical form. The classes in the package cryptix.pgp.charset can do that job much better.


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

$Revision: 1.2 $

Author:
Jill Baker, Ian Brown, Gary Howland
See Also:
Signature, ArmourDecryptor

Variable Index

 o quotedPrintable

Constructor Index

 o ArmouredData(byte[])
 o ArmouredData(byte[], PacketByteArray)
 o ArmouredData(PacketByteArray)
 o ArmouredData(Properties, byte[], PacketByteArray)
 o ArmouredData(Properties, PacketByteArray)
 o ArmouredData(String)
The following constructors accept text that is already armoured.

Method Index

 o armour(PacketByteArray)
 o getClearText()
 o getPayload()
 o getProperties()
 o parse(String)
Unarmour an armoured message.
 o toString()
Armour an unarmoured message.
 o unarmour(String)

Variables

 o quotedPrintable
 protected static QuotedPrintable quotedPrintable

Constructors

 o ArmouredData
 public ArmouredData(PacketByteArray payload)
 o ArmouredData
 public ArmouredData(Properties properties,
                     PacketByteArray payload)
 o ArmouredData
 public ArmouredData(byte text[],
                     PacketByteArray signature) throws FormatException
 o ArmouredData
 public ArmouredData(Properties properties,
                     byte clearText[],
                     PacketByteArray signature) throws FormatException
 o ArmouredData
 public ArmouredData(String armouredText) throws FormatException
The following constructors accept text that is already armoured.

See Also:
parse, toString
 o ArmouredData
 public ArmouredData(byte armouredBytes[]) throws FormatException

Methods

 o getProperties
 public Properties getProperties()
 o getClearText
 public byte[] getClearText()
 o getPayload
 public PacketByteArray getPayload()
 o armour
 public static String armour(PacketByteArray pba)
 o unarmour
 public static PacketByteArray unarmour(String s) throws FormatException
 o parse
 public void parse(String armouredMessage) throws FormatException
Unarmour an armoured message.

 o toString
 public String toString()
Armour an unarmoured message.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index