OpenPGP Library for Java 2.5.7 is ready
August 25th, 2011
Version 2.5.7 of DidiSoft OpenPGP Library for Java is available for download.
Existing customers can download the updated production version from our Customers’ Service portal located at:
http://www.didisoft.com/customers/
A key change in this release is that by default expired and revoked public keys are not accepted for encryption. If you still wish to use such keys you will have to enable them by calling PGPLib.setUseExpiredKeys(true) and PGPLib.setUseRevokedKeys(true)
Below is the list of all changes in this release:
[*] : Bug
[+] : New
[-] : Removed
[!] : Modification
——–
CHANGES:
[*] Fixed cleanup of half encrypted files after an exception for all methods.
[*] Fixed bug when importing keys from PGP 6.5 into a KeyStore
[!] KeyStore.importPrivateKey now throws also NoPrivateKeyFoundException (extends PGPException)
if the specified file does not contain a private key.
[+] Added method static KeyStore.checkPassword(keystoreFile, password) – checks is a given password for a keystore file correct.
[+] Added method PGPLib.decryptAndVerifyFileTo – decrypts a file content with its original name(s) into a folder
[+] Added method PGPLib.decryptAndVerifyStreamTo – decrypts a stream content with its original name(s) into a folder
[+] Added method PGPLib.setUseExpiredKeys(true) – switches on/off the check are the encryption keys expired
[+] Added method PGPLib.setUseRevokedKeys(true) – switches on/off the check are the encryption keys revoked
[+] Added method PGPLib.isUseExpiredKeys() – returns the state of the check are the encryption keys expired
[+] Added method PGPLib.isUseRevokedKeys() – returns the state of the check are the encryption keys revoked
[+] Added method KeyPairInformation.checkPassword(password) – checks is a given password for a private key correct.
[+] Added method KeyPairInformation.hasPrivateKey() – returns is there a private key in this key pair.
[+] Added method KeyPairInformation.isExpired() – indicates is the public key expired
[+] Added method KeyPairInformation.isExpiredOnDate(java.util.Date) – checks will the key be expired on a given date
New Exceptions:
[+] Added class com.didisoft.pgp.exceptions.NonPGPDataException (extends PGPException)
thrown from all decrypt and decryptAndVerify methods when the supplied for decryption data is not an OpenPGP message.
[+] Added class com.didisoft.pgp.exceptions.KeyIsExpiredException (extends PGPException)
thrown from all encrypt and signAndEncrypt methods when the supplied public key is expired.
Can be suppressed with PGPLib.setUseExpiredKeys(true)
[+] Added class com.didisoft.pgp.exceptions.KeyIsRevokedException (extends PGPException)
thrown from all encrypt and signAndEncrypt methods when the supplied public key is revoked.
Can be suppressed with PGPLib.setUseRevokedKeys(true)