|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.snmp.usm.SnmpUsmAlgorithmImpl
com.sun.jdmk.snmp.usm.SnmpUsmHmacAlgorithm
com.sun.management.snmp.usm in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
FOR INTERNAL USE ONLY. This is the default implementation of the Hmac +
Message Digest algorithms. It is based on the standard
java.security packages.
| Constructor Summary | |
protected |
SnmpUsmHmacAlgorithm(String algoName,
String mdName)
Deprecated. |
| 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. |
String |
getAlgorithm()
Deprecated. Gets the unique algorithm name. |
abstract int |
getDeltaSize()
Deprecated. Gets the delta used for key change algorithm (see RFC 2574). |
byte[] |
localizeAuthKey(byte[] key,
SnmpEngineId engineId)
Deprecated. Translate a global key to a local one (RFC 2574 KUL). |
byte[] |
localizePrivKey(byte[] key,
SnmpEngineId engineId,
int keysize)
Deprecated. Translate a global privacy key to a local one (RFC 2574 KUL). |
byte[] |
password_to_key(String password)
Deprecated. Translate a password to a key according to the right algorithm (RFC 2574 algorithm). |
byte[] |
sign(byte[] key,
byte[] data,
int length)
Deprecated. Sign the passed data and returns the corresponding Hmac. |
String |
toString(byte[] signature)
Deprecated. Translate a signature to a displayable string. |
boolean |
verify(byte[] key,
byte[] data,
int length,
byte[] signature)
Deprecated. Verify that the passed signature is compliant with the passed data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.jdmk.snmp.usm.SnmpUsmAlgorithm |
getAlgorithm, getOid |
| Constructor Detail |
protected SnmpUsmHmacAlgorithm(String algoName,
String mdName)
| Method Detail |
public abstract int getDeltaSize()
SnmpUsmAlgorithm
getDeltaSize in interface SnmpUsmAlgorithm
public byte[] sign(byte[] key,
byte[] data,
int length)
sign in interface SnmpUsmAuthAlgorithmkey - The key to use.data - The data to sign.length - The data length.
public boolean verify(byte[] key,
byte[] data,
int length,
byte[] signature)
verify in interface SnmpUsmAuthAlgorithmkey - The key to use.data - The data to sign.length - The data length.signature - The signature (Hmac).
true means signature OK, false
means bad signature.public String toString(byte[] signature)
signature - The Hmac
public byte[] password_to_key(String password)
password_to_key in interface SnmpUsmAuthAlgorithmpassword - The password.
public byte[] localizeAuthKey(byte[] key,
SnmpEngineId engineId)
localizeAuthKey in interface SnmpUsmAuthAlgorithmkey - The key to use.engineId - The engine Id to use.
public byte[] localizePrivKey(byte[] key,
SnmpEngineId engineId,
int keysize)
localizePrivKey in interface SnmpUsmAuthAlgorithmkey - The key to use.engineId - The engine Id to use.keysize - The privacy algorithm key size.
public byte[] calculateAuthDelta(byte[] oldKey,
byte[] newKey,
byte[] random)
calculateAuthDelta in interface SnmpUsmAuthAlgorithmoldKey - The old key.newKey - The new key.random - The random value.
public byte[] calculatePrivDelta(byte[] oldKey,
byte[] newKey,
byte[] random,
int deltaSize)
calculatePrivDelta in interface SnmpUsmAuthAlgorithmoldKey - The old key.newKey - The new key.random - The random value.deltaSize - The algorithm delta size.
public byte[] calculateNewAuthKey(byte[] oldKey,
byte[] randomdelta)
calculateNewAuthKey in interface SnmpUsmAuthAlgorithmoldKey - The old key.randomdelta - Random and received delta concatenation.
public byte[] calculateNewPrivKey(byte[] oldKey,
byte[] randomdelta,
int deltaSize)
calculateNewPrivKey in interface SnmpUsmAuthAlgorithmoldKey - The old key.randomdelta - Random and received delta concatenation.deltaSize - The algorithm deltaSizepublic String getAlgorithm()
SnmpUsmAlgorithm
getAlgorithm in interface SnmpUsmAlgorithm
|
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 | ||||||||||