<goals>
<goal>jar</goal>
</goals>
- <configuration>
- <additionalparam>-Xdoclint:none</additionalparam>
- </configuration>
</execution>
</executions>
</plugin>
*/
package org.netxms.base;
+import javax.xml.bind.DatatypeConverter;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
-import javax.xml.bind.DatatypeConverter;
/**
* Utility class to encrypt and decrypt passwords in same way as nxcencpasswd do.
/**
* Encrypt password for given login.
*
- * @param login
- * @param password
- * @return
+ * @param login login name
+ * @param password plain text password
+ * @return password obfuscated wiht ICE algorithm
* @throws NoSuchAlgorithmException
* @throws UnsupportedEncodingException
*/
}
/**
- * @param login
- * @param password
- * @return
+ * @param login login name
+ * @param password ICE-obfuscated password
+ * @return clear-text password
* @throws NoSuchAlgorithmException
* @throws IOException
*/
return endTimestamp;
}
- /**
- * @param end_timestamp the end_timestamp to set
- */
public void setEndTimestamp(Date endTimestamp)
{
this.endTimestamp = endTimestamp;
}
return bits;
}
-
+
/**
* Convert bit count into mask
- *
- * @param bits
* @return
*/
public InetAddress maskFromBits()
/**
* Create NXCPMessage from binary NXCP message
- *
- * @param nxcpMessage binary NXCP message
- * @throws java.io.IOException
- * @throws GeneralSecurityException
- * @throws NXCPException
+ * @param nxcpMessage
+ * @param ectx
+ * @throws IOException
+ * @throws NXCPException
*/
public NXCPMessage(final byte[] nxcpMessage, EncryptionContext ectx) throws IOException, NXCPException
{
createFromStream(inputStream, byteArrayInputStream);
}
}
-
+
/**
* Create NXCPMessage from prepared input byte stream
- *
- * @param nxcpMessage binary NXCP message
- * @throws java.io.IOException
+ * @param inputStream
+ * @param byteArrayInputStream
+ * @throws IOException
*/
private void createFromStream(NXCPDataInputStream inputStream, ByteArrayInputStream byteArrayInputStream) throws IOException
{
/**
* Set or clear raw (binary) message flag
- *
- * @param isControl
- * true to set control message flag
+ * @param isRaw
*/
public void setBinaryMessage(boolean isRaw)
{
private int maxBufferSize;
private byte[] recvBuffer;
private int bufferPos = 0;
-
+
/**
- * @param bufferSize Size of receive buffer in bytes
+ * Constructor
+ * @param defaultBufferSize default receiving buffer size (in bytes)
+ * @param maxBufferSize maximum receiving buffer size (in bytes)
*/
public NXCPMessageReceiver(int defaultBufferSize, int maxBufferSize)
{