| java.lang.Object org.bouncycastle.openpgp.PGPUtil
Method Summary | |
static MPInteger[] | dsaSigToMpi(byte[] encoding) | public 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. | public 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 MessageDigest | getDigestInstance(String digestName, String provider) | static String | getDigestName(int hashAlgorithm) | static String | getSignatureName(int keyAlgorithm, int hashAlgorithm) | static String | getSymmetricCipherName(int algorithm) | public static SecretKey | makeKeyFromPassPhrase(int algorithm, char[] passPhrase, String provider) | public static SecretKey | makeKeyFromPassPhrase(int algorithm, S2K s2k, char[] passPhrase, String provider) | public static SecretKey | makeRandomKey(int algorithm, SecureRandom random) | public static void | setDefaultProvider(String provider) Set the provider to be used by the package when it is necessary to
find one on the fly. | public static void | writeFileToLiteralData(OutputStream out, char fileType, File file) write out the passed in file as a literal data packet. | public 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. |
getDecoderStream | public static InputStream getDecoderStream(InputStream in) throws IOException(Code) | | Return either an ArmoredInputStream or a BCPGInputStream based on
whether the initial characters of the stream are binary PGP encodings or not.
Parameters: in - the stream to be wrapped a BCPGInputStream throws: IOException - |
getDefaultProvider | public static String getDefaultProvider()(Code) | | Return the provider that will be used by factory classes in situations
where a provider must be determined on the fly.
String |
setDefaultProvider | public static void setDefaultProvider(String provider)(Code) | | Set the provider to be used by the package when it is necessary to
find one on the fly.
Parameters: provider - |
writeFileToLiteralData | public static void writeFileToLiteralData(OutputStream out, char fileType, File file) throws IOException(Code) | | write out the passed in file as a literal data packet.
Parameters: out - Parameters: fileType - the LiteralData type for the file. Parameters: file - throws: IOException - |
writeFileToLiteralData | public static void writeFileToLiteralData(OutputStream out, char fileType, File file, byte[] buffer) throws IOException(Code) | | write out the passed in file as a literal data packet in partial packet format.
Parameters: out - Parameters: fileType - the LiteralData type for the file. Parameters: file - Parameters: buffer - buffer to be used to chunk the file into partial packets. throws: IOException - |
|
|