Module org.snmp4j

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

public interface SecurityProtocol extends Serializable
The SecurityProtocol class defines common methods of authentication and privacy protocols.
Version:
2.6.0
Author:
Frank Fock, Jochen Katz
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the OID uniquely identifying the privacy protocol.
    int
    Get the maximum length of the key in bytes for this security protocol.
    boolean
    Checks 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 OID instance.
    • isSupported

      boolean isSupported()
      Checks whether this security protocol is actually supported by this Java runtime environment.
      Returns:
      true if this security protocol is supported, false otherwise.
      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