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.- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthoritativeEngineIDrecord component.Returns the value of theauthPassphraserecord component.Returns the value of theauthProtocolrecord component.Returns the value of thecontextEngineIDrecord component.Returns the value of thecontextNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprivPassphraserecord component.Returns the value of theprivProtocolrecord component.Returns the value of thesecurityLevelrecord component.Returns the value of thesecurityNamerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aSnmpV3Configrecord class.- Parameters:
securityName- the value for thesecurityNamerecord componentauthProtocol- the value for theauthProtocolrecord componentauthPassphrase- the value for theauthPassphraserecord componentprivProtocol- the value for theprivProtocolrecord componentprivPassphrase- the value for theprivPassphraserecord componentsecurityLevel- the value for thesecurityLevelrecord componentcontextName- the value for thecontextNamerecord componentcontextEngineID- the value for thecontextEngineIDrecord componentauthoritativeEngineID- the value for theauthoritativeEngineIDrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
securityName
Returns the value of thesecurityNamerecord component.- Returns:
- the value of the
securityNamerecord component
-
authProtocol
Returns the value of theauthProtocolrecord component.- Returns:
- the value of the
authProtocolrecord component
-
authPassphrase
Returns the value of theauthPassphraserecord component.- Returns:
- the value of the
authPassphraserecord component
-
privProtocol
Returns the value of theprivProtocolrecord component.- Returns:
- the value of the
privProtocolrecord component
-
privPassphrase
Returns the value of theprivPassphraserecord component.- Returns:
- the value of the
privPassphraserecord component
-
securityLevel
Returns the value of thesecurityLevelrecord component.- Returns:
- the value of the
securityLevelrecord component
-
contextName
Returns the value of thecontextNamerecord component.- Returns:
- the value of the
contextNamerecord component
-
contextEngineID
Returns the value of thecontextEngineIDrecord component.- Returns:
- the value of the
contextEngineIDrecord component
-
authoritativeEngineID
Returns the value of theauthoritativeEngineIDrecord component.- Returns:
- the value of the
authoritativeEngineIDrecord component
-