@Test(expectedExceptions = Exception.class) public void writeKeyToPathWithNullKey() throws IOException { SecretKeyUtils.writeKeyToPath(null, null); }
public static void writeKeyToPath(final SecretKey key, final Path path) throws IOException { Validate.notNull(key, "Key must not be null"); try (OutputStream out = Files.newOutputStream(path)) { writeKey(key, out); } }
SecretKeyUtils { public static void writeKeyToPath(final SecretKey key, final Path path) throws IOException { Validate.notNull(key, "Key must not be null"); try (OutputStream out = Files.newOutputStream(path)) { writeKey(key, out); } } }
SecretKeyUtils { public static void writeKeyToPath(final SecretKey key, final Path path) throws IOException { Validate.notNull(key, "Key must not be null"); try (OutputStream out = Files.newOutputStream(path)) { writeKey(key, out); } } private  SecretKeyUtils(); }
SecretKeyUtils { public static void writeKeyToPath(final SecretKey key, final Path path) throws IOException { Validate.notNull(key, "Key must not be null"); try (OutputStream out = Files.newOutputStream(path)) { writeKey(key, out); } } private  SecretKeyUtils(); static SecretKey generate(final SupportedCipherDetails cipherDetails); static SecretKey generate(final String algorithm, final int bits); static void writeKey(final SecretKey key, final OutputStream out); static void writeKeyToPath(final SecretKey key, final Path path); static SecretKeySpec loadKey(final byte[] bytes, final SupportedCipherDetails cipherDetails); static SecretKeySpec loadKey(final InputStream in, final String algorithm); static SecretKeySpec loadKeyFromPath(final Path path, final String algorithm); static SecretKeySpec loadKeyFromPath(final Path path,
                                                final SupportedCipherDetails cipherDetails); }
SecretKeyUtils { public static void writeKeyToPath(final SecretKey key, final Path path) throws IOException { Validate.notNull(key, "Key must not be null"); try (OutputStream out = Files.newOutputStream(path)) { writeKey(key, out); } } private  SecretKeyUtils(); static SecretKey generate(final SupportedCipherDetails cipherDetails); static SecretKey generate(final String algorithm, final int bits); static void writeKey(final SecretKey key, final OutputStream out); static void writeKeyToPath(final SecretKey key, final Path path); static SecretKeySpec loadKey(final byte[] bytes, final SupportedCipherDetails cipherDetails); static SecretKeySpec loadKey(final InputStream in, final String algorithm); static SecretKeySpec loadKeyFromPath(final Path path, final String algorithm); static SecretKeySpec loadKeyFromPath(final Path path,
                                                final SupportedCipherDetails cipherDetails);  }