|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sun.management.snmp
in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
This interface allows you to compute key localization and delta generation. It is useful when adding user in USM MIB. An instance of SnmpUsmKeyHandler
is associated to each SnmpEngine
object.
When computing key, an authentication algorithm is needed. The supported ones are : usmHMACMD5AuthProtocol and usmHMACSHAAuthProtocol.
Field Summary | |
static int |
DES_DELTA_SIZE
Deprecated. DES privacy algorithm delta size. |
static int |
DES_KEY_SIZE
Deprecated. DES privacy algorithm key size. |
Method Summary | |
byte[] |
calculateAuthDelta(String algoName,
byte[] oldKey,
byte[] newKey,
byte[] random)
Deprecated. Calculate the delta parameter needed when processing key change. |
byte[] |
calculatePrivDelta(String algoName,
byte[] oldKey,
byte[] newKey,
byte[] random,
int deltaSize)
Deprecated. Calculate the delta parameter needed when processing key change for a privacy algorithm. |
byte[] |
localizeAuthKey(String algoName,
byte[] key,
SnmpEngineId engineId)
Deprecated. Localize the passed key using the passed SnmpEngineId . |
byte[] |
localizePrivKey(String algoName,
byte[] key,
SnmpEngineId engineId,
int keysize)
Deprecated. Localize the passed privacy key using the passed SnmpEngineId . |
byte[] |
password_to_key(String algoName,
String password)
Deprecated. Translate a password to a key. |
Field Detail |
public static final int DES_KEY_SIZE
public static final int DES_DELTA_SIZE
Method Detail |
public byte[] password_to_key(String algoName, String password) throws IllegalArgumentException
algoName
- The authentication algorithm to use.password
- Password to convert.
IllegalArgumentException
- If the algorithm is unknown.public byte[] localizeAuthKey(String algoName, byte[] key, SnmpEngineId engineId) throws IllegalArgumentException
SnmpEngineId
. It MUST be compliant to RFC 2574 description.
algoName
- The authentication algorithm to use.key
- The key to localize;engineId
- The Id used to localize the key.
IllegalArgumentException
- If the algorithm is unknown.public byte[] localizePrivKey(String algoName, byte[] key, SnmpEngineId engineId, int keysize) throws IllegalArgumentException
SnmpEngineId
. It MUST be compliant to RFC 2574 description.
algoName
- The authentication algorithm to use.key
- The key to localize;engineId
- The Id used to localize the key.keysize
- The privacy algorithm key size.
IllegalArgumentException
- If the algorithm is unknown.public byte[] calculateAuthDelta(String algoName, byte[] oldKey, byte[] newKey, byte[] random) throws IllegalArgumentException
algoName
- The authentication algorithm to use.oldKey
- The old key.newKey
- The new key.random
- The random value.
IllegalArgumentException
- If the algorithm is unknown.public byte[] calculatePrivDelta(String algoName, byte[] oldKey, byte[] newKey, byte[] random, int deltaSize) throws IllegalArgumentException
algoName
- The authentication algorithm to use.oldKey
- The old key.newKey
- The new key.random
- The random value.deltaSize
- The algorithm delta size.
IllegalArgumentException
- If the algorithm is unknown.
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |