Skip to content

Commit

Permalink
Pull setWithIntegrityPacket up into PGPDataEncryptorBuilder interface
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Dec 27, 2020
1 parent b9891bd commit 6f19fa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ PGPDataEncryptor build(byte[] keyBytes)
* constructed and retained by the this builder.</p>
*/
SecureRandom getSecureRandom();

PGPDataEncryptorBuilder setWithIntegrityPacket(boolean withIntegrityPacket);
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public BcPGPDataEncryptorBuilder(int encAlgorithm)
* @param withIntegrityPacket true if an integrity packet is to be included, false otherwise.
* @return the current builder.
*/
@Override
public BcPGPDataEncryptorBuilder setWithIntegrityPacket(boolean withIntegrityPacket)
{
this.withIntegrityPacket = withIntegrityPacket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public JcePGPDataEncryptorBuilder(int encAlgorithm)
* @param withIntegrityPacket true if an integrity packet is to be included, false otherwise.
* @return the current builder.
*/
@Override
public JcePGPDataEncryptorBuilder setWithIntegrityPacket(boolean withIntegrityPacket)
{
this.withIntegrityPacket = withIntegrityPacket;
Expand Down

0 comments on commit 6f19fa0

Please sign in to comment.