|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--com.ark.pgp.PGPMessageAgent
This is the client interface to all PGP message functions.
| Constructor Summary | |
PGPMessageAgent(java.lang.String key_src,
java.lang.String passphrase_str)
Creates an OpenPGP message agent. |
|
| Method Summary | |
byte[] |
decode(java.io.Reader src)
Decodes an OpenPGP Public Key encrypted & signed message. |
byte[] |
decode(java.io.Reader src,
java.lang.String passphrase)
Decodes an OpenPGP Symmetric Key encrypted & signed message. |
void |
decodePKEncryptedFile(java.lang.String in_file,
java.lang.String out_file)
Decodes an OpenPGP Public Key encrypted & signed file. |
void |
decodeSKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String passphrase)
Decodes an OpenPGP Symmetric Key encrypted & signed file. |
void |
encodePK(byte[] message,
java.io.Writer writer,
java.lang.String user)
Creates an OpenPGP Public Key Encrypted & Signed message. |
void |
encodePKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String user)
Encodes an OpenPGP Public Key encrypted & signed file. |
void |
encodeSK(byte[] message,
java.io.Writer writer,
java.lang.String passphrase)
Creates an OpenPGP Symmetric Key Encrypted & Signed message. |
void |
encodeSKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String passphrase)
Encodes an OpenPGP Symmetric Key encrypted & signed file. |
static void |
main(java.lang.String[] args)
Command-line tool to access SlimPGP functions. |
void |
signClearText(java.lang.String message,
java.io.Writer writer)
Signs a clear text message. |
void |
signClearTextFile(java.lang.String in_file,
java.lang.String out_file)
Signs a clear text file. |
java.lang.String |
verifyClearText(java.io.Reader src)
Verifies the attached signature of a clear text message. |
void |
verifyClearTextFile(java.lang.String in_file,
java.lang.String out_file)
Verifies the attached signature of a clear text file. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public PGPMessageAgent(java.lang.String key_src,
java.lang.String passphrase_str)
throws java.lang.Exception
key_src - Key ring filepassphrase_str - Passphrase to access the private key| Method Detail |
public byte[] decode(java.io.Reader src)
throws java.lang.Exception
src - The source message.
public byte[] decode(java.io.Reader src,
java.lang.String passphrase)
throws java.lang.Exception
src - The source message.passphrase - The password to access the encrypted message
public void decodePKEncryptedFile(java.lang.String in_file,
java.lang.String out_file)
throws java.lang.Exception
in_file - The input file.out_file - The output file.
public void decodeSKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String passphrase)
throws java.lang.Exception
in_file - The input file.out_file - The output file.passphrase - The password to access the encrypted message
public void encodePK(byte[] message,
java.io.Writer writer,
java.lang.String user)
throws java.lang.Exception
message - The source message.writer - The output of the encoded message.user - The intended user of encoded message.
public void encodeSK(byte[] message,
java.io.Writer writer,
java.lang.String passphrase)
throws java.lang.Exception
message - The source message.writer - The output of the encoded message.passphrase - The password to access the encrypted message.
public void encodePKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String user)
throws java.lang.Exception
in_file - The input file.out_file - The output file.user - The intended user of encoded message.
public void encodeSKEncryptedFile(java.lang.String in_file,
java.lang.String out_file,
java.lang.String passphrase)
throws java.lang.Exception
in_file - The input file.out_file - The output file.passphrase - The password to access the encrypted message
public java.lang.String verifyClearText(java.io.Reader src)
throws java.lang.Exception
src - The source message including the attached signature.
public void verifyClearTextFile(java.lang.String in_file,
java.lang.String out_file)
throws java.lang.Exception
in_file - The source clear text file including the attached signature.out_file - The output file with signature removed.
public void signClearText(java.lang.String message,
java.io.Writer writer)
throws java.lang.Exception
src - The clear text message.writer - The output of the the signed message.
public void signClearTextFile(java.lang.String in_file,
java.lang.String out_file)
throws java.lang.Exception
in_file - The clear text file to be signed.out_file - The output of the the signed message.
public static void main(java.lang.String[] args)
throws java.lang.Exception
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||