Package org.snmp4j.security
Interface SecurityProtocol
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
AuthenticationProtocol,PrivacyProtocol
- All Known Implementing Classes:
AuthGeneric,AuthHMAC128SHA224,AuthHMAC192SHA256,AuthHMAC256SHA384,AuthHMAC384SHA512,AuthMD5,AuthSHA,AuthSHA2,Priv3DES,PrivacyGeneric,PrivAES,PrivAES128,PrivAES192,PrivAES192With3DESKeyExtension,PrivAES256,PrivAES256With3DESKeyExtension,PrivAESWith3DESKeyExtension,PrivDES
The
SecurityProtocol class defines common methods of
authentication and privacy protocols.- Version:
- 2.6.0
- Author:
- Frank Fock, Jochen Katz
-
Method Summary
Modifier and TypeMethodDescriptiongetID()Gets the OID uniquely identifying the privacy protocol.intGet the maximum length of the key in bytes for this security protocol.booleanChecks whether this security protocol is actually supported by this Java runtime environment.
-
Method Details
-
getID
OID getID()Gets the OID uniquely identifying the privacy protocol.- Returns:
- an
OIDinstance.
-
isSupported
boolean isSupported()Checks whether this security protocol is actually supported by this Java runtime environment.- Returns:
trueif this security protocol is supported,falseotherwise.- Since:
- 2.5.0
-
getMaxKeyLength
int getMaxKeyLength()Get the maximum length of the key in bytes for this security protocol.- Returns:
- the (maximum) length of the security protocols key.
- Since:
- 2.6.0
-