- java.lang.Object
-
- org.snmp4j.security.PrivacyGeneric
-
- org.snmp4j.security.PrivAES
-
- org.snmp4j.security.PrivAES256
-
- All Implemented Interfaces:
java.io.Serializable,NonStandardSecurityProtocol,PrivacyProtocol,SecurityProtocol
public class PrivAES256 extends PrivAES implements NonStandardSecurityProtocol
Encryption class for AES 256.- Version:
- 1.11
- Author:
- Jochen Katz
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OIDIDUnique ID of this privacy protocol.-
Fields inherited from class org.snmp4j.security.PrivacyGeneric
cipherPool, initVectorLength, keyBytes, protocolClass, protocolId
-
-
Constructor Summary
Constructors Constructor Description PrivAES256()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OIDgetDefaultID()Gets the default ID for this non-standard privacy protocol.OIDgetID()Gets the OID uniquely identifying the privacy protocol.voidsetID(OID newID)Assign a new ID to a non-standard security protocol instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.snmp4j.security.PrivacyGeneric
doDecrypt, doFinal, doFinalWithPadding, doInit, isSupported
-
Methods inherited from class org.snmp4j.security.PrivAES
asHex, decrypt, encrypt, extendShortKey, getDecryptParamsLength, getEncryptedLength, getMaxKeyLength, getMinKeyLength
-
Methods inherited from interface org.snmp4j.security.SecurityProtocol
isSupported
-
-
-
-
Field Detail
-
ID
public static OID ID
Unique ID of this privacy protocol.
-
-
Method Detail
-
getID
public OID getID()
Gets the OID uniquely identifying the privacy protocol.- Specified by:
getIDin interfacePrivacyProtocol- Specified by:
getIDin interfaceSecurityProtocol- Returns:
- an
OIDinstance.
-
setID
public void setID(OID newID)
Description copied from interface:NonStandardSecurityProtocolAssign a new ID to a non-standard security protocol instance.- Specified by:
setIDin interfaceNonStandardSecurityProtocol- Parameters:
newID- the new security protcol ID for the security protocol class called.
-
getDefaultID
public OID getDefaultID()
Description copied from interface:NonStandardSecurityProtocolGets the default ID for this non-standard privacy protocol.- Specified by:
getDefaultIDin interfaceNonStandardSecurityProtocol- Returns:
- the default ID as defined by the OOSNMP-USM-MIB.
-
-