mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Bump bc
This commit is contained in:
parent
fb2db94839
commit
6fa7c33b7a
2 changed files with 3 additions and 12 deletions
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue