Record Class SnmpMcpServer.ServerConfiguration.SnmpV3Config

java.lang.Object
java.lang.Record
org.snmp4j.mcp.SnmpMcpServer.ServerConfiguration.SnmpV3Config
Record Components:
securityName - The security name associated with the SNMP user.
authProtocol - The authentication protocol to use (e.g., MD5, SHA).
authPassphrase - The passphrase used for authentication.
privProtocol - The privacy protocol to use (e.g., DES, AES).
privPassphrase - The passphrase used for encryption.
securityLevel - The security level indicating the type of security (e.g., noAuthNoPriv, authNoPriv, authPriv).
contextName - The context name associated with the SNMP request.
contextEngineID - The Engine ID of the SNMP context for scoping information.
authoritativeEngineID - The authoritative engine ID for SNMP messages.
Enclosing class:
SnmpMcpServer.ServerConfiguration

public static record SnmpMcpServer.ServerConfiguration.SnmpV3Config(String securityName, String authProtocol, String authPassphrase, String privProtocol, String privPassphrase, String securityLevel, String contextName, String contextEngineID, String authoritativeEngineID) extends Record
Represents the configuration for SNMPv3 (Simple Network Management Protocol version 3). This record contains various parameters required to establish SNMPv3 communication with the appropriate security configurations.
Since:
0.0.1
Version:
0.1.0
Author:
SNMP4J.org
  • Constructor Details

    • SnmpV3Config

      public SnmpV3Config(String securityName, String authProtocol, String authPassphrase, String privProtocol, String privPassphrase, String securityLevel, String contextName, String contextEngineID, String authoritativeEngineID)
      Creates an instance of a SnmpV3Config record class.
      Parameters:
      securityName - the value for the securityName record component
      authProtocol - the value for the authProtocol record component
      authPassphrase - the value for the authPassphrase record component
      privProtocol - the value for the privProtocol record component
      privPassphrase - the value for the privPassphrase record component
      securityLevel - the value for the securityLevel record component
      contextName - the value for the contextName record component
      contextEngineID - the value for the contextEngineID record component
      authoritativeEngineID - the value for the authoritativeEngineID record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • securityName

      public String securityName()
      Returns the value of the securityName record component.
      Returns:
      the value of the securityName record component
    • authProtocol

      public String authProtocol()
      Returns the value of the authProtocol record component.
      Returns:
      the value of the authProtocol record component
    • authPassphrase

      public String authPassphrase()
      Returns the value of the authPassphrase record component.
      Returns:
      the value of the authPassphrase record component
    • privProtocol

      public String privProtocol()
      Returns the value of the privProtocol record component.
      Returns:
      the value of the privProtocol record component
    • privPassphrase

      public String privPassphrase()
      Returns the value of the privPassphrase record component.
      Returns:
      the value of the privPassphrase record component
    • securityLevel

      public String securityLevel()
      Returns the value of the securityLevel record component.
      Returns:
      the value of the securityLevel record component
    • contextName

      public String contextName()
      Returns the value of the contextName record component.
      Returns:
      the value of the contextName record component
    • contextEngineID

      public String contextEngineID()
      Returns the value of the contextEngineID record component.
      Returns:
      the value of the contextEngineID record component
    • authoritativeEngineID

      public String authoritativeEngineID()
      Returns the value of the authoritativeEngineID record component.
      Returns:
      the value of the authoritativeEngineID record component