Property | Type | Description | |
---|---|---|---|
_authentication | AuthenticationDigests | ||
_authenticationSecret | MutableByte | ||
_engineBoots | Integer32 | ||
_engineId | OctetString | ||
_engineTime | Integer32 | ||
_privacy | PrivacyProtocols | ||
_privacyParameters | OctetString | ||
_privacySecret | MutableByte | ||
_securityName | OctetString |
Method | Description | |
---|---|---|
Authenticate ( MutableByte &wholePacket ) : void |
Authenticate SNMP version 3 message. Before calling this member, entire SNMP version 3 packet needs to be encoded. After authentication process is completed, authenticationParameters value in the USM header is updated and SNMPv3 packet needs to be re-encoded to include it in the BER encoded stream prior to transmission.
|
|
Authenticate ( byte authKey, MutableByte &wholePacket ) : void |
Authenticate SNMP version 3 message. Before calling this member, entire SNMP version 3 packet needs to be encoded. After authentication process is completed, authenticationParameters value in the USM header is updated and SNMPv3 packet needs to be re-encoded to include it in the BER encoded stream prior to transmission.
|
|
Clone ( ) : object |
Clone object
|
|
IsAuthentic ( MutableByte wholePacket ) : bool |
Authenticate incoming packet
|
|
IsAuthentic ( byte authKey, MutableByte wholePacket ) : bool |
Authenticate incoming packet
|
|
Reset ( ) : void |
Reset USM object to default values. All OctetString and MutableByte members are reset to 0 length and privacy and authentication protocols are set to none.
|
|
SetEngineTime ( |
Set SNMP version 3 agent engine time related values.
|
|
UserSecurityModel ( ) : System |
Standard constructor.
|
|
UserSecurityModel ( |
Copy constructor.
|
|
Valid ( ) : bool |
Checks for validity and completeness of information in this class. This method doesn't "know" what you are trying to do so it tests for minimal information required.
|
|
decode ( byte buffer, int offset ) : int |
Decode USM portion of the SNMP version 3 packet.
|
|
encode ( MutableByte buffer ) : void |
BER encode security model field. USM security model is a SEQUENCE encoded inside a OCTETSTRING. To encode it, first encode the sequence of class values then "wrap" it inside a OCTETSTRING field |
public Authenticate ( MutableByte &wholePacket ) : void | ||
wholePacket | MutableByte | SNMP version 3 BER encoded packet. |
return | void |
public Authenticate ( byte authKey, MutableByte &wholePacket ) : void | ||
authKey | byte | Authentication key (not password) |
wholePacket | MutableByte | SNMP version 3 BER encoded packet. |
return | void |
public IsAuthentic ( MutableByte wholePacket ) : bool | ||
wholePacket | MutableByte | Received BER encoded SNMP version 3 packet |
return | bool |
public IsAuthentic ( byte authKey, MutableByte wholePacket ) : bool | ||
authKey | byte | Authentication key (not password) |
wholePacket | MutableByte | Received BER encoded SNMP version 3 packet |
return | bool |
public SetEngineTime ( |
||
engineTime | SNMP version 3 agent engine time value | |
engineBoots | SNMP version 3 agent engine boot value | |
return | void |
public UserSecurityModel ( |
||
value | Class to copy values from | |
return | System |
public decode ( byte buffer, int offset ) : int | ||
buffer | byte | Received SNMP packet BER encoded |
offset | int | Offset within the buffer to start decoding USM information |
return | int |
public encode ( MutableByte buffer ) : void | ||
buffer | MutableByte | Buffer to store encoded USM security model header |
return | void |
protected AuthenticationDigests _authentication | ||
return | AuthenticationDigests |
protected MutableByte _authenticationSecret | ||
return | MutableByte |