cryptix.pgp
Class ArmouredData
java.lang.Object
|
+--cryptix.pgp.ArmouredData
- public final class ArmouredData
- extends java.lang.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.3 $
- Since:
- Cryptix 2.2 or earlier
- Author:
- Jill Baker, Ian Brown, Gary Howland
- See Also:
Signature
,
cryptix.pgp.app.ArmourDecryptor
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
quotedPrintable
protected static QuotedPrintable quotedPrintable
ArmouredData
public ArmouredData(PacketByteArray payload)
ArmouredData
public ArmouredData(java.util.Properties properties,
PacketByteArray payload)
ArmouredData
public ArmouredData(byte[] text,
PacketByteArray signature)
throws FormatException
ArmouredData
public ArmouredData(java.util.Properties properties,
byte[] clearText,
PacketByteArray signature)
throws FormatException
ArmouredData
public ArmouredData(java.lang.String armouredText)
throws FormatException
- The following constructors accept text that is already
armoured.
- See Also:
parse(String)
,
toString()
ArmouredData
public ArmouredData(byte[] armouredBytes)
throws FormatException
getProperties
public java.util.Properties getProperties()
getClearText
public byte[] getClearText()
getPayload
public PacketByteArray getPayload()
armour
public static java.lang.String armour(PacketByteArray pba)
unarmour
public static PacketByteArray unarmour(java.lang.String s)
throws FormatException
parse
public void parse(java.lang.String armouredMessage)
throws FormatException
- Unarmour an armoured message.
toString
public java.lang.String toString()
- Armour an unarmoured message.
- Overrides:
toString
in class java.lang.Object