use of org.thoughtcrime.securesms.registration.v2.testdata.KbsTestVector in project Signal-Android by signalapp.
the class HashedPinKbsDataTest method getKbsTestVectorList.
private static KbsTestVector[] getKbsTestVectorList() throws IOException {
try (InputStream resourceAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream("data/kbs_vectors.json")) {
KbsTestVector[] data = JsonUtil.fromJson(StreamUtil.readFullyAsString(resourceAsStream), KbsTestVector[].class);
assertTrue(data.length > 0);
return data;
}
}
Aggregations