Свойство | Тип | Описание | |
---|---|---|---|
_authenticationKey | byte[] | ||
_authenticationProtocol | AuthenticationDigests | ||
_authenticationSecret | MutableByte | ||
_contextEngineId | OctetString | ||
_contextName | OctetString | ||
_engineBoots | Integer32 | ||
_engineId | OctetString | ||
_engineTime | Integer32 | ||
_engineTimeStamp | System.DateTime | ||
_maxMessageSize | Integer32 | ||
_privacyKey | byte[] | ||
_privacyProtocol | PrivacyProtocols | ||
_privacySecret | MutableByte | ||
_reportable | bool | ||
_securityName | OctetString |
Метод | Описание | |
---|---|---|
BuildCachedSecurityKeys ( ) : void |
Build cached authentication and privacy encryption keys if they are appropriate for the selected security mode. This method should be called after discovery process has been completed and all security related values have been set. For noAuthNoPriv, none of the keys are generated. authNoPriv will result in authentication key cached. authPriv will generate authentication and privacy keys. For successful key caching you need to set both relevant protocols and secret values. |
|
Clone ( ) : object |
Clone current object
|
|
GetCurrentEngineTime ( ) : int |
Calculates and returns current agents engine time. ValidateEngineTime is called prior to calculation to make sure current engine time is timely enough to use. EngineTime is calculated as last received engine time + difference in seconds between the time stamp saved when last time value was received and current time (using the internal GMT clock).
|
|
InitializePacket ( |
InitializePacket SNMP packet with values from this class. Works only on SNMP version 3 packets.
|
|
Reset ( ) : void |
Reset the class. Initialize all member values to class defaults.
|
|
ResetKeys ( ) : void |
Reset privacy and authentication keys to null.
|
|
SecureAgentParameters ( ) : System |
Constructor
|
|
SecureAgentParameters ( |
Copy constructor. Initialize the class with the values of the parameter class values.
|
|
UpdateDiscoveryValues ( |
Update class values with SNMP version 3 discovery values from the supplied SnmpV3Packet class. Values updated are EngineId, EngineTime and EngineBoots.
|
|
UpdateTimeStamp ( ) : void |
Updates engine time timestamp. This value is used to determine if agents engine time stored in this class is valid. Timestamp is saved as DateTime class by default initialized to DateTime.MinValue. Timestamp value is stored in GMT to make it portable (if it is saved on one computer and loaded on another that uses a different time zone).
|
|
UpdateValues ( |
Copy all relevant values from the SnmpV3Packet class. Do not use this class for updating the SNMP version 3 discovery process results because secret name, authentication and privacy values are updated as well which discovery process doesn't use.
|
|
Valid ( ) : bool |
Checks validity of the class.
|
|
ValidateEngineTime ( ) : bool |
Validate agents engine time. Valid engine time value is time that has been initialized to a value other then default (DateTime.MinValue is default set in the constructor) and that has been updated in the last 10 times the SNMP v3 timely window (150 seconds). In other words, valid time is any time value in the last 1500 seconds (or 25 minutes).
|
|
ValidateIncomingPacket ( |
Validate that incoming packet has arrived from the correct engine id and is using a correct combination of privacy and authentication values.
|
|
authNoPriv ( String securityName, AuthenticationDigests authDigest, String authSecret ) : void |
Prepare class for authNoPriv operations. Set privacy protocol to none
|
|
authPriv ( String securityName, AuthenticationDigests authDigest, String authSecret, PrivacyProtocols privProtocol, String privSecret ) : void |
Prepare class for authPriv operations.
|
|
noAuthNoPriv ( String securityName ) : void |
Prepare class for noAuthNoPriv operations. Set authentication and privacy protocols to none.
|
Метод | Описание | |
---|---|---|
EngineTimeStamp ( ) : System.DateTime |
Get engine time stamp value (last time engine boots and time values were retrieved from the SNMP agent).
|
public InitializePacket ( |
||
packet | Instance of |
|
Результат | void |
public SecureAgentParameters ( |
||
second | Parameter class. | |
Результат | System |
public UpdateDiscoveryValues ( |
||
packet | ||
Результат | void |
public UpdateValues ( |
||
packet | ||
Результат | void |
public ValidateIncomingPacket ( |
||
packet | Received and parsed SNMP version 3 packet. | |
Результат | bool |
public authNoPriv ( String securityName, AuthenticationDigests authDigest, String authSecret ) : void | ||
securityName | String | User security name |
authDigest | AuthenticationDigests | Authentication protocol |
authSecret | String | Authentication secret (password) |
Результат | void |
public authPriv ( String securityName, AuthenticationDigests authDigest, String authSecret, PrivacyProtocols privProtocol, String privSecret ) : void | ||
securityName | String | User security name |
authDigest | AuthenticationDigests | Authentication protocol |
authSecret | String | Authentication secret (password) |
privProtocol | PrivacyProtocols | Privacy protocol |
privSecret | String | Privacy secret (encryption password) |
Результат | void |
public noAuthNoPriv ( String securityName ) : void | ||
securityName | String | User security name |
Результат | void |
protected AuthenticationDigests _authenticationProtocol | ||
Результат | AuthenticationDigests |
protected MutableByte _authenticationSecret | ||
Результат | MutableByte |
protected DateTime,System _engineTimeStamp | ||
Результат | System.DateTime |
protected PrivacyProtocols _privacyProtocol | ||
Результат | PrivacyProtocols |