| org.snmp4j.security.SecurityParameters
All known Subclasses: org.snmp4j.security.UsmSecurityParameters,
SecurityParameters | public interface SecurityParameters extends BERSerializable(Code) | | The SecurityParameters interface represents the security
parameters in a SNMPv3 message.
author: Frank Fock version: 1.0 |
Method Summary | |
int | getBERMaxLength(int securityLevel) Gets the maximum length of the BER encoded representation of this
SecurityParameters instance. | int | getSecurityParametersPosition() Gets the byte position of the first byte (counted from zero) of the
security parameters in the whole message.
the position of the first byte (counted from zero) of the securityparameters in the whole SNMP message. | void | setSecurityParametersPosition(int pos) Sets the position of the first byte (counted from zero) of the security
parameters in the whole SNMP message. |
getBERMaxLength | int getBERMaxLength(int securityLevel)(Code) | | Gets the maximum length of the BER encoded representation of this
SecurityParameters instance.
Parameters: securityLevel - the security level to be used.the maximum BER encoded length in bytes. |
getSecurityParametersPosition | int getSecurityParametersPosition()(Code) | | Gets the byte position of the first byte (counted from zero) of the
security parameters in the whole message.
the position of the first byte (counted from zero) of the securityparameters in the whole SNMP message. -1 is returned, when the positionis unknown (not set). |
setSecurityParametersPosition | void setSecurityParametersPosition(int pos)(Code) | | Sets the position of the first byte (counted from zero) of the security
parameters in the whole SNMP message.
Parameters: pos - an integer value >= 0. |
|
|