@Test public void testCipherSpecHashCodeEquals() { CipherSpec cipherSpec1 = CipherSpecs.getCipherSpec(CipherSpecs.AES_128_GCM); CipherSpec cipherSpec2 = CipherSpecs.getCipherSpec(CipherSpecs.TWOFISH_128_GCM); assertNotSame(cipherSpec1.hashCode(), cipherSpec2.hashCode()); assertNotSame(cipherSpec1, cipherSpec2); assertEquals(0x01, cipherSpec1.getId()); }
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; }