|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpUsmAuthAlgorithm
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)
Calculate the delta parameter needed when processing key change. |
byte[] |
calculateNewAuthKey(byte[] oldKey,
byte[] randomdelta)
Compute the new key and return it. |
byte[] |
calculateNewPrivKey(byte[] oldKey,
byte[] randomdelta,
int deltaSize)
Compute the new key and return it. |
byte[] |
calculatePrivDelta(byte[] oldKey,
byte[] newKey,
byte[] random,
int deltaSize)
Calculate the delta parameter needed when processing key change for a privacy algorithm. |
byte[] |
localizeAuthKey(byte[] key,
SnmpEngineId engineId)
Localize the passed key using the passed SnmpEngineId . |
byte[] |
localizePrivKey(byte[] key,
SnmpEngineId engineId,
int keysize)
Localize the passed privacy key using the passed SnmpEngineId . |
byte[] |
password_to_key(String password)
Translate a password to a key. |
byte[] |
sign(byte[] key,
byte[] text,
int length)
Sign some data using a key. |
boolean |
verify(byte[] key,
byte[] data,
int length,
byte[] signature)
Verify a received signed data. |
Methods inherited from interface com.sun.management.snmp.usm.SnmpUsmAlgorithm |
---|
getAlgorithm, getDeltaSize, getOid |
Method Detail |
---|
byte[] sign(byte[] key, byte[] text, int length)
key
- The key to use.text
- The data to sign.length
- The data length.
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.byte[] password_to_key(String password)
password
- Password to convert.
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.
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.
byte[] calculateAuthDelta(byte[] oldKey, byte[] newKey, byte[] random)
oldKey
- The old key.newKey
- The new key.random
- The random value.
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.
byte[] calculateNewAuthKey(byte[] oldKey, byte[] randomdelta)
oldKey
- The old key.randomdelta
- Random and received delta concatenation.byte[] calculateNewPrivKey(byte[] oldKey, byte[] randomdelta, int deltaSize)
oldKey
- The old key.randomdelta
- Random and received delta concatenation.deltaSize
- The algorithm deltaSize
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |