org.bouncycastle.openpgp
public class PGPUtil extends Object implements HashAlgorithmTags
| Method Summary | |
|---|---|
| static InputStream | getDecoderStream(InputStream in)
Return either an ArmoredInputStream or a BCPGInputStream based on
whether the initial characters of the stream are binary PGP encodings or not.
|
| static String | getDefaultProvider()
Return the provider that will be used by factory classes in situations
where a provider must be determined on the fly.
|
| static SecretKey | makeKeyFromPassPhrase(int algorithm, char[] passPhrase, String provider) |
| static SecretKey | makeKeyFromPassPhrase(int algorithm, S2K s2k, char[] passPhrase, String provider) |
| static SecretKey | makeRandomKey(int algorithm, SecureRandom random) |
| static void | setDefaultProvider(String provider)
Set the provider to be used by the package when it is necessary to
find one on the fly.
|
| static void | writeFileToLiteralData(OutputStream out, char fileType, File file)
write out the passed in file as a literal data packet.
|
| static void | writeFileToLiteralData(OutputStream out, char fileType, File file, byte[] buffer)
write out the passed in file as a literal data packet in partial packet format.
|
Parameters: in the stream to be wrapped
Returns: a BCPGInputStream
Throws: IOException
Returns: String
Parameters: provider
Parameters: out fileType the LiteralData type for the file. file
Throws: IOException
Parameters: out fileType the LiteralData type for the file. file buffer buffer to be used to chunk the file into partial packets.
Throws: IOException