Uses of Class
org.snmp4j.smi.OctetString
Packages that use OctetString
Package
Description
Provides classes and interfaces for creating, sending, and receiving SNMP
messages.
Provides classes and interfaces for SNMP4J event processing.
Provides classes and interfaces for the SNMP message processing.
Provides classes and interfaces for authentication and privacy of SNMP(v3)
messages.
Provides classes for the representation of SMIv1/v2 data types (which also
includes some basic ASN.1 primitive data types).
Provides transport protocol mappings for SNMP.
Contains table retrieval utilities and multi-threading support classes as
well as miscellaneous utility classes.
-
Uses of OctetString in org.snmp4j
Fields in org.snmp4j declared as OctetStringModifier and TypeFieldDescriptionprivate OctetStringDirectUserTarget.authenticationKeyprotected OctetStringUserTarget.authoritativeEngineIDprivate OctetStringCertifiedTarget.clientFingerprintprivate OctetStringScopedPDU.contextEngineIDprivate OctetStringScopedPDU.contextNameprivate OctetStringDirectUserTarget.privacyKeyprotected OctetStringAbstractTarget.securityNameprivate OctetStringTransportStateReference.securityNameprivate OctetStringCertifiedTarget.serverFingerprintFields in org.snmp4j with type parameters of type OctetStringMethods in org.snmp4j that return OctetStringModifier and TypeMethodDescriptionDirectUserTarget.getAuthenticationKey()Gets the authentication key associated directly with this user target (withoutUSMuser table lookup).CertifiedIdentity.getClientFingerprint()CertifiedTarget.getClientFingerprint()CommunityTarget.getCommunity()Gets the community octet string (which is the same as the security name).ScopedPDU.getContextEngineID()Gets the context engine ID of this scoped PDU.ScopedPDU.getContextName()Gets the context name of this scoped PDU.CertifiedIdentity.getIdentity()CertifiedTarget.getIdentity()DirectUserTarget.getPrivacyKey()Gets the privacy key associated directly with this user target (withoutUSMuser table lookup).final OctetStringAbstractTarget.getSecurityName()Target.getSecurityName()Gets the security name associated with this target.TransportStateReference.getSecurityName()CertifiedIdentity.getServerFingerprint()CertifiedTarget.getServerFingerprint()Methods in org.snmp4j with parameters of type OctetStringModifier and TypeMethodDescriptionSnmp.createLocalizedUsmUserEntry(byte[] engineID, OctetString securityName, OID authProtocol, OctetString authPassword, OID privProtocol, OctetString privPassword) Create and return aUsmUserEntrywith localized authentication and privacy keys from the provided authentication and privacy passwords.voidDirectUserTarget.setAuthenticationKey(OctetString authenticationKey) Sets the authentication key (localized for theUserTarget.authoritativeEngineID) to be used for this target directly.voidCommunityTarget.setCommunity(OctetString community) Sets the community octet sting.voidScopedPDU.setContextEngineID(OctetString contextEngineID) Sets the context engine ID field of the scoped PDU.voidScopedPDU.setContextName(OctetString contextName) Sets the context name field of this scoped PDU.voidDirectUserTarget.setPrivacyKey(OctetString privacyKey) Sets the privacy key (localized for theUserTarget.authoritativeEngineID) to be used for this target directly.final voidAbstractTarget.setSecurityName(OctetString securityName) Sets the security name to be used with this target.voidTarget.setSecurityName(OctetString securityName) Sets the security name to be used with this target.voidTransportStateReference.setSecurityName(OctetString securityName) Constructors in org.snmp4j with parameters of type OctetStringModifierConstructorDescriptionprotectedAbstractTarget(A address, OctetString securityName) CertifiedTarget(A address, OctetString identity, OctetString serverFingerprint, OctetString clientFingerprint) CertifiedTarget(OctetString identity) CommunityTarget(A address, OctetString community) Creates a fully specified community target.DirectUserTarget(A address, OctetString securityName, byte[] authoritativeEngineID, AuthenticationProtocol authenticationProtocol, OctetString authenticationKey, PrivacyProtocol privacyProtocol, OctetString privacyKey) Creates a SNMPv3 USM target with the supplied security level, one second time-out without retries.protectedSecureTarget(A address, OctetString securityName) Creates a SNMPv3 secure target with an address and security name.TransportStateReference(TransportMapping<?> transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID) TransportStateReference(TransportMapping<?> transport, Address address, OctetString securityName, SecurityLevel requestedSecurityLevel, SecurityLevel transportSecurityLevel, boolean sameSecurity, Object sessionID, Target<?> target) UserTarget(A address, OctetString securityName, byte[] authoritativeEngineID) Creates a SNMPv3 USM target with security level noAuthNoPriv, one second time-out without retries.UserTarget(A address, OctetString securityName, byte[] authoritativeEngineID, int securityLevel) Creates a SNMPv3 USM target with the supplied security level, one second time-out without retries. -
Uses of OctetString in org.snmp4j.cfg
Fields in org.snmp4j.cfg declared as OctetStringMethods in org.snmp4j.cfg that return OctetStringModifier and TypeMethodDescriptionEngineBootsCounterFile.getEngineId(OctetString defaultEngineID) EngineIdProvider.getEngineId(OctetString defaultEngineID) Gets the engine ID for the SNMP entity associated with thisEngineIdProvider.Methods in org.snmp4j.cfg with parameters of type OctetStringModifier and TypeMethodDescriptionEngineBootsCounterFile.getEngineId(OctetString defaultEngineID) EngineIdProvider.getEngineId(OctetString defaultEngineID) Gets the engine ID for the SNMP entity associated with thisEngineIdProvider.voidEngineBootsCounterFile.resetEngineId(OctetString engineId) voidEngineIdProvider.resetEngineId(OctetString engineId) Sets the persistently stored engine ID to a new value. -
Uses of OctetString in org.snmp4j.event
Fields in org.snmp4j.event declared as OctetStringMethods in org.snmp4j.event that return OctetStringModifier and TypeMethodDescriptionSnmpEngineEvent.getEngineID()Returns the engine ID associated with this event.Constructors in org.snmp4j.event with parameters of type OctetStringModifierConstructorDescriptionSnmpEngineEvent(MPv3 source, int type, OctetString engineID, Address engineAddress) -
Uses of OctetString in org.snmp4j.fluent
Fields in org.snmp4j.fluent declared as OctetStringModifier and TypeFieldDescriptionprivate OctetStringTargetBuilder.DirectUserBuilder.authPasswordprivate OctetStringTargetBuilder.TlsTargetBuilder.clientFingerprintprotected OctetStringPduBuilder.contextEngineIDprotected OctetStringPduBuilder.contextNameprivate final OctetStringTargetBuilder.TlsTargetBuilder.identityprivate OctetStringTargetBuilder.DirectUserBuilder.privPasswordprivate final OctetStringTargetBuilder.DirectUserBuilder.securityNameprotected OctetStringTargetBuilder.securityNameprivate OctetStringTargetBuilder.TlsTargetBuilder.serverFingerprintMethods in org.snmp4j.fluent with parameters of type OctetStringModifier and TypeMethodDescriptionTargetBuilder.DirectUserBuilder.authPassphrase(OctetString authPassword) TargetBuilder.TlsTargetBuilder.clientFingerprint(OctetString fingerprint) TargetBuilder.community(OctetString snmpV1V2Community) PduBuilder.contextEngineID(OctetString contextEngineID) PduBuilder.contextName(OctetString contextName) TargetBuilder.dtls(OctetString identity) TargetBuilder.DirectUserBuilder.privPassphrase(OctetString privPassword) TargetBuilder.TlsTargetBuilder.serverFingerprint(OctetString fingerprint) TargetBuilder.tls(OctetString identity) SnmpBuilder.tsm(EngineIdProvider engineIdProvider, OctetString defaultLocalEngineID, boolean usePrefix) Creates a Transport Security Model as defined by RFC 5591 and adds it to the builtSnmpinstance.SnmpBuilder.tsm(OctetString localEngineID, boolean usePrefix) Creates a Transport Security Model as defined by RFC 5591 and adds it to the builtSnmpinstance.TargetBuilder.user(OctetString securityName) TargetBuilder.user(OctetString securityName, byte[] authoritativeEngineID) SnmpBuilder.usm(SnmpEngineIdProvider snmpEngineIdProvider, OctetString defaultLocalEngineID) Creates a USM using the specifiedSnmpEngineIdProvider.SnmpBuilder.usm(OctetString localEngineID, int engineBoots) Creates a USM for the specified engine ID and engine boots counter.SnmpBuilder.v3(EngineIdProvider engineIdProvider, OctetString id) Adds aMPv3message processing model with a random engine ID based on the supplied ID string.SnmpBuilder.v3(OctetString id) Adds aMPv3message processing model with a random engine ID based on the supplied ID string.Constructors in org.snmp4j.fluent with parameters of type OctetStringModifierConstructorDescriptionprotectedDirectUserBuilder(OctetString securityName) protectedDirectUserBuilder(OctetString securityName, byte[] authoritativeEngineID) protectedTlsTargetBuilder(OctetString identity) -
Uses of OctetString in org.snmp4j.mp
Fields in org.snmp4j.mp declared as OctetStringModifier and TypeFieldDescriptionstatic final OctetStringMPv3.LOCAL_ENGINE_IDLocal engine ID constant for context engineID discovery as defined by RFC 5343.(package private) OctetStringMPv3.HeaderData.msgFlagsFields in org.snmp4j.mp with type parameters of type OctetStringMethods in org.snmp4j.mp that return OctetStringModifier and TypeMethodDescriptionprotected OctetStringMPv3.addEngineIdToCache(Address address, OctetString engineID) Put the engine ID for the given address into the internal cache.MPv3.getEngineID(Address address) Gets the engine ID associated with the supplied address from the local storage and fires the correspondingSnmpEngineEvent.MPv3.removeEngineID(Address address) Removes an engine ID association from the local storage and fires the correspondingSnmpEngineEvent.Methods in org.snmp4j.mp that return types with arguments of type OctetStringModifier and TypeMethodDescriptionMPv3.EngineIdCacheFactory.createEngineIdMap(EngineIdCacheSize maximumCapacity) Create a engine ID map with the given maximum capacity.MPv3.LimitedCapacityEngineIdCacheFactory.createEngineIdMap(EngineIdCacheSize cacheSize) Methods in org.snmp4j.mp with parameters of type OctetStringModifier and TypeMethodDescriptionbooleanMPv3.addEngineID(Address address, OctetString engineID) Adds an engine ID (other than the local engine ID) to the internal storage.protected OctetStringMPv3.addEngineIdToCache(Address address, OctetString engineID) Put the engine ID for the given address into the internal cache.static byte[]MPv3.createLocalEngineID(OctetString id) Creates a local engine ID based on the ID string supplied<A extends Address>
intMessageProcessingModel.prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) Prepare data elements from an incoming SNMP message as described in RFC3412 §7.2.<A extends Address>
intMPv1.prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) <A extends Address>
intMPv2c.prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) <A extends Address>
intMPv3.prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference) intMPv3.sendReport(MessageDispatcher messageDispatcher, ScopedPDU pdu, int securityLevel, int securityModel, OctetString securityName, int maxSizeResponseScopedPDU, StateReference<?> stateReference, VariableBinding payload) Sends a report message. -
Uses of OctetString in org.snmp4j.security
Subclasses of OctetString in org.snmp4j.securityModifier and TypeClassDescriptionclassTheSecretOctetStringis anOctetStringfor secret data like keys and passwords.classSecurityParametersimplementation for theTSMsecurity model.Fields in org.snmp4j.security declared as OctetStringModifier and TypeFieldDescriptionprivate OctetStringUsmSecurityParameters.authenticationParametersprivate OctetStringUsmSecurityParameters.authoritativeEngineIDprivate OctetStringUsmTimeEntry.engineIDprivate OctetStringUsmUserEntry.engineID(package private) OctetStringUsmUserTable.UsmUserKey.engineIDprotected OctetStringSNMPv3SecurityModel.localEngineIDprivate OctetStringUsmUser.localizationEngineIDprivate OctetStringUsmSecurityParameters.privacyParametersprivate final OctetStringUsmUser.securityName(package private) OctetStringUsmUserTable.UsmUserKey.securityNameprivate OctetStringUsmSecurityParameters.userNameprivate OctetStringUsmUserEntry.userNameMethods in org.snmp4j.security that return OctetStringModifier and TypeMethodDescriptionUsmSecurityParameters.getAuthenticationParameters()UsmUser.getAuthenticationPassphrase()Gets the authentication passphrase.UsmTimeEntry.getEngineID()UsmUserEntry.getEngineID()SNMPv3SecurityModel.getLocalEngineID()Returns the local engine ID.UsmUser.getLocalizationEngineID()Returns the localization engine ID for which this USM user has been already localized.UsmSecurityParameters.getPrivacyParameters()UsmUser.getPrivacyPassphrase()Gets the privacy passphrase.private OctetStringUSM.getSecurityName(OctetString engineID, OctetString securityName) UsmUser.getSecurityName()Gets the user's security name.UsmSecurityParameters.getUserName()UsmUserEntry.getUserName()private static OctetStringUSM.randomID()Methods in org.snmp4j.security with parameters of type OctetStringModifier and TypeMethodDescriptionUSM.addLocalizedUser(byte[] engineID, OctetString userName, OID authProtocol, byte[] authKey, OID privProtocol, byte[] privKey) Adds a localized user to the USM.protected UsmUserEntryUSM.addLocalizedUsmUserEntry(OctetString engineID, OctetString securityName, UsmUserEntry entry) voidUSM.addUser(OctetString userName, UsmUser user) Adds an USM user to the internal user name table.voidUSM.addUser(OctetString userName, OctetString engineID, UsmUser user) Adds an USM user to the internal user name table and associates it with an authoritative engine ID.intUsmTimeTable.checkEngineID(OctetString engineID, boolean discoveryAllowed, int engineBoots, int engineTime) byte[]Priv3DES.extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) byte[]PrivacyProtocol.extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) Extend a localized key that is too short.byte[]PrivAES.extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) byte[]PrivDES.extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) static SecretOctetStringSecretOctetString.fromOctetString(OctetString octetString) UsmTimeTable.getEntry(OctetString engineID) private OctetStringUSM.getSecurityName(OctetString engineID, OctetString securityName) UsmTimeTable.getTime(OctetString engineID) USM.getUser(OctetString engineID, OctetString securityName) Looks up aUsmUserEntryby an engine ID and security name.UsmUserTable.getUser(OctetString securityName) UsmUserTable.getUser(OctetString engineID, OctetString securityName) UsmUserTable.getUserEntries(OctetString userName) Gets all user entries with the supplied user name.booleanUSM.hasUser(OctetString engineID, OctetString securityName) Checks if the specified user is known by this USM.UsmUser.localizeUser(OctetString localizationEngineID, OctetString localizedAuthenticationKey, OctetString localizedPrivacyKey, SecurityProtocols securityProtocols) Return a copy of the current user with (updated) localized keys.byte[]AuthenticationProtocol.passwordToKey(OctetString passwordString, byte[] engineID) Generates the localized key for the given password and engine id.byte[]AuthGeneric.passwordToKey(OctetString passwordString, byte[] engineID) byte[]SecurityProtocols.passwordToKey(OID authProtocolID, OctetString passwordString, byte[] engineID) Generates the localized key for the given password and engine id for the authentication protocol specified by the supplied OID.byte[]SecurityProtocols.passwordToKey(OID privProtocolID, OID authProtocolID, OctetString passwordString, byte[] engineID) Generates the localized key for the given password and engine id for the privacy protocol specified by the supplied OID.intSecurityModel.processIncomingMsg(int messageProcessingModel, int maxMessageSize, SecurityParameters securityParameters, SecurityModel securityModel, int securityLevel, BERInputStream wholeMsg, TransportStateReference tmStateReference, OctetString securityEngineID, OctetString securityName, BEROutputStream scopedPDU, Integer32 maxSizeResponseScopedPDU, SecurityStateReference securityStateReference, StatusInformation statusInfo) Processes an incoming message and returns its plaintext payload.intTSM.processIncomingMsg(int messageProcessingModel, int maxMessageSize, SecurityParameters securityParameters, SecurityModel securityModel, int securityLevel, BERInputStream wholeMsg, TransportStateReference tmStateReference, OctetString securityEngineID, OctetString securityName, BEROutputStream scopedPDU, Integer32 maxSizeResponseScopedPDU, SecurityStateReference securityStateReference, StatusInformation statusInfo) intUSM.processIncomingMsg(int snmpVersion, int maxMessageSize, SecurityParameters securityParameters, SecurityModel securityModel, int securityLevel, BERInputStream wholeMsg, TransportStateReference tmStateReference, OctetString securityEngineID, OctetString securityName, BEROutputStream scopedPDU, Integer32 maxSizeResponseScopedPDU, SecurityStateReference securityStateReference, StatusInformation statusInfo) USM.removeAllUsers(OctetString userName) Removes all USM user from the internal user name table with the specified user name.USM.removeAllUsers(OctetString userName, OctetString engineID) Removes all USM user from the internal user name table with the specified user name and (optional) engine ID.UsmUserTable.removeAllUsers(OctetString securityName, OctetString engineID) voidUSM.removeEngineTime(OctetString engineID) Removes the specified engine ID from the internal time cache and thus forces an engine time rediscovery the next time the SNMP engine with the supplied ID is contacted.voidUsmTimeTable.removeEntry(OctetString engineID) Removes the specified engine ID from the time cache.USM.removeUser(OctetString engineID, OctetString userName) Deprecated.UsmUserTable.removeUser(OctetString engineID, OctetString securityName) private voidUSM.reportUnknownSecurityName(OctetString securityEngineID, OctetString securityName, int securityLevel, StatusInformation statusInfo, UsmSecurityStateReference usmSecurityStateReference) voidUsmSecurityParameters.setAuthenticationParameters(OctetString authenticationParameters) voidUsmUserEntry.setEngineID(OctetString engineID) private voidUsmUserTable.UsmUserKey.setEngineID(OctetString engineID) voidUSM.setLocalEngine(OctetString localEngineID, int engineBoots, int engineTime) Sets the local engine ID, number of boots, and time after boot.voidTSM.setLocalEngineID(OctetString localEngineID) voidUsmSecurityParameters.setPrivacyParameters(OctetString privacyParameters) voidUsmSecurityParameters.setUserName(OctetString userName) voidUsmUserEntry.setUserName(OctetString userName) Constructors in org.snmp4j.security with parameters of type OctetStringModifierConstructorDescriptionSecretOctetString(OctetString secret) TSM(OctetString localEngineID, boolean usePrefix) Creates a Transport Security Model as defined by RFC 5591.TSM(OctetString localEngineID, boolean usePrefix, CounterSupport counterSupport) Creates a Transport Security Model as defined by RFC 5591.USM(SecurityProtocols securityProtocols, OctetString localEngineID, int engineBoots) Creates a USM with the support for the supplied security protocols.USM(SecurityProtocols securityProtocols, OctetString localEngineID, int engineBoots, CounterSupport counterSupport) Creates a USM with the support for the supplied security protocols.UsmSecurityParameters(OctetString authoritativeEngineID, Integer32 authoritativeEngineBoots, Integer32 authoritativeEngineTime, OctetString userName, AuthenticationProtocol authenticationProtocol, PrivacyProtocol privacyProtocol) UsmTimeEntry(OctetString engineID, int engineBoots, int engineTime) Creates a time entry with engine ID, engine boots and time.UsmTimeTable(OctetString localEngineID, int engineBoots) UsmUser(OctetString securityName, OID authenticationProtocol, OctetString authenticationPassphrase, OID privacyProtocol, OctetString privacyPassphrase) Creates a USM user.UsmUser(OctetString securityName, OID authenticationProtocol, OctetString authenticationPassphrase, OID privacyProtocol, OctetString privacyPassphrase, OctetString localizationEngineID) Creates a localized USM user.UsmUserEntry(byte[] engineID, OctetString securityName, OID authProtocol, byte[] authKey, OID privProtocol, byte[] privKey) Creates a localized user entry.UsmUserEntry(OctetString userName, UsmUser user) Creates a user with user name and associatedUsmUser.UsmUserEntry(OctetString userName, OctetString engineID, UsmUser user) Creates a user with username and associatedUsmUser.UsmUserKey(OctetString engineID, OctetString securityName) -
Uses of OctetString in org.snmp4j.security.dh
Fields in org.snmp4j.security.dh declared as OctetStringModifier and TypeFieldDescriptionprivate static final OctetStringDHOperations.PBKDF2_AUTH_SALTprivate static final OctetStringDHOperations.PBKDF2_PRIV_SALTprivate final OctetStringDHOperations.DHKeyInfo.userNameMethods in org.snmp4j.security.dh that return OctetStringModifier and TypeMethodDescriptionstatic OctetStringDHOperations.derivePrivateKey(KeyPair keyPair) static OctetStringDHOperations.derivePublicKey(KeyPair keyPair) static OctetStringDHParameters.encodeBER(BigInteger prime, BigInteger generator, int privateValueLength) DHOperations.DHKeyInfo.getUserName()Methods in org.snmp4j.security.dh that return types with arguments of type OctetStringModifier and TypeMethodDescriptionstatic Map<OctetString, OctetString[]> DHOperations.getDHKickstartPublicKeys(Session session, PDUFactory pduFactory, Target<?> target, Set<OctetString> managerPublic) Get the public keys of the agent's kickstart table that match the local public keys provided from a remote agent.Methods in org.snmp4j.security.dh with parameters of type OctetStringModifier and TypeMethodDescriptionstatic KeyPairDHOperations.createKeyPair(OctetString publicKeyOctets, OctetString privateKeyOctets, DHParameters dhParameters) static DHParametersDHParameters.getDHParametersFromBER(OctetString berValue) Method parameters in org.snmp4j.security.dh with type arguments of type OctetStringModifier and TypeMethodDescriptionstatic Map<OctetString, OctetString[]> DHOperations.getDHKickstartPublicKeys(Session session, PDUFactory pduFactory, Target<?> target, Set<OctetString> managerPublic) Get the public keys of the agent's kickstart table that match the local public keys provided from a remote agent.Constructors in org.snmp4j.security.dh with parameters of type OctetStringModifierConstructorDescriptionDHKeyInfo(OctetString userName, byte[] privateKey, OID authProtocol, OID privProtocol) -
Uses of OctetString in org.snmp4j.security.nonstandard
Methods in org.snmp4j.security.nonstandard with parameters of type OctetStringModifier and TypeMethodDescriptionbyte[]PrivAESWith3DESKeyExtension.extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) -
Uses of OctetString in org.snmp4j.smi
Subclasses of OctetString in org.snmp4j.smiModifier and TypeClassDescriptionclassTheBitStringclass represents the obsolete SMI type BIT STRING which has been defined in RFC 1442 (an SNMPv2 draft) but which has been obsoleteted by RFC 1902 and RFC 2578.classTheOpaqueclass represents the SMI type Opaque which is used to transparently exchange BER encoded values.Methods in org.snmp4j.smi that return OctetStringModifier and TypeMethodDescriptionstatic OctetStringOctetString.fromByteArray(byte[] value) Creates anOctetStringfrom an byte array.static OctetStringOctetString.fromCharArray(char[] chars) Creates an OctetString from a UTF-8 encoded character array in a secure manner by zeroing out any intermediate buffers immediately and not using anStringobject.static OctetStringOctetString.fromCharArray(char[] string, char delimiter, int radix) Creates an OctetString from achararray by converting the delimited character sequence using the given radix into a byte array internally.static OctetStringOctetString.fromHexString(String hexString) static OctetStringOctetString.fromHexString(String hexString, char delimiter) static OctetStringOctetString.fromHexStringPairs(String hexString) Create an OctetString from a hexadecimal string of 2-byte pairs without delimiter.static OctetStringReturns anOctetStringfrom the provided index OID decoded as OctetString with or without implied length.static OctetStringOctetString.fromString(String stringOrNull) Creates anOctetStringfrom a string valuestatic OctetStringOctetString.fromString(String string, char delimiter, int radix) static OctetStringOctetString.fromString(String string, int radix) Creates an OctetString from a string representation in the specified radix.OctetString.mask(OctetString mask) Returns a copy of this OctetString where each bit not set in the supplied mask zeros the corresponding bit in the returned OctetString.OctetString.substring(int beginIndex, int endIndex) Returns a new string that is a substring of this string.Methods in org.snmp4j.smi that return types with arguments of type OctetStringModifier and TypeMethodDescriptionstatic Collection<OctetString> OctetString.split(OctetString octetString, OctetString delimOctets) Splits anOctetStringusing a set of delimiter characters similar to how a StringTokenizer would do it.Methods in org.snmp4j.smi with parameters of type OctetStringModifier and TypeMethodDescriptionvoidOctetString.append(OctetString octetString) Appends an octet string.OctetString.mask(OctetString mask) Returns a copy of this OctetString where each bit not set in the supplied mask zeros the corresponding bit in the returned OctetString.OID.mask(OctetString mask) Returns a copy of this OID where sub-identifiers have been set to zero for all n-th sub-identifier where the n-th bit of mask is zero.voidTransportIpAddress.setTransportAddress(OctetString transportAddress) Sets this transport address from an OcetString containing the address value in format as specified by the TRANSPORT-ADDRESS-MIB.voidOpaque.setValue(OctetString value) voidVariantVariable.setValue(OctetString value) static Collection<OctetString> OctetString.split(OctetString octetString, OctetString delimOctets) Splits anOctetStringusing a set of delimiter characters similar to how a StringTokenizer would do it.booleanOctetString.startsWith(OctetString prefix) Tests if this octet string starts with the specified prefix.static byte[]OctetString.toByteArray(OctetString octetString) Convertnullsafe anOctetStringto an byte array.Constructors in org.snmp4j.smi with parameters of type OctetStringModifierConstructorDescriptionOctetString(OctetString other) Creates an octet string from another OctetString by cloning its value. -
Uses of OctetString in org.snmp4j.tools.console
Fields in org.snmp4j.tools.console declared as OctetStringModifier and TypeFieldDescription(package private) OctetStringSnmpCommand.authoritativeEngineID(package private) OctetStringSnmpCommand.authPassphrase(package private) OctetStringSnmpCommand.community(package private) OctetStringSnmpCommand.contextEngineID(package private) OctetStringSnmpCommand.contextName(package private) OctetStringSnmpCommand.localEngineID(package private) OctetStringSnmpCommand.privPassphrase(package private) OctetStringSnmpCommand.securityName -
Uses of OctetString in org.snmp4j.transport
Fields in org.snmp4j.transport declared as OctetStringMethods in org.snmp4j.transport that return OctetStringConstructors in org.snmp4j.transport with parameters of type OctetString -
Uses of OctetString in org.snmp4j.transport.tls
Fields in org.snmp4j.transport.tls declared as OctetStringModifier and TypeFieldDescriptionprivate OctetStringSecurityNameMapping.dataprivate OctetStringSecurityNameMapping.fingerprintprivate OctetStringSecurityNameMapping.securityNameFields in org.snmp4j.transport.tls with type parameters of type OctetStringModifier and TypeFieldDescriptionprivate final Map<SecurityNameMapping, OctetString> DefaultTlsTmSecurityCallback.securityNameMappingMethods in org.snmp4j.transport.tls that return OctetStringModifier and TypeMethodDescriptionSecurityNameMapping.getData()SecurityNameMapping.getFingerprint()static OctetStringTLSTMUtil.getFingerprint(X509Certificate cert) static OctetStringTLSTMUtil.getIpAddressFromSubjAltName(Collection<List<?>> altNames) DefaultTlsTmSecurityCallback.getSecurityName(X509Certificate[] peerCertificateChain) PropertiesTlsTmSecurityCallback.getSecurityName(X509Certificate[] peerCertificateChain) SecurityNameMapping.getSecurityName()TlsTmSecurityCallback.getSecurityName(C[] peerCertificateChain) Gets the tmSecurityName (see RFC 5953) from the certificate chain of the communication peer that needs to be authenticated.TlsTmSecurityCallbackProxy.getSecurityName(C[] peerCertificateChain) private OctetStringDefaultTlsTmSecurityCallback.mapCertToTSN(X509Certificate cert, SecurityNameMapping.CertMappingType mappingType, OctetString data) DefaultTlsTmSecurityCallback.removeSecurityNameMapping(OctetString fingerprint, SecurityNameMapping.CertMappingType type, OctetString data) Methods in org.snmp4j.transport.tls with parameters of type OctetStringModifier and TypeMethodDescriptionvoidDefaultTlsTmSecurityCallback.addSecurityNameMapping(OctetString fingerprint, SecurityNameMapping.CertMappingType type, OctetString data, OctetString securityName) Adds a mapping to derive a security name from a certificate.private booleanTLSTMExtendedTrustManager.isMatchingFingerprint(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode) static booleanTLSTMUtil.isMatchingFingerprint(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode, CounterSupport tlstmCounters, LogAdapter logger, Object eventSource) Checks if any of the certificates in the provided array matches the given fingerprint.private booleanTlsTrustManager.isMatchingFingerprint(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode) Deprecated.private OctetStringDefaultTlsTmSecurityCallback.mapCertToTSN(X509Certificate cert, SecurityNameMapping.CertMappingType mappingType, OctetString data) DefaultTlsTmSecurityCallback.removeSecurityNameMapping(OctetString fingerprint, SecurityNameMapping.CertMappingType type, OctetString data) Constructors in org.snmp4j.transport.tls with parameters of type OctetStringModifierConstructorDescriptionSecurityNameMapping(OctetString fingerprint, OctetString data, SecurityNameMapping.CertMappingType type, OctetString securityName) TlsX509CertifiedTarget(A address, OctetString identity, OctetString serverFingerprint, OctetString clientFingerprint, TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback) -
Uses of OctetString in org.snmp4j.uri
Methods in org.snmp4j.uri with parameters of type OctetStringModifier and TypeMethodDescriptionprivate Target<?> SnmpURI.createTarget(String host, int port, OctetString userInfo) -
Uses of OctetString in org.snmp4j.util
Fields in org.snmp4j.util declared as OctetStringModifier and TypeFieldDescriptionprivate OctetStringDefaultPDUFactory.contextEngineIDprivate OctetStringDefaultPDUFactory.contextNameMethods in org.snmp4j.util that return OctetStringModifier and TypeMethodDescriptionstatic OctetStringSnmpConfigurator.createOctetString(String s, String defaultString) Create an OctetString from a String value.DefaultPDUFactory.getContextEngineID()Gets the context engine ID forScopedPDUinstances created by this factory.DefaultPDUFactory.getContextName()Gets the context name forScopedPDUinstances created by this factory.Methods in org.snmp4j.util with parameters of type OctetStringModifier and TypeMethodDescriptionvoidDefaultPDUFactory.setContextEngineID(OctetString contextEngineID) Sets the context engine ID forScopedPDUinstances created by this factory.voidDefaultPDUFactory.setContextName(OctetString contextName) Sets the context name forScopedPDUinstances created by this factory.Constructors in org.snmp4j.util with parameters of type OctetStringModifierConstructorDescriptionDefaultPDUFactory(int pduType, OctetString contextEngineID, OctetString contextName) Creates aPDUFactorywith type and context information.
nullis provided this method does only delete the generic user.