本文整理汇总了Java中com.keepassdroid.UpdateStatus类的典型用法代码示例。如果您正苦于以下问题:Java UpdateStatus类的具体用法?Java UpdateStatus怎么用?Java UpdateStatus使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UpdateStatus类属于com.keepassdroid包,在下文中一共展示了UpdateStatus类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: openDatabase
import com.keepassdroid.UpdateStatus; //导入依赖的package包/类
/**
* Load a v3 database file, return contents in a new PwDatabaseV3.
*
* @param infile Existing file to load.
* @param password Pass phrase for infile.
* @param pRepair (unused)
* @return new PwDatabaseV3 container.
*
* @throws IOException on any file error.
* @throws InvalidKeyFileException
* @throws InvalidPasswordException
* @throws InvalidPasswordException on a decryption error, or possible internal bug.
* @throws InvalidDBSignatureException
* @throws InvalidDBVersionException
* @throws IllegalBlockSizeException on a decryption error, or possible internal bug.
* @throws BadPaddingException on a decryption error, or possible internal bug.
* @throws NoSuchAlgorithmException on a decryption error, or possible internal bug.
* @throws NoSuchPaddingException on a decryption error, or possible internal bug.
* @throws InvalidAlgorithmParameterException if error decrypting main file body.
* @throws ShortBufferException if error decrypting main file body.
*/
public PwDatabaseV3 openDatabase( InputStream inStream, String password, InputStream keyfileStream )
throws IOException, InvalidDBException
{
return openDatabase(inStream, password, keyfileStream, new UpdateStatus());
}