Java Doc for PrivacyProtocol.java in  » Net » snmp4j » org » snmp4j » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.snmp4j.security.PrivacyProtocol

All known Subclasses:   org.snmp4j.security.PrivAES,  org.snmp4j.security.PrivDES,  org.snmp4j.security.Priv3DES,
PrivacyProtocol
public interface PrivacyProtocol extends SecurityProtocol(Code)
The PrivacyProtocol interface defines a common interface for all SNMP privacy protocols.
author:
   Jochen Katz & Frank Fock
version:
   1.9




Method Summary
 byte[]decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)
     Decrypts a message using a given decryption key, engine boots count, and engine ID.
Parameters:
  cryptedData - the crypted data.
 byte[]encrypt(byte[] unencryptedData, int offset, int length, byte[] encryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)
     Encrypts a message using a given encryption key, engine boots count, and engine ID.
Parameters:
  unencryptedData - the unencrypted data.
 byte[]extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol)
     Extend a localized key that is too short. Some privacy protocols require a key that is longer than the key generated by the pasword to key algorithm of the authentication protocol.
 intgetDecryptParamsLength()
     Gets the length of the decryption parameters used by this security protocol.
 intgetEncryptedLength(int scopedPDULength)
     Gets the length of a scoped PDU when encrypted with this security protocol.
 OIDgetID()
     Gets the OID uniquely identifying the privacy protocol.
 intgetMaxKeyLength()
     Gets the maximum key size for this privacy protcol.
 intgetMinKeyLength()
     Gets the minimum key size for this privacy protcol.



Method Detail
decrypt
byte[] decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)(Code)
Decrypts a message using a given decryption key, engine boots count, and engine ID.
Parameters:
  cryptedData - the crypted data. This byte array may contain leading and trailingbytes that will not be decrypted.
Parameters:
  offset - the offset into the cryptedData where to startencryption.
Parameters:
  length - the length of the substring starting at offset to decrypt.
Parameters:
  decryptionKey - the key to be used for decryption.
Parameters:
  engineBoots - the engine boots counter to use.
Parameters:
  engineTime - the engine time to use.
Parameters:
  decryptParams - contains the decryption parameters.the decrypted data, or null if decryption failed.



encrypt
byte[] encrypt(byte[] unencryptedData, int offset, int length, byte[] encryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)(Code)
Encrypts a message using a given encryption key, engine boots count, and engine ID.
Parameters:
  unencryptedData - the unencrypted data. This byte array may contain leading and trailingbytes that will not be encrypted.
Parameters:
  offset - the offset into the unencryptedData where to startencryption.
Parameters:
  length - the length of the substring starting at offset to encrypt.
Parameters:
  encryptionKey - the key to be used for encryption.
Parameters:
  engineBoots - the engine boots counter to use.
Parameters:
  engineTime - the engine time to use.
Parameters:
  decryptParams - returns the decryption parameters needed to decrypt the data thathas been encrypted by this method.the encrypted copy of unencryptedData.



extendShortKey
byte[] extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol)(Code)
Extend a localized key that is too short. Some privacy protocols require a key that is longer than the key generated by the pasword to key algorithm of the authentication protocol. This function extends a short key to the required length.
Parameters:
  shortKey - the short key that was generated usingAuthenticationProtocol.passwordToKey function.
Parameters:
  password - the password to use for key extension.
Parameters:
  engineID - the SNMP engine ID of the authoritative engine.
Parameters:
  authProtocol - the authentication protocol that should be used.the extended key or shortKey if no extension is needed.
since:
   1.9



getDecryptParamsLength
int getDecryptParamsLength()(Code)
Gets the length of the decryption parameters used by this security protocol. a positive integer denoting the length of decryption parameters returnedby this security protocol.



getEncryptedLength
int getEncryptedLength(int scopedPDULength)(Code)
Gets the length of a scoped PDU when encrypted with this security protocol.
Parameters:
  scopedPDULength - the length of the (unencrypted) scoped PDU.the length of the encrypted scoped PDU.



getID
OID getID()(Code)
Gets the OID uniquely identifying the privacy protocol. an OID instance.



getMaxKeyLength
int getMaxKeyLength()(Code)
Gets the maximum key size for this privacy protcol. the minimum key size for this privacy protcol.



getMinKeyLength
int getMinKeyLength()(Code)
Gets the minimum key size for this privacy protcol. the minimum key size for this privacy protcol.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.