@Test public void testGenerateKey() { File file = new File(GenerateKey.KEY_FILE_NAME); if (file.exists()) { file.delete(); } GenerateKey.main(null); file = new File(GenerateKey.KEY_FILE_NAME); Assert.assertTrue(file.exists()); }
private GenerateKey(){ }
GenerateKey { private GenerateKey(){ } }
GenerateKey { private GenerateKey(){ } private  GenerateKey(); }
GenerateKey { private GenerateKey(){ } private  GenerateKey(); static void generateKey(); static void setKey(SecretKey newKey); static SecretKey getKey(); static IvParameterSpec getIvSpec(); static void main(String[] args); }
GenerateKey { private GenerateKey(){ } private  GenerateKey(); static void generateKey(); static void setKey(SecretKey newKey); static SecretKey getKey(); static IvParameterSpec getIvSpec(); static void main(String[] args); static final int KEY_ENCRYPTION_SIZE; static final String KEY_METHOD; }