@Test public void testCipherSpec2() { CipherSpec twofish128CipherSpec = CipherSpecs.getCipherSpec(CipherSpecs.TWOFISH_128_GCM); assertEquals(twofish128CipherSpec.getId(), 2); assertEquals(twofish128CipherSpec.getAlgorithm(), "Twofish/GCM/NoPadding"); assertEquals(twofish128CipherSpec.getKeySize(), 128); assertEquals(twofish128CipherSpec.getIvSize(), 128); assertEquals(twofish128CipherSpec.needsUnlimitedStrength(), false); assertNotNull(twofish128CipherSpec.toString()); }
public static CipherSpec getCipherSpec(int id) { return cipherSpecs.get(id); }
CipherSpecs { public static CipherSpec getCipherSpec(int id) { return cipherSpecs.get(id); } }
CipherSpecs { public static CipherSpec getCipherSpec(int id) { return cipherSpecs.get(id); }  }
CipherSpecs { public static CipherSpec getCipherSpec(int id) { return cipherSpecs.get(id); }  static Map<Integer, CipherSpec> getAvailableCipherSpecs(); static List<CipherSpec> getDefaultCipherSpecs(); static CipherSpec getCipherSpec(int id); static void registerCipherSpec(int id, CipherSpec cipherSpec); }
CipherSpecs { public static CipherSpec getCipherSpec(int id) { return cipherSpecs.get(id); }  static Map<Integer, CipherSpec> getAvailableCipherSpecs(); static List<CipherSpec> getDefaultCipherSpecs(); static CipherSpec getCipherSpec(int id); static void registerCipherSpec(int id, CipherSpec cipherSpec); static final int AES_128_GCM; static final int TWOFISH_128_GCM; static final int AES_256_GCM; static final int TWOFISH_256_GCM; static final int[] DEFAULT_CIPHER_SPECS; }