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, toSubIndexcreateFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isExceptionfinalize, getClass, notify, notifyAll, wait, wait, waitencodeBER, getBERLength, getBERPayloadLengthpublic int getSecurityParametersPosition()
SecurityParametersgetSecurityParametersPosition in interface SecurityParameterspublic void setSecurityParametersPosition(int pos)
SecurityParameterssetSecurityParametersPosition in interface SecurityParameterspos - an integer value >= 0.public int getBERMaxLength(int securityLevel)
SecurityParametersSecurityParameters instance.getBERMaxLength in interface SecurityParameterssecurityLevel - the security level to be used.public void decodeBER(BERInputStream inputStream) throws IOException
AbstractVariableVariable from an InputStream.decodeBER in interface BERSerializabledecodeBER in class OctetStringinputStream - 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 © 2016 SNMP4J.org. All Rights Reserved.