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 {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'org.bouncycastle:bcprov-jdk15on:1.59'
compile 'org.bouncycastle:bcpg-jdk15on:1.59'
compile 'org.bouncycastle:bcprov-jdk15on:1.60'
compile 'org.bouncycastle:bcpg-jdk15on:1.60'
}

View File

@ -76,16 +76,7 @@ public class BCUtil {
list.add(k);
}
// TODO: Change to simply using the List constructor once BC 1.60 gets released.
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);
}
return new PGPPublicKeyRing(list);
}
/*