diff --git a/core/java/src/net/i2p/client/I2PClient.java b/core/java/src/net/i2p/client/I2PClient.java index 273ba7e2d9668e495d5a0d5cb0d582e7ff2f9e4b..3942aeb6e74aaa46df5514f5767a2b99b157abf5 100644 --- a/core/java/src/net/i2p/client/I2PClient.java +++ b/core/java/src/net/i2p/client/I2PClient.java @@ -84,6 +84,8 @@ public interface I2PClient { /** Create a new destination with the default certificate creation properties and store * it, along with the private encryption and signing keys at the specified location * + * Caller must close stream. + * * @param destKeyStream create a new destination and write out the object to the given stream, * formatted as Destination, PrivateKey, and SigningPrivateKey * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} @@ -97,6 +99,8 @@ public interface I2PClient { * This is not bound to the I2PClient, you must supply the data back again * in createSession(). * + * Caller must close stream. + * * @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey, * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} * @since 0.9.12 @@ -106,6 +110,8 @@ public interface I2PClient { /** Create a new destination with the given certificate and store it, along with the private * encryption and signing keys at the specified location * + * Caller must close stream. + * * @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey, * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} * @param cert certificate to tie to the destination diff --git a/core/java/src/net/i2p/client/impl/I2PClientImpl.java b/core/java/src/net/i2p/client/impl/I2PClientImpl.java index 0bda34daa48da6b1c22376ef4be2da2e6f6a5e5d..dfd957a986d6620f72bcf5e9e22252ce692af8b8 100644 --- a/core/java/src/net/i2p/client/impl/I2PClientImpl.java +++ b/core/java/src/net/i2p/client/impl/I2PClientImpl.java @@ -46,6 +46,8 @@ public class I2PClientImpl implements I2PClient { * This is not bound to the I2PClient, you must supply the data back again * in createSession(). * + * Caller must close stream. + * * @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey, * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} */ @@ -59,6 +61,8 @@ public class I2PClientImpl implements I2PClient { * This is not bound to the I2PClient, you must supply the data back again * in createSession(). * + * Caller must close stream. + * * @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey, * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} * @since 0.9.12 @@ -82,6 +86,8 @@ public class I2PClientImpl implements I2PClient { * The padding if any will be randomized. The extra key data if any will be set in the * key cert. * + * Caller must close stream. + * * @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey, * format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile} */