Class cryptix.pgp.ArmouredData
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.

Author:
Jill Baker, Ian Brown, Gary Howland
See Also:
Signature, Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.">169 1995, 1996, 1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.

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 accepts text which 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)

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 accepts text which is already armoured.
See Also:
parse( String ), 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