java.io.Serializable
, PrivacyProtocol
, SecurityProtocol
public abstract class PrivacyGeneric extends java.lang.Object implements PrivacyProtocol
Modifier and Type | Field | Description |
---|---|---|
protected CipherPool |
cipherPool |
|
protected int |
initVectorLength |
|
protected int |
keyBytes |
|
protected java.lang.String |
protocolClass |
|
protected java.lang.String |
protocolId |
|
protected org.snmp4j.security.Salt |
salt |
Constructor | Description |
---|---|
PrivacyGeneric() |
Modifier and Type | Method | Description |
---|---|---|
protected byte[] |
doDecrypt(byte[] cryptedData,
int offset,
int length,
byte[] decryptionKey,
byte[] iv) |
|
protected byte[] |
doFinal(byte[] unencryptedData,
int offset,
int length,
javax.crypto.Cipher alg) |
|
protected byte[] |
doFinalWithPadding(byte[] unencryptedData,
int offset,
int length,
javax.crypto.Cipher alg) |
|
protected javax.crypto.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, wait
decrypt, encrypt, extendShortKey, getDecryptParamsLength, getEncryptedLength, getID, getMaxKeyLength, getMinKeyLength
protected java.lang.String protocolId
protected java.lang.String protocolClass
protected int keyBytes
protected org.snmp4j.security.Salt salt
protected CipherPool cipherPool
protected int initVectorLength
protected javax.crypto.Cipher doInit(byte[] encryptionKey, byte[] initVect) throws javax.crypto.NoSuchPaddingException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected byte[] doFinal(byte[] unencryptedData, int offset, int length, javax.crypto.Cipher alg) throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.ShortBufferException
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
protected byte[] doFinalWithPadding(byte[] unencryptedData, int offset, int length, javax.crypto.Cipher alg) throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException, javax.crypto.ShortBufferException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
javax.crypto.ShortBufferException
protected byte[] doDecrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, byte[] iv)
public boolean isSupported()
SecurityProtocol
isSupported
in interface SecurityProtocol
true
if this security protocol is supported, false
otherwise.Copyright © 2018 SNMP4J.org. All rights reserved.