1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 11:27:57 +01:00
This commit is contained in:
Paul Schaub 2018-07-09 10:47:41 +02:00
parent fb2db94839
commit 6fa7c33b7a
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 3 additions and 12 deletions

View file

@ -34,6 +34,6 @@ repositories {
dependencies { dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.bouncycastle:bcprov-jdk15on:1.59' compile 'org.bouncycastle:bcprov-jdk15on:1.60'
compile 'org.bouncycastle:bcpg-jdk15on:1.59' compile 'org.bouncycastle:bcpg-jdk15on:1.60'
} }

View file

@ -76,16 +76,7 @@ public class BCUtil {
list.add(k); list.add(k);
} }
// TODO: Change to simply using the List constructor once BC 1.60 gets released. return new PGPPublicKeyRing(list);
try {
Constructor<PGPPublicKeyRing> constructor;
constructor = PGPPublicKeyRing.class.getDeclaredConstructor(List.class);
constructor.setAccessible(true);
PGPPublicKeyRing pubring = constructor.newInstance(list);
return pubring;
} catch (NoSuchMethodException | IllegalAccessException | InstantiationException | InvocationTargetException e) {
throw new AssertionError(e);
}
} }
/* /*