|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcryptix.pgp.Armoury
Static methods to convert data to and from the 64-bit encoding, with a 24-bit checksum, that PGP uses as 'transport armour'.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
ArmouredData| Field Summary | |
static java.lang.String |
LINEFEED
Deprecated. The string (\r\n) PGP uses as a 'canonical' linefeed. |
| Method Summary | |
static int |
decodeChecksum(java.lang.String s)
Deprecated. Decode the checksum contained in the String s. |
static void |
message(java.io.PrintStream out,
Packet pkt)
Deprecated. Armour and write the Packet pkt to out. |
static void |
message(java.io.PrintStream out,
java.lang.String name,
byte[] buf)
Deprecated. Armour and write the packet of type name in the byte array buf to out. |
static java.lang.String |
message(java.lang.String name,
byte[] buf)
Deprecated. Armour and return the packet of type name in the byte array buf. |
static java.lang.String |
messageWithChecksum(byte[] buf)
Deprecated. Armour and return the data in buf[] without the PGP framing lines. |
static java.lang.String |
name(Packet pkt)
Deprecated. Returns the name PGP uses in its framing lines for this type of packet. |
static void |
readUntilBegin(java.io.DataInputStream dis)
Deprecated. Read from the DataInputStream dis until a PGP section appears. |
static byte[] |
strip(java.lang.String buf)
Deprecated. 'Strips' armour off PGP binary data in the String buf and checks its 24-bit checksum. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LINEFEED
| Method Detail |
public static java.lang.String messageWithChecksum(byte[] buf)
public static void message(java.io.PrintStream out,
java.lang.String name,
byte[] buf)
public static java.lang.String message(java.lang.String name,
byte[] buf)
public static void message(java.io.PrintStream out,
Packet pkt)
throws java.io.IOException
java.io.IOException - if there was an I/O error
public static byte[] strip(java.lang.String buf)
throws FormatException,
java.io.IOException,
InvalidChecksumException
FormatException - if the message was incorrectly formatted
java.io.IOException - if there was an I/O error
InvalidChecksumException - if the checksum was invalidpublic static java.lang.String name(Packet pkt)
public static void readUntilBegin(java.io.DataInputStream dis)
throws java.io.IOException
java.io.IOExceptionpublic static int decodeChecksum(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||