public class TsmSecurityParameters extends OctetString implements SecurityParameters
SecurityParameters
implementation for the TSM
security model.SMISYNTAXES_PROPERTIES
Constructor and Description |
---|
TsmSecurityParameters() |
Modifier and Type | Method and Description |
---|---|
void |
decodeBER(BERInputStream inputStream)
Decodes a
Variable from an InputStream . |
int |
getBERMaxLength(int securityLevel)
Gets the maximum length of the BER encoded representation of this
SecurityParameters instance. |
int |
getScopedPduPosition()
Gets the position of the
ScopedPDU . |
int |
getSecurityParametersPosition()
Gets the byte position of the first byte (counted from zero) of the
security parameters in the whole message.
|
void |
setSecurityParametersPosition(int pos)
Sets the position of the first byte (counted from zero) of the security
parameters in the whole SNMP message.
|
append, append, append, append, clear, clone, compareTo, encodeBER, equals, equalsValue, fromByteArray, fromHexString, fromHexString, fromHexStringPairs, fromString, fromString, fromSubIndex, get, getBERLength, getBERPayloadLength, getSyntax, getValue, hashCode, isPrintable, length, mask, set, setValue, setValue, split, startsWith, substring, toASCII, toByteArray, toHexString, toHexString, toInt, toLong, toString, toString, toString, toSubIndex
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
finalize, getClass, notify, notifyAll, wait, wait, wait
encodeBER, getBERLength, getBERPayloadLength
public int getSecurityParametersPosition()
SecurityParameters
getSecurityParametersPosition
in interface SecurityParameters
public void setSecurityParametersPosition(int pos)
SecurityParameters
setSecurityParametersPosition
in interface SecurityParameters
pos
- an integer value >= 0.public int getBERMaxLength(int securityLevel)
SecurityParameters
SecurityParameters
instance.getBERMaxLength
in interface SecurityParameters
securityLevel
- the security level to be used.public void decodeBER(BERInputStream inputStream) throws IOException
AbstractVariable
Variable
from an InputStream
.decodeBER
in interface BERSerializable
decodeBER
in class OctetString
inputStream
- an InputStream
containing a BER encoded byte stream.IOException
- if the stream could not be decoded by using BER rules.public int getScopedPduPosition()
ScopedPDU
.BERInputStream
.Copyright © 2024 SNMP4J.org. All rights reserved.