Class cryptix.pgp.Armoury
All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.pgp.Armoury
java.lang.Object
|
+----cryptix.pgp.Armoury
- public final class Armoury
- extends Object
-
LINEFEED
-
-
decodeChecksum(String)
- Decode the checksum contained in
s
.
-
message(PrintStream, Packet)
- Armour and write
pkt
to out
.
-
message(PrintStream, String, byte[])
- Armour and write the
name
packet in buf
to out
.
-
message(String, byte[])
- Armour and return the
name
packet in buf
.
-
messageWithChecksum(byte[])
- Armour and return the data in
buf[]
without the PGP framing lines.
-
name(Packet)
- Returns the name PGP uses in its framing lines for this type
of
pkt
.
-
readUntilBegin(DataInputStream)
- Read from
dis
until a PGP section appears.
-
strip(String)
- 'Strips' armour off PGP binary data
and checks 24-bit checksum
LINEFEED
public final static String LINEFEED
messageWithChecksum
public static String messageWithChecksum(byte buf[])
- Armour and return the data in
buf[]
without the PGP framing lines.
message
public static void message(PrintStream out,
String name,
byte buf[])
- Armour and write the
name
packet in buf
to out
.
message
public static String message(String name,
byte buf[])
- Armour and return the
name
packet in buf
.
message
public static void message(PrintStream out,
Packet pkt) throws IOException
- Armour and write
pkt
to out
.
strip
public static byte[] strip(String buf) throws FormatException, IOException, InvalidChecksumException
- 'Strips' armour off PGP binary data
and checks 24-bit checksum
name
public static String name(Packet pkt)
- Returns the name PGP uses in its framing lines for this type
of
pkt
.
readUntilBegin
public static void readUntilBegin(DataInputStream dis) throws IOException
- Read from
dis
until a PGP section appears.
decodeChecksum
public static int decodeChecksum(String s)
- Decode the checksum contained in
s
.
All Packages Class Hierarchy This Package Previous Next Index