public abstract class PrivacyGeneric extends Object implements PrivacyProtocol
| Modifier and Type | Field and Description |
|---|---|
protected CipherPool |
cipherPool |
protected int |
initVectorLength |
protected int |
keyBytes |
protected String |
protocolClass |
protected String |
protocolId |
protected org.snmp4j.security.Salt |
salt |
| Constructor and Description |
|---|
PrivacyGeneric() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
doDecrypt(byte[] cryptedData,
int offset,
int length,
byte[] decryptionKey,
byte[] iv) |
protected byte[] |
doFinal(byte[] unencryptedData,
int offset,
int length,
Cipher alg) |
protected byte[] |
doFinalWithPadding(byte[] unencryptedData,
int offset,
int length,
Cipher alg) |
protected Cipher |
doInit(byte[] encryptionKey,
byte[] initVect) |
boolean |
isSupported()
Checks whether this security protocol is actually supported by this Java runtime environment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrypt, encrypt, extendShortKey, getDecryptParamsLength, getEncryptedLength, getID, getMaxKeyLength, getMinKeyLengthprotected String protocolId
protected String protocolClass
protected int keyBytes
protected org.snmp4j.security.Salt salt
protected CipherPool cipherPool
protected int initVectorLength
protected Cipher doInit(byte[] encryptionKey, byte[] initVect) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, InvalidAlgorithmParameterException
protected byte[] doFinal(byte[] unencryptedData,
int offset,
int length,
Cipher alg)
throws BadPaddingException,
IllegalBlockSizeException,
ShortBufferException
protected byte[] doFinalWithPadding(byte[] unencryptedData,
int offset,
int length,
Cipher alg)
throws IllegalBlockSizeException,
BadPaddingException,
ShortBufferException
protected byte[] doDecrypt(byte[] cryptedData,
int offset,
int length,
byte[] decryptionKey,
byte[] iv)
public boolean isSupported()
SecurityProtocolisSupported in interface SecurityProtocoltrue if this security protocol is supported, false otherwise.Copyright © 2020 SNMP4J.org. All rights reserved.