org.snmp4j.security

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » snmp4j » org.snmp4j.security 
org.snmp4j.security
org.snmp4j.security Provides classes and interfaces for authentication and privacy of SNMP(v3) messages.

The org.snmp4j.security package contains three groups of classes and interfaces:

  • The authentication protocols group contains interfaces and classes for authentication of SNMP(v3) messages.
  • The privacy protocols group contains interfaces and classes for encryption and decryption of SNMP(v3) messages.
  • The security model group combines authentication and privacy protocols to provide security services to message processing models.

Authentication as well as privacy protocols are security protocols and thus both are derived from the common interface SecurityProtocol. In order to be able to use a security protocol with SNMP4J, the protocol implementation class has to be registered with the SecurityProtocols singleton, which provides access to authentication and privacy protocols.

Authentication Protocols

All SNMP4J authentication protocol implementations have to implement the AuthenticationProtocol interface. SNMP4J provides implementation for the following authentication protocols:

  • MD5, which is implemented by AuthMD5 and
  • SHA, which is implemented by AuthSHA.

Privacy Protocols

All SNMP4J privacy protocol implementations have to implement the PrivacyProtocol interface. SNMP4J provides implementation for the following privacy protocols:

  • DES in CBC mode, which is implemented by PrivDES and
  • AES with 128bit key, which is implemented by PrivAES128.
  • AES with 192bit key, which is implemented by PrivAES192.
  • AES with 256bit key, which is implemented by PrivAES256. In order to be able to use 256bit strong encryption, the strong encryption enhancement package has to be downloaded and installed.

Security Models

All SNMP4J security models have to implement the SecurityModel interface. Before a security model can be used with SNMP4J, it has to be registered with the SecurityModels singleton which provides access to security models. SNMP4J implements a single security model, the User Based Security Model (USM).

The USM class uses a user name table (which contains user names) and a user table (which contains localized user information) to store user information. A time table is used to store time information about SNMP engines to protect SNMP communication against replay attacks if the corresponding security level has chosen.

The following UML class diagram shows the most important classes of the org.snmp4j.security package and their relationships (relationships to other packages are not shown):

Java Source File NameTypeComment
AuthenticationProtocol.javaInterface The AuthenticationProtocol interface defines a common interface for all SNMP authentication protocols.
AuthGeneric.javaClass The abstract class AuthGeneric implements common operations for SNMP authentication protocols, such as MD5 and SHA.
AuthMD5.javaClass The AuthMD5 class implements the MD5 authentication protocol.
AuthSHA.javaClass The SHA class implements the Secure Hash Authentication.
ByteArrayWindow.javaClass The ByteArrayWindow provides windowed access to a subarray of a byte array.
DecryptParams.javaClass Parameter class for encrypt and decrypt methods of SecurityProtocol .
Priv3DES.javaClass Privacy protocol class for Triple DES (DESEDE). This class uses DES-EDE in CBC mode to encrypt the data.
PrivacyProtocol.javaInterface The PrivacyProtocol interface defines a common interface for all SNMP privacy protocols.
PrivAES.javaClass Base class for PrivAES128, PrivAES192 and PrivAES256. This class uses AES in CFB mode to encrypt the data.
PrivAES128.javaClass Encryption class for AES 128.
PrivAES192.javaClass Encryption class for AES 192.
PrivAES256.javaClass Encryption class for AES 256.
PrivDES.javaClass Privacy protocol class for DES. This class uses DES in CBC mode to encrypt the data.
Salt.javaClass Class that holds a 64 bit salt value for crypto operations. This class tries to use the SecureRandom class to initialize the salt value.
SecurityLevel.javaClass The SecurityLevel interface contains enumerated values for the different security levels.
SecurityModel.javaInterface The SecurityModel interface as described in RFC3411 §4.4.
SecurityModels.javaClass The SecurityModels class is a collection of all supported security models of a SNMP entity.
SecurityParameters.javaInterface The SecurityParameters interface represents the security parameters in a SNMPv3 message.
SecurityProtocol.javaInterface The SecurityProtocol class defines common methods of authentication and privacy protocols.
SecurityProtocols.javaClass The SecurityProtocols class holds all authentication and privacy protocols for a SNMP entity.

To register security protocols other than the default, set the system property SecurityProtocols.SECURITY_PROTOCOLS_PROPERTIES to a customized version of the SecurityProtocols.properties file.

SecurityStateReference.javaInterface The SecurityStateReference interface is an empty marker interface for security model dependend state references.
USM.javaClass The USM class implements the User Based Security Model (USM) as defined in RFC3414.
UsmSecurityParameters.javaClass
UsmSecurityStateReference.javaClass The UsmSecurityStateReference holds cached security data.
UsmTimeEntry.javaClass The UsmTimeEntry class represents time synchronization information associated with an engine ID.
UsmTimeTable.javaClass The UsmTimeTable class is a singleton that stores USM user information as part of the Local Configuration Datastore (LCD).
UsmUser.javaClass The UsmUser class represents USM user providing information to secure SNMPv3 message exchange.
UsmUserEntry.javaClass The UsmUserEntry class represents a user in the Local Configuration Datastore (LCD).
UsmUserTable.javaClass The UsmUserTable class stores USM user information as part of the Local Configuration Datastore (LCD).
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.