|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpUsmPrivAlgorithm
Encryption algorithm interface. Every privacy algorithm must be compliant to this interface. When developing your own algorithm you have to implement this interface.
Method Summary | |
---|---|
byte[] |
decrypt(byte[] key,
com.sun.management.internal.snmp.SnmpEncryptionPair pair)
Decrypt some data using a key. |
com.sun.management.internal.snmp.SnmpEncryptionPair |
encrypt(byte[] key,
byte[] data,
int length)
Encrypt some data using a key. |
int |
getDeltaSize()
Gets the delta size. |
int |
getKeySize()
The privacy algorithm key size. |
Methods inherited from interface com.sun.management.snmp.usm.SnmpUsmAlgorithm |
---|
getAlgorithm, getOid |
Method Detail |
---|
com.sun.management.internal.snmp.SnmpEncryptionPair encrypt(byte[] key, byte[] data, int length) throws SnmpUsmException
key
- The key to use.data
- The data to encrypt.length
- The length of the data to encrypt.
SnmpUsmException
byte[] decrypt(byte[] key, com.sun.management.internal.snmp.SnmpEncryptionPair pair) throws SnmpUsmException
key
- The key to use.pair
- The data to decrypt and parameters.
SnmpUsmException
int getKeySize()
int getDeltaSize()
getDeltaSize
in interface SnmpUsmAlgorithm
|
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 |