SnmpUsmKeyHandlerpublic interface 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. |
Fields Summary |
---|
public static int | DES_KEY_SIZEDES privacy algorithm key size. To be used when localizing privacy key | public static int | DES_DELTA_SIZEDES privacy algorithm delta size. To be used when calculing privacy key delta. |
Methods Summary |
---|
public byte[] | calculateAuthDelta(java.lang.String algoName, byte[] oldKey, byte[] newKey, byte[] random)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.
| public byte[] | calculatePrivDelta(java.lang.String algoName, byte[] oldKey, byte[] newKey, byte[] random, int deltaSize)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.
| public byte[] | localizeAuthKey(java.lang.String algoName, byte[] key, SnmpEngineId engineId)Localize the passed key using the passed SnmpEngineId . It MUST be compliant to RFC 2574 description.
| public byte[] | localizePrivKey(java.lang.String algoName, byte[] key, SnmpEngineId engineId, int keysize)Localize the passed privacy key using the passed SnmpEngineId . It MUST be compliant to RFC 2574 description.
| public byte[] | password_to_key(java.lang.String algoName, java.lang.String password)Translate a password to a key. It MUST be compliant to RFC 2574 description.
|
|