com.sun.jmx.snmp.SnmpUsmKeyHandler |
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.
This API is a Sun Microsystems internal API and is subject to change without notice.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DES_DELTA_SIZE | DES privacy algorithm delta size. | |||||||||
int | DES_KEY_SIZE | DES privacy algorithm key size. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate the delta parameter needed when processing key change.
| |||||||||||
Calculate the delta parameter needed when processing key change for a privacy algorithm.
| |||||||||||
Localize the passed key using the passed
SnmpEngineId . | |||||||||||
Localize the passed privacy key using the passed
SnmpEngineId . | |||||||||||
Translate a password to a key.
|
DES privacy algorithm delta size. To be used when calculing privacy key delta.
DES privacy algorithm key size. To be used when localizing privacy key
Calculate the delta parameter needed when processing key change. This computation is done by the key change initiator. It MUST be compliant to RFC 2574 description.
algoName | The authentication algorithm to use. |
---|---|
oldKey | The old key. |
newKey | The new key. |
random | The random value. |
IllegalArgumentException | If the algorithm is unknown. |
---|
Calculate the delta parameter needed when processing key change for a privacy algorithm. This computation is done by the key change initiator. It MUST be compliant to RFC 2574 description.
algoName | The authentication algorithm to use. |
---|---|
oldKey | The old key. |
newKey | The new key. |
random | The random value. |
deltaSize | The algo delta size. |
IllegalArgumentException | If the algorithm is unknown. |
---|
Localize the passed key using the passed 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. |
---|
Localize the passed privacy key using the passed 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. |
---|
Translate a password to a key. It MUST be compliant to RFC 2574 description.
algoName | The authentication algorithm to use. |
---|---|
password | Password to convert. |
IllegalArgumentException | If the algorithm is unknown. |
---|