| java.lang.Object org.snmp4j.security.Salt
Salt | class Salt (Code) | | Class that holds a 64 bit salt value for crypto operations.
This class tries to use the SecureRandom class to initialize
the salt value. If SecureRandom is not available the class Random
is used.
author: Jochen Katz version: 1.0 |
Constructor Summary | |
protected | Salt() Default constructor, initializes the salt to a random value. |
Method Summary | |
public static Salt | getInstance() Get a initialized Salt object. | public synchronized long | getNext() Get the next value of the salt. |
Salt | protected Salt()(Code) | | Default constructor, initializes the salt to a random value.
|
getInstance | public static Salt getInstance()(Code) | | Get a initialized Salt object.
the Salt object |
getNext | public synchronized long getNext()(Code) | | Get the next value of the salt.
previous value increased by one. |
|
|