Skip to content

Commit

Permalink
Fixed #836 - Add BC provider for PGP component.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwilmer committed Jul 18, 2018
1 parent d90fa15 commit 410974b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.Security;
import java.util.Date;
import java.util.Iterator;

Expand Down Expand Up @@ -46,6 +47,7 @@ public class PgpEncrypt extends AbstractComponentRuntime {

@Override
public void start() {
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
TypedProperties properties = getTypedProperties();
publicKeyLocation = properties.get(PUBLIC_KEY_LOCATION);
keyAlgorithm = mapKeyAlgorithm(properties.get(KEY_ALGORITHM));
Expand Down

0 comments on commit 410974b

Please sign in to comment.