Uses of Class
org.snmp4j.security.UsmUser
Package
Description
Provides classes and interfaces for authentication and privacy of SNMP(v3)
messages.
-
Uses of UsmUser in org.snmp4j.security
Modifier and TypeMethodDescriptionUsmUserEntry.getUsmUser()
UsmUser.localizeUser
(OctetString localizationEngineID, OctetString localizedAuthenticationKey, OctetString localizedPrivacyKey, SecurityProtocols securityProtocols) Return a copy of the current user with (updated) localized keys.USM.removeUser
(OctetString engineID, OctetString userName) Deprecated.UsmUser.setLocalizationGrant
(UsmUser.LocalizationGrant localizationGrant) Set the localization grant, i.e.Modifier and TypeMethodDescriptionUSM.removeAllUsers
(OctetString userName) Removes all USM user from the internal username table with the specified username.USM.removeAllUsers
(OctetString userName, OctetString engineID) Removes all USM user from the internal username table with the specified username and (optional) engine ID.Modifier and TypeMethodDescriptionvoid
Adds an USM user to the internal username table.void
USM.addUser
(UsmUser user, OctetString engineID) Adds an USM user to the internal username table and associates it with an authoritative engine ID.void
USM.addUser
(OctetString userName, UsmUser user) Deprecated.UseUSM.addUser(UsmUser)
instead to make sure user's userName matches securityName.void
USM.addUser
(OctetString userName, OctetString engineID, UsmUser user) Deprecated.UseUSM.addUser(UsmUser)
instead to make sure that userName matches securityName.int
Compares two USM users by their security names.void
Sets the users of this USM.void
UsmUserEntry.setUsmUser
(UsmUser usmUser) ModifierConstructorDescriptionUsmUserEntry
(OctetString userName, UsmUser user) Creates a user with username and associatedUsmUser
.UsmUserEntry
(OctetString userName, OctetString engineID, UsmUser user) Creates a user with username and associatedUsmUser
.
null
is provided this method does only delete the generic user.