|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sun.management.snmp.usm
in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
Authentication algorithm interface. Every authentication algorithm must be compliant to this interface. When developing your own authentication algorithm you have to implement this interface.
Method Summary | |
byte[] |
calculateAuthDelta(byte[] oldKey,
byte[] newKey,
byte[] random)
Deprecated. Calculate the delta parameter needed when processing key change. |
byte[] |
calculateNewAuthKey(byte[] oldKey,
byte[] randomdelta)
Deprecated. Compute the new key and return it. |
byte[] |
calculateNewPrivKey(byte[] oldKey,
byte[] randomdelta,
int deltaSize)
Deprecated. Compute the new key and return it. |
byte[] |
calculatePrivDelta(byte[] oldKey,
byte[] newKey,
byte[] random,
int deltaSize)
Deprecated. Calculate the delta parameter needed when processing key change for a privacy algorithm. |
byte[] |
localizeAuthKey(byte[] key,
SnmpEngineId engineId)
Deprecated. Localize the passed key using the passed SnmpEngineId . |
byte[] |
localizePrivKey(byte[] key,
SnmpEngineId engineId,
int keysize)
Deprecated. Localize the passed privacy key using the passed SnmpEngineId . |
byte[] |
password_to_key(String password)
Deprecated. Translate a password to a key. |
byte[] |
sign(byte[] key,
byte[] text,
int length)
Deprecated. Sign some data using a key. |
boolean |
verify(byte[] key,
byte[] data,
int length,
byte[] signature)
Deprecated. Verify a received signed data. |
Methods inherited from interface com.sun.jdmk.snmp.usm.SnmpUsmAlgorithm |
getAlgorithm, getDeltaSize, getOid |
Method Detail |
public byte[] sign(byte[] key, byte[] text, int length)
key
- The key to use.text
- The data to sign.length
- The data length.
public boolean verify(byte[] key, byte[] data, int length, byte[] signature)
key
- The key to use.data
- The data that has been signed with the key.length
- The data length.signature
- The signature to compare to.
true
if signatures are equals,
false
otherwise.public byte[] password_to_key(String password)
password
- Password to convert.
public byte[] localizeAuthKey(byte[] key, SnmpEngineId engineId)
SnmpEngineId
.
It MUST be compliant to RFC 2574 description.
key
- The key to localize;engineId
- The Id used to localize the key.
public byte[] localizePrivKey(byte[] key, SnmpEngineId engineId, int keysize)
SnmpEngineId
. It MUST be compliant to RFC 2574 description.
key
- The key to localize;engineId
- The Id used to localize the key.keysize
- The privacy algorithm key size.
public byte[] calculateAuthDelta(byte[] oldKey, byte[] newKey, byte[] random)
oldKey
- The old key.newKey
- The new key.random
- The random value.
public byte[] calculatePrivDelta(byte[] oldKey, byte[] newKey, byte[] random, int deltaSize)
oldKey
- The old key.newKey
- The new key.random
- The random value.deltaSize
- The algorithm delta size.
public byte[] calculateNewAuthKey(byte[] oldKey, byte[] randomdelta)
oldKey
- The old key.randomdelta
- Random and received delta concatenation.public byte[] calculateNewPrivKey(byte[] oldKey, byte[] randomdelta, int deltaSize)
oldKey
- The old key.randomdelta
- Random and received delta concatenation.deltaSize
- The algorithm deltaSize
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |