Source Code Cross Referenced for ICrypt.java in  » J2EE » wicket » wicket » util » crypt » 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 » J2EE » wicket » wicket.util.crypt 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * $Id: ICrypt.java 460331 2006-04-18 22:03:12Z dashorst $ $Revision: 460331 $
03:         * $Date: 2006-04-19 00:03:12 +0200 (Wed, 19 Apr 2006) $
04:         * 
05:         * ==============================================================================
06:         * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07:         * use this file except in compliance with the License. You may obtain a copy of
08:         * the License at
09:         * 
10:         * http://www.apache.org/licenses/LICENSE-2.0
11:         * 
12:         * Unless required by applicable law or agreed to in writing, software
13:         * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14:         * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15:         * License for the specific language governing permissions and limitations under
16:         * the License.
17:         */
18:        package wicket.util.crypt;
19:
20:        /**
21:         * Encryption and decryption implementations are accessed through this
22:         * interface. It provide some simple means to encrypt and decrypt strings, like
23:         * passwords etc.. It depends on the implementation itself which algorithms are
24:         * used to en-/decrypt the data.
25:         * <p>
26:         * If you value the privacy of your websites users, then please consider using
27:         * a one-way encryption algorithm instead of the Wicket provided ICrypt 
28:         * implementations. The intention of these encryption facilities is to keep 
29:         * passwords private when stored in cookies or in the session.The implementation 
30:         * of the encryption algorithm may change between releases. As such, this 
31:         * interface and its implementations are not intended and should not be used as
32:         * an encryption facility for persistent values.
33:         * <p>
34:         * As of Wicket 1.2 the methods encrypt and decrypt are deprecated. Consider
35:         * changing your persistent encryption strategy to be based on a one-way 
36:         * encryption such as a SHA1 hash, not depending on Wicket classes.
37:         *
38:         * @author Juergen Donnerstag
39:         */
40:        public interface ICrypt {
41:            /**
42:             * Decrypts a string.
43:             * 
44:             * @param text
45:             *            the text to decrypt
46:             * @return the decrypted string.
47:             * @deprecated
48:             */
49:            String decrypt(final String text);
50:
51:            /**
52:             * Decrypts a string using URL and filename safe Base64 decoding.
53:             * 
54:             * @param text
55:             *            the text to decrypt
56:             * @return the decrypted string.
57:             * @since 1.2
58:             */
59:            String decryptUrlSafe(final String text);
60:
61:            /**
62:             * Encrypts a string.
63:             * 
64:             * @param plainText
65:             * @return encrypted string
66:             * @deprecated
67:             */
68:            String encrypt(final String plainText);
69:
70:            /**
71:             * Encrypts a string using URL and filename safe Base64 encoding.
72:             * 
73:             * @param plainText
74:             * @return encrypted string
75:             * @since 1.2
76:             */
77:            String encryptUrlSafe(final String plainText);
78:
79:            /**
80:             * Sets private encryption key. It depends on the implementation if a
81:             * default key is applied or an exception is thrown, if no private key has
82:             * been provided.
83:             * 
84:             * @param key
85:             *            private key
86:             */
87:            void setKey(final String key);
88:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.