From 29cbf08314dd7db21263343241234ef0d1a51bcf Mon Sep 17 00:00:00 2001
From: John Thompson
+
+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+ Important: This class allows bi-directional password-based encryption
+ of user passwords
+ in ACEGI using Jasypt. But please note that passwords should not be
+ encrypted in a bi-directional way, but instead as uni-directional
+ digests (hashes). Encrypting passwords in a way they can be decrypted
+ can be a severe security issue, and should only be considered in legacy
+ or complex inter-application integration scenarios.
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+
+ Important: This implementation ignores any salt provided through
+ the interface methods, as the internal Jasypt
+ TextEncryptor or PBEStringEncryptor objects normally use a
+ random one. This means that salt can be safely passed as
+ null.
+
+ Usage with a TextEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ Usage with a PBEStringEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ This class is thread-safe
+
+
+
+
+
+
+
+
+
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+
+ Important: This implementation ignores any salt provided through
+ the interface methods, as the internal Jasypt
+ PasswordEncryptor or StringDigester objects normally use a
+ random one. This means that salt can be safely passed as
+ null.
+
+ Usage with a PasswordEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ Usage with a StringDigester
+
+ This class can be used like this from your Spring XML resource files:
+
+ This class is thread-safe
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+ Important: This class allows bi-directional password-based encryption
+ of user passwords
+ in ACEGI using Jasypt. But please note that passwords should not be
+ encrypted in a bi-directional way, but instead as uni-directional
+ digests (hashes). Encrypting passwords in a way they can be decrypted
+ can be a severe security issue, and should only be considered in legacy
+ or complex inter-application integration scenarios.
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+
+ Important: This implementation ignores any salt provided through
+ the interface methods, as the internal Jasypt
+ TextEncryptor or PBEStringEncryptor objects normally use a
+ random one. This means that salt can be safely passed as
+ null.
+
+ Usage with a TextEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ Usage with a PBEStringEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ This class is thread-safe
+
+
+
+
+
+
+
+
+
+
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+
+ Important: This implementation ignores any salt provided through
+ the interface methods, as the internal Jasypt
+ PasswordEncryptor or StringDigester objects normally use a
+ random one. This means that salt can be safely passed as
+ null.
+
+ Usage with a PasswordEncryptor
+
+ This class can be used like this from your Spring XML resource files:
+
+ Usage with a StringDigester
+
+ This class can be used like this from your Spring XML resource files:
+
+ This class is thread-safe
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Packages
+
+
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-summary.html
new file mode 100644
index 00000000..845cf1cb
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-summary.html
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+
+
+ Extension of
+ The encryptable parameters are:
+
+
+
+
+
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/allclasses-noframe.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/allclasses-noframe.html
new file mode 100644
index 00000000..f0a66fc2
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/allclasses-noframe.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+PasswordEncoder
+
+
+PasswordEncoder
+
+PBEPasswordEncoder
+
+PBEPasswordEncoder
+
+
+
+
+
+
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/constant-values.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/constant-values.html
new file mode 100644
index 00000000..a2a8c188
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/constant-values.html
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+PasswordEncoder
+
+
+PasswordEncoder
+
+PBEPasswordEncoder
+
+PBEPasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Constant Field Values
+
+Contents
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/deprecated-list.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/deprecated-list.html
new file mode 100644
index 00000000..32185b1c
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/deprecated-list.html
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Deprecated API
+
+Contents
+
+
+
+
+
+
+
+
+Deprecated Classes
+
+
+org.jasypt.spring.security.PasswordEncoder
+
+
+ Renamed as org.jasypt.acegisecurity.PasswordEncoder.
+ Class will be removed from this package in 1.11.
+
+org.jasypt.spring.security.PBEPasswordEncoder
+
+
+ Renamed as org.jasypt.acegisecurity.PBEPasswordEncoder.
+ Class will be removed from this package in 1.11.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/help-doc.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/help-doc.html
new file mode 100644
index 00000000..32e9c4e2
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/help-doc.html
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+How This API Document Is Organized
+
+Overview
+
+
+
+
+Package
+
+
+
+
+
+
+Class/Interface
+
+
+
+
+
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Annotation Type
+
+
+
+
+
+
+
+Enum
+
+
+
+
+
+
+Use
+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+
+Tree (Class Hierarchy)
+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with
+java.lang.Object. The interfaces do not inherit from java.lang.Object.
+
+
+Deprecated API
+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+
+Index
+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+
+Prev/Next
+These links take you to the next or previous class, interface, package, or related page.
+Frames/No Frames
+These links show and hide the HTML frames. All pages are available with or without frames.
+
+Serialized Form
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+
+Constant Field Values
+The Constant Field Values page lists the static final fields and their values.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index-all.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index-all.html
new file mode 100644
index 00000000..73803b53
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index-all.html
@@ -0,0 +1,233 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+E I O P S
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+E
+
+
+
+
+I
+
+
+
+
+O
+
+
+
+
+P
+
+
+
+
+S
+
+
+
+E I O P S
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index.html
new file mode 100644
index 00000000..48aed355
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+org.jasypt.acegisecurity
+
+
+Class PBEPasswordEncoder
+Object
+
+
org.jasypt.acegisecurity.PBEPasswordEncoder
+
+
+
+
+
+
+
+public final class PBEPasswordEncoder
setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ ...
+ <!-- Your application may use the TextEncryptor in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" >
+ <property name="password" value="myPassword" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the TextEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PBEPasswordEncoder">
+ <property name="textEncryptor">
+ <ref bean="jasyptTextEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+ ...
+ <!-- Your application may use the PBEStringEncryptor in several places,-->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" >
+ <property name="algorithm" value="PBEWithMD5AndTripleDES" />
+ <property name="password" value="myPassword" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the PBEStringEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PBEPasswordEncoder">
+ <property name="pbeStringEncryptor">
+ <ref bean="jasyptPBEStringEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+
+
+PBEPasswordEncoder()
+
+
+ Creates a new instance of PBEPasswordEncoder
+
+
+
+
+
+Method Summary
+
+
+
+
+ String
+encodePassword(String rawPass,
+ Object salt)
+
+
+ Encodes a password.
+
+
+
+ boolean
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+ Checks a password's validity.
+
+
+
+ void
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
+
+ Sets a string digester to be used.
+
+
+
+ void
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
+
+ Sets a text encryptor to be used.
+
+
+
+
+Methods inherited from class Object
+
+
+
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+Constructor Detail
+
+PBEPasswordEncoder
+
+public PBEPasswordEncoder()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+setTextEncryptor
+
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
+
+
+
+
+
+textEncryptor - the text encryptor instance to be used.
+
+
+setPbeStringEncryptor
+
+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
+
+
+
+
+
+pbeStringEncryptor - the PBE string encryptor instance to be used.
+
+
+encodePassword
+
+public String encodePassword(String rawPass,
+ Object salt)
+
+
+
+
+encodePassword in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+rawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.
+
+
+isPasswordValid
+
+public boolean isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+
+
+
+isPasswordValid in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+encPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/PasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/PasswordEncoder.html
new file mode 100644
index 00000000..2fe75a9d
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/PasswordEncoder.html
@@ -0,0 +1,457 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+org.jasypt.acegisecurity
+
+
+Class PasswordEncoder
+Object
+
+
org.jasypt.acegisecurity.PasswordEncoder
+
+
+
+
+
+
+
+public final class PasswordEncoder
setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ ...
+ <!-- Your application may use the PasswordEncryptor in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" />
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the PasswordEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PasswordEncoder">
+ <property name="passwordEncryptor">
+ <ref bean="jasyptPasswordEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+ ...
+ <!-- Your application may use the StringDigester in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" >
+ <property name="algorithm" value="SHA-1" />
+ <property name="iterations" value="100000" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the StringDigester instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PasswordEncoder">
+ <property name="stringDigester">
+ <ref bean="jasyptStringDigester" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+
+
+PasswordEncoder()
+
+
+ Creates a new instance of PasswordEncoder
+
+
+
+
+
+Method Summary
+
+
+
+
+ String
+encodePassword(String rawPass,
+ Object salt)
+
+
+ Encodes a password.
+
+
+
+ boolean
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+ Checks a password's validity.
+
+
+
+ void
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
+
+ Sets a password encryptor to be used.
+
+
+
+ void
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
+
+ Sets a string digester to be used.
+
+
+
+
+Methods inherited from class Object
+
+
+
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+Constructor Detail
+
+PasswordEncoder
+
+public PasswordEncoder()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+setPasswordEncryptor
+
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
+
+
+
+
+
+passwordEncryptor - the password encryptor instance to be used.
+
+
+setStringDigester
+
+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
+
+
+
+
+
+stringDigester - the string digester instance to be used.
+
+
+encodePassword
+
+public String encodePassword(String rawPass,
+ Object salt)
+
+
+
+
+encodePassword in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+rawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.
+
+
+isPasswordValid
+
+public boolean isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+
+
+
+isPasswordValid in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+encPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PBEPasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PBEPasswordEncoder.html
new file mode 100644
index 00000000..4a524bae
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PBEPasswordEncoder.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Class
+
org.jasypt.acegisecurity.PBEPasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PasswordEncoder.html
new file mode 100644
index 00000000..8ed24e21
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/class-use/PasswordEncoder.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Class
+
org.jasypt.acegisecurity.PasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-frame.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-frame.html
new file mode 100644
index 00000000..10d7dab0
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-frame.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-summary.html
new file mode 100644
index 00000000..508fa333
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-summary.html
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+Classes
+
+
+
+PasswordEncoder
+
+PBEPasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Package org.jasypt.acegisecurity
+
+
+
+
+
+
+
+
+
+Class Summary
+
+
+PasswordEncoder
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+
+PBEPasswordEncoder
+
+ This class implements the Spring Security (ACEGI)
+ org.acegisecurity.providers.encoding.PasswordEncoder
+ interface, allowing Spring Security-enabled applications to use JASYPT
+ for password encryption.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-tree.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-tree.html
new file mode 100644
index 00000000..cbb949eb
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-tree.html
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Hierarchy For Package org.jasypt.acegisecurity
+
+
+
+
+
+Class Hierarchy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-use.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-use.html
new file mode 100644
index 00000000..0bf8e374
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/acegisecurity/package-use.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Package
+
org.jasypt.acegisecurity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PBEPasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PBEPasswordEncoder.html
new file mode 100644
index 00000000..cbe8f9b5
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PBEPasswordEncoder.html
@@ -0,0 +1,472 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+org.jasypt.spring.security
+
+
+Class PBEPasswordEncoder
+Object
+
+
org.jasypt.spring.security.PBEPasswordEncoder
+
+
+
+Deprecated. Renamed as org.jasypt.acegisecurity.PBEPasswordEncoder.
+ Class will be removed from this package in 1.11.
+
+
+
+
+public final class PBEPasswordEncoder
setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ ...
+ <!-- Your application may use the TextEncryptor in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" >
+ <property name="password" value="myPassword" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the TextEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PBEPasswordEncoder">
+ <property name="textEncryptor">
+ <ref bean="jasyptTextEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+ ...
+ <!-- Your application may use the PBEStringEncryptor in several places,-->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" >
+ <property name="algorithm" value="PBEWithMD5AndTripleDES" />
+ <property name="password" value="myPassword" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the PBEStringEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PBEPasswordEncoder">
+ <property name="pbeStringEncryptor">
+ <ref bean="jasyptPBEStringEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+
+
+PBEPasswordEncoder()
+
+
+ Deprecated. Creates a new instance of PBEPasswordEncoder
+
+
+
+
+
+Method Summary
+
+
+
+
+ String
+encodePassword(String rawPass,
+ Object salt)
+
+
+ Deprecated. Encodes a password.
+
+
+
+ boolean
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+ Deprecated. Checks a password's validity.
+
+
+
+ void
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
+
+ Deprecated. Sets a string digester to be used.
+
+
+
+ void
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
+
+ Deprecated. Sets a text encryptor to be used.
+
+
+
+
+Methods inherited from class Object
+
+
+
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+Constructor Detail
+
+PBEPasswordEncoder
+
+public PBEPasswordEncoder()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+setTextEncryptor
+
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
+
+
+
+
+
+textEncryptor - the text encryptor instance to be used.
+
+
+setPbeStringEncryptor
+
+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
+
+
+
+
+
+pbeStringEncryptor - the PBE string encryptor instance to be used.
+
+
+encodePassword
+
+public String encodePassword(String rawPass,
+ Object salt)
+
+
+
+
+encodePassword in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+rawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.
+
+
+isPasswordValid
+
+public boolean isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+
+
+
+isPasswordValid in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+encPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PasswordEncoder.html
new file mode 100644
index 00000000..459f2c7d
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/PasswordEncoder.html
@@ -0,0 +1,461 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+org.jasypt.spring.security
+
+
+Class PasswordEncoder
+Object
+
+
org.jasypt.spring.security.PasswordEncoder
+
+
+
+Deprecated. Renamed as org.jasypt.acegisecurity.PasswordEncoder.
+ Class will be removed from this package in 1.11.
+
+
+
+
+public final class PasswordEncoder
setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ ...
+ <!-- Your application may use the PasswordEncryptor in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" />
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the PasswordEncryptor instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PasswordEncoder">
+ <property name="passwordEncryptor">
+ <ref bean="jasyptPasswordEncryptor" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+ ...
+ <!-- Your application may use the StringDigester in several places, -->
+ <!-- like for example at new user sign-up. -->
+ <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" >
+ <property name="algorithm" value="SHA-1" />
+ <property name="iterations" value="100000" />
+ </bean>
+ ...
+ ...
+ <!-- This Spring Security-friendly PasswordEncoder implementation will -->
+ <!-- wrap the StringDigester instance so that it can be used from -->
+ <!-- the security framework. -->
+ <bean id="passwordEncoder" class="org.jasypt.spring.security.PasswordEncoder">
+ <property name="stringDigester">
+ <ref bean="jasyptStringDigester" />
+ </property>
+ </bean>
+ ...
+ ...
+ <!-- Your DaoAuthenticationProvider will then use it like with any -->
+ <!-- other implementation of the PasswordEncoder interface. -->
+ <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
+ <property name="userDetailsService" ref="userDetailsService"/>
+ <property name="passwordEncoder">
+ <ref bean="passwordEncoder" />
+ </property>
+ </bean>
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+
+
+PasswordEncoder()
+
+
+ Deprecated. Creates a new instance of PasswordEncoder
+
+
+
+
+
+Method Summary
+
+
+
+
+ String
+encodePassword(String rawPass,
+ Object salt)
+
+
+ Deprecated. Encodes a password.
+
+
+
+ boolean
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+ Deprecated. Checks a password's validity.
+
+
+
+ void
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
+
+ Deprecated. Sets a password encryptor to be used.
+
+
+
+ void
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
+
+ Deprecated. Sets a string digester to be used.
+
+
+
+
+Methods inherited from class Object
+
+
+
+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+
+
+
+
+
+Constructor Detail
+
+PasswordEncoder
+
+public PasswordEncoder()
+
+
+
+
+
+
+
+
+
+
+
+
+Method Detail
+
+setPasswordEncryptor
+
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
+
+
+
+
+
+passwordEncryptor - the password encryptor instance to be used.
+
+
+setStringDigester
+
+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
+
+
+
+
+
+stringDigester - the string digester instance to be used.
+
+
+encodePassword
+
+public String encodePassword(String rawPass,
+ Object salt)
+
+
+
+
+encodePassword in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+rawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.
+
+
+isPasswordValid
+
+public boolean isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
+
+
+
+
+isPasswordValid in interface org.acegisecurity.providers.encoding.PasswordEncoder
+
+encPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PBEPasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PBEPasswordEncoder.html
new file mode 100644
index 00000000..9368a8f3
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PBEPasswordEncoder.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Class
+
org.jasypt.spring.security.PBEPasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PasswordEncoder.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PasswordEncoder.html
new file mode 100644
index 00000000..68b6f786
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/class-use/PasswordEncoder.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Class
+
org.jasypt.spring.security.PasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-frame.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-frame.html
new file mode 100644
index 00000000..bfcdc7b9
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-frame.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-summary.html
new file mode 100644
index 00000000..f0f61eb6
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-summary.html
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+Classes
+
+
+
+PasswordEncoder
+
+PBEPasswordEncoder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Package org.jasypt.spring.security
+
+
+
+
+
+
+
+
+
+Class Summary
+
+
+PasswordEncoder
+Deprecated. Renamed as org.jasypt.acegisecurity.PasswordEncoder.
+
+
+PBEPasswordEncoder
+Deprecated. Renamed as org.jasypt.acegisecurity.PBEPasswordEncoder.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV PACKAGE
+ NEXT PACKAGE
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-tree.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-tree.html
new file mode 100644
index 00000000..88dd4139
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-tree.html
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Hierarchy For Package org.jasypt.spring.security
+
+
+
+
+
+Class Hierarchy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-use.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-use.html
new file mode 100644
index 00000000..47fb4b04
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/org/jasypt/spring/security/package-use.html
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Uses of Package
+
org.jasypt.spring.security
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-frame.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-frame.html
new file mode 100644
index 00000000..aaf77095
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-frame.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+All Classes
+
+
+org.jasypt.acegisecurity
+
+org.jasypt.spring.security
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+JASYPT: Java Simplified Encryption 1.9.2 API
+
+
+
+
+
+
+
+Packages
+
+
+org.jasypt.acegisecurity
+
+
+
+org.jasypt.spring.security
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-tree.html b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-tree.html
new file mode 100644
index 00000000..f0374858
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/overview-tree.html
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Hierarchy For All Packages
+
+
+
+
+Class Hierarchy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/package-list b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/package-list
new file mode 100644
index 00000000..1987ff2e
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/package-list
@@ -0,0 +1,2 @@
+org.jasypt.acegisecurity
+org.jasypt.spring.security
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/resources/inherit.gif b/utils/jasypt-1.9.2/apidocs/jasypt-acegisecurity/resources/inherit.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c814867a13deb0ca7ea2156c6ca1d5a03372af7e
GIT binary patch
literal 57
zcmZ?wbhEHb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Constant Field Values
+
+Contents
+
+
+
+
+
+
+
+
+
+org.jasypt.*
+
+
+
+
+
+org.jasypt.hibernate.connectionprovider.ParameterNaming
+
+
+
+
+
+
+public static final String
+ENCRYPTOR_REGISTERED_NAME
+"hibernate.connection.encryptor_registered_name"
+
+
+
+
+org.jasypt.hibernate.type.ParameterNaming
+
+
+
+
+public static final String
+ALGORITHM
+"algorithm"
+
+
+
+public static final String
+DECIMAL_SCALE
+"decimalScale"
+
+
+
+public static final String
+ENCRYPTOR_NAME
+"encryptorRegisteredName"
+
+
+
+public static final String
+KEY_OBTENTION_ITERATIONS
+"keyObtentionIterations"
+
+
+
+public static final String
+PASSWORD
+"password"
+
+
+
+public static final String
+PROVIDER_NAME
+"providerName"
+
+
+
+public static final String
+STORE_TIME_ZONE
+"storeTimeZone"
+
+
+
+
+
+public static final String
+STRING_OUTPUT_TYPE
+"stringOutputType"
+
+
+
+
+org.jasypt.hibernate3.connectionprovider.ParameterNaming
+
+
+
+
+
+
+public static final String
+ENCRYPTOR_REGISTERED_NAME
+"hibernate.connection.encryptor_registered_name"
+
+
+
+
+org.jasypt.hibernate3.type.ParameterNaming
+
+
+
+
+public static final String
+ALGORITHM
+"algorithm"
+
+
+
+public static final String
+DECIMAL_SCALE
+"decimalScale"
+
+
+
+public static final String
+ENCRYPTOR_NAME
+"encryptorRegisteredName"
+
+
+
+public static final String
+KEY_OBTENTION_ITERATIONS
+"keyObtentionIterations"
+
+
+
+public static final String
+PASSWORD
+"password"
+
+
+
+public static final String
+PROVIDER_NAME
+"providerName"
+
+
+
+public static final String
+STORE_TIME_ZONE
+"storeTimeZone"
+
+
+
+
+
+public static final String
+STRING_OUTPUT_TYPE
+"stringOutputType"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/deprecated-list.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/deprecated-list.html
new file mode 100644
index 00000000..3f6d60f0
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/deprecated-list.html
@@ -0,0 +1,307 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+Deprecated API
+
+Contents
+
+
+
+
+
+
+
+
+Deprecated Classes
+
+
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBigDecimalType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBigIntegerType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBinaryType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedBooleanAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedByteAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedCalendarAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedDateAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedDoubleAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedFloatAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedIntegerAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedLongAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.connectionprovider.EncryptedPasswordC3P0ConnectionProvider
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedShortAsStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.EncryptedStringType
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.encryptor.HibernatePBEBigDecimalEncryptor
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.encryptor.HibernatePBEBigIntegerEncryptor
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.encryptor.HibernatePBEByteEncryptor
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.encryptor.HibernatePBEEncryptorRegistry
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.type.ParameterNaming
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+org.jasypt.hibernate.connectionprovider.ParameterNaming
+
+
+ Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/help-doc.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/help-doc.html
new file mode 100644
index 00000000..5c72682f
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/help-doc.html
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+How This API Document Is Organized
+
+Overview
+
+
+
+
+Package
+
+
+
+
+
+
+Class/Interface
+
+
+
+
+
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Annotation Type
+
+
+
+
+
+
+
+Enum
+
+
+
+
+
+
+Use
+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+
+Tree (Class Hierarchy)
+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with
+java.lang.Object. The interfaces do not inherit from java.lang.Object.
+
+
+Deprecated API
+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+
+Index
+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+
+Prev/Next
+These links take you to the next or previous class, interface, package, or related page.
+Frames/No Frames
+These links show and hide the HTML frames. All pages are available with or without frames.
+
+Serialized Form
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+
+Constant Field Values
+The Constant Field Values page lists the static final fields and their values.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index-all.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index-all.html
new file mode 100644
index 00000000..1bf9a84d
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index-all.html
@@ -0,0 +1,1454 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+A C D E G H I K N O P R S
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+A
+
+
+
+
+C
+
+
+
+
+D
+
+
+
+
+E
+
+
+C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties fileDriverManagerConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties fileHibernatePBEEncryptorRegistry.
+HibernatePBEEncryptorRegistry.
+HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
+HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
+
+
+G
+
+
+
+
+H
+
+
+
+
+I
+
+
+
+
+K
+
+
+
+
+N
+
+
+
+
+O
+
+
+
+
+P
+
+
+
+
+R
+
+
+
+
+S
+
+
+
+A C D E G H I K N O P R S
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV
+ NEXT
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+Copyright © 2014 The JASYPT team. All Rights Reserved.
+
+
diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index.html
new file mode 100644
index 00000000..2ac6f911
--- /dev/null
+++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+Frame Alert
+
+
+Link toNon-frame version.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+org.jasypt.hibernate.connectionprovider
+
+
+Class EncryptedPasswordC3P0ConnectionProvider
+Object
+
+
org.hibernate.connection.C3P0ConnectionProvider
+
org.jasypt.hibernate.connectionprovider.EncryptedPasswordC3P0ConnectionProvider
+
+
+
+Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider
+ has been renamed as org.jasypt.hibernate3.connectionprovider.
+
+
+
+
+public final class EncryptedPasswordC3P0ConnectionProvider
C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+
+
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordC3P0ConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="c3p0.min_size">5</property> + <property name="c3p0.max_size">20</property> + <property name="c3p0.timeout">1800</property> + <property name="c3p0.max_statements">50</property> + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordC3P0ConnectionProvider()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ Deprecated. |
+
| Methods inherited from class org.hibernate.connection.C3P0ConnectionProvider | +
|---|
close, closeConnection, getConnection |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordC3P0ConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.C3P0ConnectionProvider
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.hibernate.connection.DriverManagerConnectionProvider +
org.jasypt.hibernate.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider +
+
public final class EncryptedPasswordDriverManagerConnectionProvider
+
+ Extension of DriverManagerConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+ The encryptable parameters are: +
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + <!-- Database connection settings --> + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="connection.pool_size">5</property> + + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordDriverManagerConnectionProvider()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ Deprecated. |
+
| Methods inherited from class org.hibernate.connection.DriverManagerConnectionProvider | +
|---|
close, closeConnection, finalize, getConnection |
+
| Methods inherited from class Object | +
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordDriverManagerConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.DriverManagerConnectionProvider
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.connectionprovider.ParameterNaming +
+
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt's + Hibernate connection provider. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ENCRYPTOR_REGISTERED_NAME
+
++ Deprecated. Property in hibernate.cfg.xml or + hibernate.properties which contains the registered name + (in HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_REGISTERED_NAME+
HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +EncryptedPasswordC3P0ConnectionProvider + +EncryptedPasswordDriverManagerConnectionProvider + +ParameterNaming |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptedPasswordC3P0ConnectionProvider | +Deprecated. Will be removed in 1.11. | +
| EncryptedPasswordDriverManagerConnectionProvider | +Deprecated. Will be removed in 1.11. | +
| ParameterNaming | +Deprecated. Will be removed in 1.11. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.encryptor.HibernatePBEBigDecimalEncryptor +
+
public final class HibernatePBEBigDecimalEncryptor
+
+ Placeholder class for PBEBigDecimalEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigDecimalEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigDecimalEncryptor be explicitly set
+ with setEncryptor(PBEBigDecimalEncryptor). If not, a
+ StandardPBEBigDecimalEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigDecimalEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigDecimalEncryptor"> + <property name="registeredName"> + <value>myHibernateBigDecimalEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigDecimalEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigDecimalEncryptor
+ objects this way to wrap PBEBigDecimalEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigDecimalEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigDecimalEncryptor()
+
++ Deprecated. Creates a new instance of HibernatePBEBigDecimalEncryptor It also + creates a StandardPBEBigDecimalEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ Deprecated. Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ Deprecated. Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getEncryptor()
+
++ Deprecated. Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Deprecated. Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Deprecated. Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Deprecated. Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Deprecated. Sets the PBEBigDecimalEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Deprecated. Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Deprecated. Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Deprecated. Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Deprecated. Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Deprecated. Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigDecimalEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+
message - the message to be encrypted.
++public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.encryptor.HibernatePBEBigIntegerEncryptor +
+
public final class HibernatePBEBigIntegerEncryptor
+
+ Placeholder class for PBEBigIntegerEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigIntegerEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigIntegerEncryptor be explicitly set
+ with setEncryptor(PBEBigIntegerEncryptor). If not, a
+ StandardPBEBigIntegerEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigIntegerEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigIntegerEncryptor"> + <property name="registeredName"> + <value>myHibernateBigIntegerEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigIntegerEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigIntegerEncryptor
+ objects this way to wrap PBEBigIntegerEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigIntegerEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigIntegerEncryptor()
+
++ Deprecated. Creates a new instance of HibernatePBEBigIntegerEncryptor It also + creates a StandardPBEBigIntegerEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ Deprecated. Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ Deprecated. Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getEncryptor()
+
++ Deprecated. Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Deprecated. Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Deprecated. Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Deprecated. Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Deprecated. Sets the PBEBigIntegerEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Deprecated. Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Deprecated. Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Deprecated. Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Deprecated. Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Deprecated. Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigIntegerEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigInteger encrypt(java.math.BigInteger message)+
+
message - the message to be encrypted.
++public java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.encryptor.HibernatePBEByteEncryptor +
+
public final class HibernatePBEByteEncryptor
+
+ Placeholder class for PBEByteEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEByteEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEByteEncryptor be explicitly set
+ with setEncryptor(PBEByteEncryptor). If not, a
+ StandardPBEByteEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="byteEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEByteEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEByteEncryptor"> + <property name="registeredName"> + <value>myHibernateByteEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="byteEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEByteEncryptor
+ objects this way to wrap PBEByteEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEByteEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEByteEncryptor()
+
++ Deprecated. Creates a new instance of HibernatePBEByteEncryptor It also + creates a StandardPBEByteEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ Deprecated. Decypts a message, delegating to wrapped encryptor |
+
+ byte[] |
+encrypt(byte[] message)
+
++ Deprecated. Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getEncryptor()
+
++ Deprecated. Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Deprecated. Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Deprecated. Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Deprecated. Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Deprecated. Sets the PBEByteEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Deprecated. Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Deprecated. Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Deprecated. Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Deprecated. Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Deprecated. Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEByteEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEByteEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public byte[] encrypt(byte[] message)+
+
message - the message to be encrypted.
++public byte[] decrypt(byte[] encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.encryptor.HibernatePBEEncryptorRegistry +
+
public final class HibernatePBEEncryptorRegistry
+
+ Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. +
++ This class is intended to be directly used in applications where + an IoC container (like Spring Framework) is not present. If it is, + it is better to use the HibernatePBE*Encryptor classes + directly, instead. +
++ This registry is a singleton which maintains a registry + of PBE*Encryptor objects which can be used from Hibernate, + by using its registeredName to reference them from mappings. +
++ The steps would be: +
getInstance()).+ This is, first register the encryptor (example with a String encryptor): +
++
+ StandardPBEStringEncryptor myEncryptor = new StandardPBEStringEncryptor();
+ ...
+ HibernatePBEEncryptorRegistry registry =
+ HibernatePBEEncryptorRegistry.getInstance();
+ registry.registerPBEStringEncryptor("myHibernateEncryptor", myEncryptor);
+
+
+ + And then, reference it from a Hibernate mapping file: +
++
+ <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateEncryptor</param> + </typedef> ++ +
+ +
+
| +Method Summary | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+getInstance()
+
++ Deprecated. Returns the singleton instance of the registry. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getPBEBigDecimalEncryptor(String registeredName)
+
++ Deprecated. Returns the PBEBigDecimalEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getPBEBigIntegerEncryptor(String registeredName)
+
++ Deprecated. Returns the PBEBigIntegerEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getPBEByteEncryptor(String registeredName)
+
++ Deprecated. Returns the PBEByteEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getPBEStringEncryptor(String registeredName)
+
++ Deprecated. Returns the PBEStringEncryptor registered with the specified + name (if exists). |
+
+ void |
+registerPBEBigDecimalEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Deprecated. Registers a PBEBigDecimalEncryptor object with the specified + name. |
+
+ void |
+registerPBEBigIntegerEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Deprecated. Registers a PBEBigIntegerEncryptor object with the specified + name. |
+
+ void |
+registerPBEByteEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Deprecated. Registers a PBEByteEncryptor object with the specified + name. |
+
+ void |
+registerPBEStringEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Deprecated. Registers a PBEStringEncryptor object with the specified + name. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static HibernatePBEEncryptorRegistry getInstance()+
+
+public void registerPBEStringEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEStringEncryptor getPBEStringEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigIntegerEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getPBEBigIntegerEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigDecimalEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getPBEBigDecimalEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEByteEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEByteEncryptor getPBEByteEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor +
+
public final class HibernatePBEStringEncryptor
+
+ Placeholder class for PBEStringEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEStringEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEStringEncryptor be explicitly set
+ with setEncryptor(PBEStringEncryptor). If not, a
+ StandardPBEStringEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator), setProviderName(String),
+ setProvider(Provider), setStringOutputType(String)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="stringEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor"> + <property name="registeredName"> + <value>myHibernateStringEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="stringEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEStringEncryptor
+ objects this way to wrap PBEStringEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEStringEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEStringEncryptor()
+
++ Deprecated. Creates a new instance of HibernatePBEStringEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Deprecated. Decypts a message, delegating to wrapped encryptor |
+
+ String |
+encrypt(String message)
+
++ Deprecated. Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getEncryptor()
+
++ Deprecated. Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Deprecated. Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Deprecated. Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Deprecated. Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Deprecated. Sets the PBEStringEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Deprecated. Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Deprecated. Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Deprecated. Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ Deprecated. Sets the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProviderName(String providerName)
+
++ Deprecated. Sets the name of the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Deprecated. Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Deprecated. Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ Deprecated. Sets the type of String output ("base64" (default), "hexadecimal") to + be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEStringEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEStringEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setProviderName(String providerName)+
+
providerName - the name of the JCE provider (already registered)+public void setProvider(java.security.Provider provider)+
+
provider - the JCE provider to be used+public void setStringOutputType(String stringOutputType)+
+
stringOutputType - the type of String output+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public String encrypt(String message)+
+
message - the message to be encrypted.
++public String decrypt(String encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use HibernatePBEEncryptorRegistry | +|
|---|---|
| org.jasypt.hibernate.encryptor | ++ |
| +Uses of HibernatePBEEncryptorRegistry in org.jasypt.hibernate.encryptor | +
|---|
+ +
| Methods in org.jasypt.hibernate.encryptor that return HibernatePBEEncryptorRegistry | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+HibernatePBEEncryptorRegistry.getInstance()
+
++ Deprecated. Returns the singleton instance of the registry. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +HibernatePBEBigDecimalEncryptor + +HibernatePBEBigIntegerEncryptor + +HibernatePBEByteEncryptor + +HibernatePBEEncryptorRegistry + +HibernatePBEStringEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| HibernatePBEBigDecimalEncryptor | +Deprecated. Will be removed in 1.11. | +
| HibernatePBEBigIntegerEncryptor | +Deprecated. Will be removed in 1.11. | +
| HibernatePBEByteEncryptor | +Deprecated. Will be removed in 1.11. | +
| HibernatePBEEncryptorRegistry | +Deprecated. Will be removed in 1.11. | +
| HibernatePBEStringEncryptor | +Deprecated. Will be removed in 1.11. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate.encryptor | +|
|---|---|
| org.jasypt.hibernate.encryptor | ++ |
| +Classes in org.jasypt.hibernate.encryptor used by org.jasypt.hibernate.encryptor | +|
|---|---|
| HibernatePBEEncryptorRegistry
+
+ + Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
+
public abstract class AbstractEncryptedAsStringType
+Base class for Hibernate UserTypes to store + values as encrypted strings. +
+ +
+
| +Field Summary | +|
|---|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor |
+encryptor
+
++ Deprecated. |
+
| +Constructor Summary | +|
|---|---|
AbstractEncryptedAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ Deprecated. |
+
+protected void |
+checkInitialization()
+
++ Deprecated. |
+
+protected abstract Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Deprecated. Converts given Object to its String form. |
+
+ Object |
+deepCopy(Object value)
+
++ Deprecated. |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ Deprecated. |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ Deprecated. |
+
+ int |
+hashCode(Object x)
+
++ Deprecated. |
+
+ boolean |
+isMutable()
+
++ Deprecated. |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ Deprecated. |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ Deprecated. |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ Deprecated. |
+
+abstract Class |
+returnedClass()
+
++ Deprecated. |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ Deprecated. |
+
+ int[] |
+sqlTypes()
+
++ Deprecated. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor encryptor+
| +Constructor Detail | +
|---|
+public AbstractEncryptedAsStringType()+
| +Method Detail | +
|---|
+protected abstract Object convertToObject(String string)+
+
string - the string value
++protected String convertToString(Object object)+
+
object - the object value
++public final int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public abstract Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public final boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public final int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public final void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType+protected final void checkInitialization()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType +
+
public final class EncryptedBigDecimalAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.EncryptedBigDecimalType +
+
public final class EncryptedBigDecimalType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigDecimal values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigDecimalEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigDecimalEncryptor (see
+ HibernatePBEBigDecimalEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+
+ About the decimalScale parameter ++ The decimalScale parameter is aimed at setting the scale with which + BigDecimal numbers will be set to and retrieved from the database. It is + an important parameter because many DBMSs return BigDecimal numbers with + a scale equal to the amount of decimal positions declared for the field + (e.g. if we store "18.23" (scale=2) in a DECIMAL(15,5) field, we can get a + "18.23000" (scale=5) back when we retrieve the number). This can affect + correct decryption of encrypted numbers, but specifying a + decimalScale parameter will solve this issue. +
++ So, if we set decimalScale to 3, and we store "18.23", this + Hibernate type will send "18.230" to the encryptor, which is the value that + we will get back from the database at retrieval time (a scale of "3" + will be set again on the value obtained from DB). If it is necessary, a + DOWN rounding operation is executed on the number. +
++ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ Deprecated. |
+
+ Object |
+deepCopy(Object value)
+
++ Deprecated. |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ Deprecated. |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ Deprecated. |
+
+ int |
+hashCode(Object x)
+
++ Deprecated. |
+
+ boolean |
+isMutable()
+
++ Deprecated. |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ Deprecated. |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ Deprecated. |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ Deprecated. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ Deprecated. |
+
+ int[] |
+sqlTypes()
+
++ Deprecated. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType +
+
public final class EncryptedBigIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.EncryptedBigIntegerType +
+
public final class EncryptedBigIntegerType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigInteger values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigIntegerEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigIntegerEncryptor (see
+ HibernatePBEBigIntegerEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ Deprecated. |
+
+ Object |
+deepCopy(Object value)
+
++ Deprecated. |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ Deprecated. |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ Deprecated. |
+
+ int |
+hashCode(Object x)
+
++ Deprecated. |
+
+ boolean |
+isMutable()
+
++ Deprecated. |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ Deprecated. |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ Deprecated. |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ Deprecated. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ Deprecated. |
+
+ int[] |
+sqlTypes()
+
++ Deprecated. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.EncryptedBinaryType +
+
public final class EncryptedBinaryType
+
+ A Hibernate UserType implementation which allows transparent + encryption of byte[] values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEByteEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateByteEncryptor (see
+ HibernatePBEByteEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBinaryType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ Deprecated. |
+
+ Object |
+deepCopy(Object value)
+
++ Deprecated. |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ Deprecated. |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ Deprecated. |
+
+ int |
+hashCode(Object x)
+
++ Deprecated. |
+
+ boolean |
+isMutable()
+
++ Deprecated. |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ Deprecated. |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ Deprecated. |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ Deprecated. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ Deprecated. |
+
+ int[] |
+sqlTypes()
+
++ Deprecated. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBinaryType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedBooleanAsStringType +
+
public final class EncryptedBooleanAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBooleanAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBooleanAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedByteAsStringType +
+
public final class EncryptedByteAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedByteAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedByteAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedCalendarAsStringType +
+
public final class EncryptedCalendarAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ The boolean storeTimeZone parameter allows the Calendar to be + re-created with the same TimeZone that it was created. This is an + optional parameter, and its default value is FALSE. +
++ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedCalendarAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Deprecated. Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedCalendarAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+AbstractEncryptedAsStringType.convertToString(java.lang.Object)+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedTypesetParameterValues in class AbstractEncryptedAsStringType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedDateAsStringType +
+
public final class EncryptedDateAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDateAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Deprecated. Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDateAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+AbstractEncryptedAsStringType.convertToString(java.lang.Object)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedDoubleAsStringType +
+
public final class EncryptedDoubleAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDoubleAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDoubleAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedFloatAsStringType +
+
public final class EncryptedFloatAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedFloatAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedFloatAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedIntegerAsStringType +
+
public final class EncryptedIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedIntegerAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedLongAsStringType +
+
public final class EncryptedLongAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedLongAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedLongAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedShortAsStringType +
+
public final class EncryptedShortAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedShortAsStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedShortAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate.type.EncryptedStringType +
+
public final class EncryptedStringType
+
+ A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedStringType()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String stringValue)
+
++ Deprecated. Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ Deprecated. |
+
| Methods inherited from class org.jasypt.hibernate.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String stringValue)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestringValue - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate.type.ParameterNaming +
+
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt type's + typedef declaration in a Hibernate mapping. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ALGORITHM
+
++ Deprecated. + The encryption algorithm. |
+
+static String |
+DECIMAL_SCALE
+
++ Deprecated. + The scale (numbers after the decimal point) to be used when storing + decimal numbers. |
+
+static String |
+ENCRYPTOR_NAME
+
++ Deprecated. + The registered name of an encryptor previously registered at the + HibernatePBEEncryptorRegistry. |
+
+static String |
+KEY_OBTENTION_ITERATIONS
+
++ Deprecated. + The number of hashing iterations to be applied for obtaining the + encryption key. |
+
+static String |
+PASSWORD
+
++ Deprecated. + The encryption password. |
+
+static String |
+PROVIDER_NAME
+
++ Deprecated. + The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. |
+
+static String |
+STORE_TIME_ZONE
+
++ Deprecated. + Whether the calendar time zone should be stored with the date or not. |
+
+static String |
+STRING_OUTPUT_TYPE
+
++ Deprecated. + The type of String output ("base64" (default), "hexadecimal") to be + generated. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_NAME+
+ The registered name of an encryptor previously registered at the
+ HibernatePBEEncryptorRegistry.
+
+ Value = encryptorRegisteredName +
++
+public static final String ALGORITHM+
+ The encryption algorithm. +
++ Value = algorithm +
++
+public static final String PROVIDER_NAME+
+ The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. +
++ Value = providerName +
++
+public static final String PASSWORD+
+ The encryption password. +
++ Value = password +
++
+public static final String KEY_OBTENTION_ITERATIONS+
+ The number of hashing iterations to be applied for obtaining the + encryption key. +
++ Value = keyObtentionIterations +
++
+public static final String STRING_OUTPUT_TYPE+
+ The type of String output ("base64" (default), "hexadecimal") to be + generated. +
++ Value = stringOutputType +
++
+public static final String DECIMAL_SCALE+
+ The scale (numbers after the decimal point) to be used when storing + decimal numbers. +
++ Value = decimalScale +
++
+public static final String STORE_TIME_ZONE+
+ Whether the calendar time zone should be stored with the date or not. +
++ Value = storeTimeZone +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractEncryptedAsStringType | +|
|---|---|
| org.jasypt.hibernate.type | ++ |
| +Uses of AbstractEncryptedAsStringType in org.jasypt.hibernate.type | +
|---|
+ +
| Subclasses of AbstractEncryptedAsStringType in org.jasypt.hibernate.type | +|
|---|---|
+ class |
+EncryptedBigDecimalAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedBigIntegerAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedBooleanAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedByteAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedCalendarAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedDateAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedDoubleAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedFloatAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedIntegerAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedLongAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedShortAsStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+ class |
+EncryptedStringType
+
++ Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AbstractEncryptedAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBigDecimalAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBigDecimalType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBigIntegerAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBigIntegerType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBinaryType | +Deprecated. Will be removed in 1.11. | +
| EncryptedBooleanAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedByteAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedCalendarAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedDateAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedDoubleAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedFloatAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedIntegerAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedLongAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedShortAsStringType | +Deprecated. Will be removed in 1.11. | +
| EncryptedStringType | +Deprecated. Will be removed in 1.11. | +
| ParameterNaming | +Deprecated. Will be removed in 1.11. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate.type | +|
|---|---|
| org.jasypt.hibernate.type | ++ |
| +Classes in org.jasypt.hibernate.type used by org.jasypt.hibernate.type | +|
|---|---|
| AbstractEncryptedAsStringType
+
+ + Deprecated. Will be removed in 1.11. Package org.jasypt.hibernate.connectionprovider + has been renamed as org.jasypt.hibernate3.connectionprovider. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.hibernate.connection.C3P0ConnectionProvider +
org.jasypt.hibernate3.connectionprovider.EncryptedPasswordC3P0ConnectionProvider +
public final class EncryptedPasswordC3P0ConnectionProvider
+
+ Extension of C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+ The encryptable parameters are: +
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordC3P0ConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="c3p0.min_size">5</property> + <property name="c3p0.max_size">20</property> + <property name="c3p0.timeout">1800</property> + <property name="c3p0.max_statements">50</property> + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordC3P0ConnectionProvider()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ |
+
| Methods inherited from class org.hibernate.connection.C3P0ConnectionProvider | +
|---|
close, closeConnection, getConnection |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordC3P0ConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.C3P0ConnectionProvider
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.hibernate.connection.DriverManagerConnectionProvider +
org.jasypt.hibernate3.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider +
public final class EncryptedPasswordDriverManagerConnectionProvider
+
+ Extension of DriverManagerConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+ The encryptable parameters are: +
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + <!-- Database connection settings --> + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="connection.pool_size">5</property> + + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordDriverManagerConnectionProvider()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ |
+
| Methods inherited from class org.hibernate.connection.DriverManagerConnectionProvider | +
|---|
close, closeConnection, finalize, getConnection |
+
| Methods inherited from class Object | +
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordDriverManagerConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.DriverManagerConnectionProvider
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.connectionprovider.ParameterNaming +
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt's + Hibernate connection provider. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ENCRYPTOR_REGISTERED_NAME
+
++ Property in hibernate.cfg.xml or + hibernate.properties which contains the registered name + (in HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_REGISTERED_NAME+
HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +EncryptedPasswordC3P0ConnectionProvider + +EncryptedPasswordDriverManagerConnectionProvider + +ParameterNaming |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptedPasswordC3P0ConnectionProvider | +
+ Extension of C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file |
+
| EncryptedPasswordDriverManagerConnectionProvider | +
+ Extension of DriverManagerConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file |
+
| ParameterNaming | ++ Constant names of the parameters that can be used by a jasypt's + Hibernate connection provider. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.encryptor.HibernatePBEBigDecimalEncryptor +
public final class HibernatePBEBigDecimalEncryptor
+
+ Placeholder class for PBEBigDecimalEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigDecimalEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigDecimalEncryptor be explicitly set
+ with setEncryptor(PBEBigDecimalEncryptor). If not, a
+ StandardPBEBigDecimalEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigDecimalEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigDecimalEncryptor"> + <property name="registeredName"> + <value>myHibernateBigDecimalEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigDecimalEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigDecimalEncryptor
+ objects this way to wrap PBEBigDecimalEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigDecimalEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigDecimalEncryptor()
+
++ Creates a new instance of HibernatePBEBigDecimalEncryptor It also + creates a StandardPBEBigDecimalEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Sets the PBEBigDecimalEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigDecimalEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+
message - the message to be encrypted.
++public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.encryptor.HibernatePBEBigIntegerEncryptor +
public final class HibernatePBEBigIntegerEncryptor
+
+ Placeholder class for PBEBigIntegerEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigIntegerEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigIntegerEncryptor be explicitly set
+ with setEncryptor(PBEBigIntegerEncryptor). If not, a
+ StandardPBEBigIntegerEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigIntegerEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigIntegerEncryptor"> + <property name="registeredName"> + <value>myHibernateBigIntegerEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigIntegerEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigIntegerEncryptor
+ objects this way to wrap PBEBigIntegerEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigIntegerEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigIntegerEncryptor()
+
++ Creates a new instance of HibernatePBEBigIntegerEncryptor It also + creates a StandardPBEBigIntegerEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Sets the PBEBigIntegerEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigIntegerEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigInteger encrypt(java.math.BigInteger message)+
+
message - the message to be encrypted.
++public java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.encryptor.HibernatePBEByteEncryptor +
public final class HibernatePBEByteEncryptor
+
+ Placeholder class for PBEByteEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEByteEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEByteEncryptor be explicitly set
+ with setEncryptor(PBEByteEncryptor). If not, a
+ StandardPBEByteEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="byteEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEByteEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEByteEncryptor"> + <property name="registeredName"> + <value>myHibernateByteEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="byteEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEByteEncryptor
+ objects this way to wrap PBEByteEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEByteEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEByteEncryptor()
+
++ Creates a new instance of HibernatePBEByteEncryptor It also + creates a StandardPBEByteEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ byte[] |
+encrypt(byte[] message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Sets the PBEByteEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEByteEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEByteEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public byte[] encrypt(byte[] message)+
+
message - the message to be encrypted.
++public byte[] decrypt(byte[] encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.encryptor.HibernatePBEEncryptorRegistry +
public final class HibernatePBEEncryptorRegistry
+
+ Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. +
++ This class is intended to be directly used in applications where + an IoC container (like Spring Framework) is not present. If it is, + it is better to use the HibernatePBE*Encryptor classes + directly, instead. +
++ This registry is a singleton which maintains a registry + of PBE*Encryptor objects which can be used from Hibernate, + by using its registeredName to reference them from mappings. +
++ The steps would be: +
getInstance()).+ This is, first register the encryptor (example with a String encryptor): +
++
+ StandardPBEStringEncryptor myEncryptor = new StandardPBEStringEncryptor();
+ ...
+ HibernatePBEEncryptorRegistry registry =
+ HibernatePBEEncryptorRegistry.getInstance();
+ registry.registerPBEStringEncryptor("myHibernateEncryptor", myEncryptor);
+
+
+ + And then, reference it from a Hibernate mapping file: +
++
+ <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateEncryptor</param> + </typedef> ++ +
+ +
+
| +Method Summary | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+getInstance()
+
++ Returns the singleton instance of the registry. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getPBEBigDecimalEncryptor(String registeredName)
+
++ Returns the PBEBigDecimalEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getPBEBigIntegerEncryptor(String registeredName)
+
++ Returns the PBEBigIntegerEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getPBEByteEncryptor(String registeredName)
+
++ Returns the PBEByteEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getPBEStringEncryptor(String registeredName)
+
++ Returns the PBEStringEncryptor registered with the specified + name (if exists). |
+
+ void |
+registerPBEBigDecimalEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Registers a PBEBigDecimalEncryptor object with the specified + name. |
+
+ void |
+registerPBEBigIntegerEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Registers a PBEBigIntegerEncryptor object with the specified + name. |
+
+ void |
+registerPBEByteEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Registers a PBEByteEncryptor object with the specified + name. |
+
+ void |
+registerPBEStringEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Registers a PBEStringEncryptor object with the specified + name. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static HibernatePBEEncryptorRegistry getInstance()+
+
+public void registerPBEStringEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEStringEncryptor getPBEStringEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigIntegerEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getPBEBigIntegerEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigDecimalEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getPBEBigDecimalEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEByteEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEByteEncryptor getPBEByteEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.encryptor.HibernatePBEStringEncryptor +
public final class HibernatePBEStringEncryptor
+
+ Placeholder class for PBEStringEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEStringEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEStringEncryptor be explicitly set
+ with setEncryptor(PBEStringEncryptor). If not, a
+ StandardPBEStringEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator), setProviderName(String),
+ setProvider(Provider), setStringOutputType(String)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="stringEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor"> + <property name="registeredName"> + <value>myHibernateStringEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="stringEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEStringEncryptor
+ objects this way to wrap PBEStringEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEStringEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEStringEncryptor()
+
++ Creates a new instance of HibernatePBEStringEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ String |
+encrypt(String message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Sets the PBEStringEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ Sets the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProviderName(String providerName)
+
++ Sets the name of the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ Sets the type of String output ("base64" (default), "hexadecimal") to + be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEStringEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEStringEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setProviderName(String providerName)+
+
providerName - the name of the JCE provider (already registered)+public void setProvider(java.security.Provider provider)+
+
provider - the JCE provider to be used+public void setStringOutputType(String stringOutputType)+
+
stringOutputType - the type of String output+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public String encrypt(String message)+
+
message - the message to be encrypted.
++public String decrypt(String encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use HibernatePBEEncryptorRegistry | +|
|---|---|
| org.jasypt.hibernate3.encryptor | ++ |
| +Uses of HibernatePBEEncryptorRegistry in org.jasypt.hibernate3.encryptor | +
|---|
+ +
| Methods in org.jasypt.hibernate3.encryptor that return HibernatePBEEncryptorRegistry | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+HibernatePBEEncryptorRegistry.getInstance()
+
++ Returns the singleton instance of the registry. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +HibernatePBEBigDecimalEncryptor + +HibernatePBEBigIntegerEncryptor + +HibernatePBEByteEncryptor + +HibernatePBEEncryptorRegistry + +HibernatePBEStringEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| HibernatePBEBigDecimalEncryptor | ++ Placeholder class for PBEBigDecimalEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEBigIntegerEncryptor | ++ Placeholder class for PBEBigIntegerEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEByteEncryptor | ++ Placeholder class for PBEByteEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEEncryptorRegistry | ++ Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. | +
| HibernatePBEStringEncryptor | ++ Placeholder class for PBEStringEncryptor objects which are + eligible for use from Hibernate. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate3.encryptor | +|
|---|---|
| org.jasypt.hibernate3.encryptor | ++ |
| +Classes in org.jasypt.hibernate3.encryptor used by org.jasypt.hibernate3.encryptor | +|
|---|---|
| HibernatePBEEncryptorRegistry
+
+ + + Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
public abstract class AbstractEncryptedAsStringType
+Base class for Hibernate UserTypes to store + values as encrypted strings. +
+ +
+
| +Field Summary | +|
|---|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor |
+encryptor
+
++ |
+
| +Constructor Summary | +|
|---|---|
AbstractEncryptedAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+protected void |
+checkInitialization()
+
++ |
+
+protected abstract Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+abstract Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor encryptor+
| +Constructor Detail | +
|---|
+public AbstractEncryptedAsStringType()+
| +Method Detail | +
|---|
+protected abstract Object convertToObject(String string)+
+
string - the string value
++protected String convertToString(Object object)+
+
object - the object value
++public final int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public abstract Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public final boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public final int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public final void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType+protected final void checkInitialization()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedBigDecimalAsStringType +
public final class EncryptedBigDecimalAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.EncryptedBigDecimalType +
public final class EncryptedBigDecimalType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigDecimal values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigDecimalEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigDecimalEncryptor (see
+ HibernatePBEBigDecimalEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+
+ About the decimalScale parameter ++ The decimalScale parameter is aimed at setting the scale with which + BigDecimal numbers will be set to and retrieved from the database. It is + an important parameter because many DBMSs return BigDecimal numbers with + a scale equal to the amount of decimal positions declared for the field + (e.g. if we store "18.23" (scale=2) in a DECIMAL(15,5) field, we can get a + "18.23000" (scale=5) back when we retrieve the number). This can affect + correct decryption of encrypted numbers, but specifying a + decimalScale parameter will solve this issue. +
++ So, if we set decimalScale to 3, and we store "18.23", this + Hibernate type will send "18.230" to the encryptor, which is the value that + we will get back from the database at retrieval time (a scale of "3" + will be set again on the value obtained from DB). If it is necessary, a + DOWN rounding operation is executed on the number. +
++ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedBigIntegerAsStringType +
public final class EncryptedBigIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.EncryptedBigIntegerType +
public final class EncryptedBigIntegerType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigInteger values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigIntegerEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigIntegerEncryptor (see
+ HibernatePBEBigIntegerEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.EncryptedBinaryType +
public final class EncryptedBinaryType
+
+ A Hibernate UserType implementation which allows transparent + encryption of byte[] values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEByteEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateByteEncryptor (see
+ HibernatePBEByteEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBinaryType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBinaryType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedBooleanAsStringType +
public final class EncryptedBooleanAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBooleanAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBooleanAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedByteAsStringType +
public final class EncryptedByteAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedByteAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedByteAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedCalendarAsStringType +
public final class EncryptedCalendarAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ The boolean storeTimeZone parameter allows the Calendar to be + re-created with the same TimeZone that it was created. This is an + optional parameter, and its default value is FALSE. +
++ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedCalendarAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedCalendarAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+AbstractEncryptedAsStringType.convertToString(java.lang.Object)+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedTypesetParameterValues in class AbstractEncryptedAsStringType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedDateAsStringType +
public final class EncryptedDateAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDateAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDateAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+AbstractEncryptedAsStringType.convertToString(java.lang.Object)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedDoubleAsStringType +
public final class EncryptedDoubleAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDoubleAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDoubleAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedFloatAsStringType +
public final class EncryptedFloatAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedFloatAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedFloatAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedIntegerAsStringType +
public final class EncryptedIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedIntegerAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedLongAsStringType +
public final class EncryptedLongAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedLongAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedLongAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedShortAsStringType +
public final class EncryptedShortAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedShortAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedShortAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate3.type.EncryptedStringType +
public final class EncryptedStringType
+
+ A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String stringValue)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate3.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String stringValue)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestringValue - the string value
+AbstractEncryptedAsStringType.convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate3.type.ParameterNaming +
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt type's + typedef declaration in a Hibernate mapping. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ALGORITHM
+
++ + The encryption algorithm. |
+
+static String |
+DECIMAL_SCALE
+
++ + The scale (numbers after the decimal point) to be used when storing + decimal numbers. |
+
+static String |
+ENCRYPTOR_NAME
+
++ + The registered name of an encryptor previously registered at the + HibernatePBEEncryptorRegistry. |
+
+static String |
+KEY_OBTENTION_ITERATIONS
+
++ + The number of hashing iterations to be applied for obtaining the + encryption key. |
+
+static String |
+PASSWORD
+
++ + The encryption password. |
+
+static String |
+PROVIDER_NAME
+
++ + The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. |
+
+static String |
+STORE_TIME_ZONE
+
++ + Whether the calendar time zone should be stored with the date or not. |
+
+static String |
+STRING_OUTPUT_TYPE
+
++ + The type of String output ("base64" (default), "hexadecimal") to be + generated. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_NAME+
+ The registered name of an encryptor previously registered at the
+ HibernatePBEEncryptorRegistry.
+
+ Value = encryptorRegisteredName +
++
+public static final String ALGORITHM+
+ The encryption algorithm. +
++ Value = algorithm +
++
+public static final String PROVIDER_NAME+
+ The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. +
++ Value = providerName +
++
+public static final String PASSWORD+
+ The encryption password. +
++ Value = password +
++
+public static final String KEY_OBTENTION_ITERATIONS+
+ The number of hashing iterations to be applied for obtaining the + encryption key. +
++ Value = keyObtentionIterations +
++
+public static final String STRING_OUTPUT_TYPE+
+ The type of String output ("base64" (default), "hexadecimal") to be + generated. +
++ Value = stringOutputType +
++
+public static final String DECIMAL_SCALE+
+ The scale (numbers after the decimal point) to be used when storing + decimal numbers. +
++ Value = decimalScale +
++
+public static final String STORE_TIME_ZONE+
+ Whether the calendar time zone should be stored with the date or not. +
++ Value = storeTimeZone +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractEncryptedAsStringType | +|
|---|---|
| org.jasypt.hibernate3.type | ++ |
| +Uses of AbstractEncryptedAsStringType in org.jasypt.hibernate3.type | +
|---|
+ +
| Subclasses of AbstractEncryptedAsStringType in org.jasypt.hibernate3.type | +|
|---|---|
+ class |
+EncryptedBigDecimalAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedBigIntegerAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedBooleanAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedByteAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedCalendarAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedDateAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedDoubleAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedFloatAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedIntegerAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedLongAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedShortAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedStringType
+
++ + A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AbstractEncryptedAsStringType | +Base class for Hibernate UserTypes to store + values as encrypted strings. | +
| EncryptedBigDecimalAsStringType | ++ A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedBigDecimalType | ++ A Hibernate UserType implementation which allows transparent + encryption of BigDecimal values during persistence of entities. | +
| EncryptedBigIntegerAsStringType | ++ A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedBigIntegerType | ++ A Hibernate UserType implementation which allows transparent + encryption of BigInteger values during persistence of entities. | +
| EncryptedBinaryType | ++ A Hibernate UserType implementation which allows transparent + encryption of byte[] values during persistence of entities. | +
| EncryptedBooleanAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedByteAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedCalendarAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedDateAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedDoubleAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedFloatAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedIntegerAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedLongAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedShortAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedStringType | ++ A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. | +
| ParameterNaming | ++ Constant names of the parameters that can be used by a jasypt type's + typedef declaration in a Hibernate mapping. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate3.type | +|
|---|---|
| org.jasypt.hibernate3.type | ++ |
| +Classes in org.jasypt.hibernate3.type used by org.jasypt.hibernate3.type | +|
|---|---|
| AbstractEncryptedAsStringType
+
+ + Base class for Hibernate UserTypes to store + values as encrypted strings. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/overview-summary.html new file mode 100644 index 00000000..360f4b4a --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate3/overview-summary.html @@ -0,0 +1,177 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.hibernate.connectionprovider | ++ |
| org.jasypt.hibernate.encryptor | ++ |
| org.jasypt.hibernate.type | ++ |
| org.jasypt.hibernate3.connectionprovider | ++ |
| org.jasypt.hibernate3.encryptor | ++ |
| org.jasypt.hibernate3.type | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +org.jasypt.* | +
|---|
+ +
| org.jasypt.hibernate4.connectionprovider.ParameterNaming | +||
|---|---|---|
+public static final String |
+ENCRYPTOR_REGISTERED_NAME |
+"hibernate.connection.encryptor_registered_name" |
+
+ +
+ +
| org.jasypt.hibernate4.type.ParameterNaming | +||
|---|---|---|
+public static final String |
+ALGORITHM |
+"algorithm" |
+
+public static final String |
+DECIMAL_SCALE |
+"decimalScale" |
+
+public static final String |
+ENCRYPTOR_NAME |
+"encryptorRegisteredName" |
+
+public static final String |
+KEY_OBTENTION_ITERATIONS |
+"keyObtentionIterations" |
+
+public static final String |
+PASSWORD |
+"password" |
+
+public static final String |
+PROVIDER_NAME |
+"providerName" |
+
+public static final String |
+STORE_TIME_ZONE |
+"storeTimeZone" |
+
+public static final String |
+STRING_OUTPUT_TYPE |
+"stringOutputType" |
+
+ +
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties fileDriverManagerConnectionProviderImpl that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties fileHibernatePBEEncryptorRegistry.
+HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider +
org.jasypt.hibernate4.connectionprovider.EncryptedPasswordC3P0ConnectionProvider +
public final class EncryptedPasswordC3P0ConnectionProvider
+
+ Extension of C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+ The encryptable parameters are: +
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordC3P0ConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="c3p0.min_size">5</property> + <property name="c3p0.max_size">20</property> + <property name="c3p0.timeout">1800</property> + <property name="c3p0.max_statements">50</property> + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordC3P0ConnectionProvider()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ |
+
| Methods inherited from class org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider | +
|---|
close, closeConnection, configure, getConnection, isUnwrappableAs, stop, supportsAggressiveRelease, unwrap |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordC3P0ConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl +
org.jasypt.hibernate4.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider +
public final class EncryptedPasswordDriverManagerConnectionProvider
+
+ Extension of DriverManagerConnectionProviderImpl that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file
+
+ The encryptable parameters are: +
+ The name of the password encryptor (decryptor, in fact) will be set in
+ property hibernate.connection.encryptor_registered_name.
+ Its value must be the name of a PBEStringEncryptor object
+ previously registered within HibernatePBEEncryptorRegistry.
+
+ An example hibernate.cfg.xml file: +
++
+ <hibernate-configuration> + + <session-factory> + + <!-- Database connection settings --> + <property name="connection.provider_class">org.jasypt.hibernate.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider</property> + <property name="connection.encryptor_registered_name">stringEncryptor</property> + <property name="connection.driver_class">org.postgresql.Driver</property> + <property name="connection.url">jdbc:postgresql://localhost/mydatabase</property> + <property name="connection.username">myuser</property> + <property name="connection.password">ENC(T6DAe34NasW==)</property> + <property name="connection.pool_size">5</property> + + ... + + </session-factory> + + ... + + </hibernate-configuration> ++ +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptedPasswordDriverManagerConnectionProvider()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+configure(java.util.Properties props)
+
++ |
+
| Methods inherited from class org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl | +
|---|
closeConnection, configure, finalize, getConnection, isUnwrappableAs, stop, supportsAggressiveRelease, unwrap |
+
| Methods inherited from class Object | +
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedPasswordDriverManagerConnectionProvider()+
| +Method Detail | +
|---|
+public void configure(java.util.Properties props)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.connectionprovider.ParameterNaming +
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt's + Hibernate connection provider. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ENCRYPTOR_REGISTERED_NAME
+
++ Property in hibernate.cfg.xml or + hibernate.properties which contains the registered name + (in HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_REGISTERED_NAME+
HibernatePBEEncryptorRegistry) of the encryptor which
+ will be used to decrypt the datasource parameters.
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +EncryptedPasswordC3P0ConnectionProvider + +EncryptedPasswordDriverManagerConnectionProvider + +ParameterNaming |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptedPasswordC3P0ConnectionProvider | +
+ Extension of C3P0ConnectionProvider that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file |
+
| EncryptedPasswordDriverManagerConnectionProvider | +
+ Extension of DriverManagerConnectionProviderImpl that allows the user
+ to write the datasource configuration parameters in an encrypted manner in the
+ hibernate.cfg.xml or hibernate.properties file |
+
| ParameterNaming | ++ Constant names of the parameters that can be used by a jasypt's + Hibernate connection provider. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.encryptor.HibernatePBEBigDecimalEncryptor +
public final class HibernatePBEBigDecimalEncryptor
+
+ Placeholder class for PBEBigDecimalEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigDecimalEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigDecimalEncryptor be explicitly set
+ with setEncryptor(PBEBigDecimalEncryptor). If not, a
+ StandardPBEBigDecimalEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigDecimalEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigDecimalEncryptor"> + <property name="registeredName"> + <value>myHibernateBigDecimalEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigDecimalEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigDecimalEncryptor
+ objects this way to wrap PBEBigDecimalEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigDecimalEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigDecimalEncryptor()
+
++ Creates a new instance of HibernatePBEBigDecimalEncryptor It also + creates a StandardPBEBigDecimalEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Sets the PBEBigDecimalEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigDecimalEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+
message - the message to be encrypted.
++public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.encryptor.HibernatePBEBigIntegerEncryptor +
public final class HibernatePBEBigIntegerEncryptor
+
+ Placeholder class for PBEBigIntegerEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEBigIntegerEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEBigIntegerEncryptor be explicitly set
+ with setEncryptor(PBEBigIntegerEncryptor). If not, a
+ StandardPBEBigIntegerEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="bigIntegerEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEBigIntegerEncryptor"> + <property name="registeredName"> + <value>myHibernateBigIntegerEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="bigIntegerEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEBigIntegerEncryptor
+ objects this way to wrap PBEBigIntegerEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEBigIntegerEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEBigIntegerEncryptor()
+
++ Creates a new instance of HibernatePBEBigIntegerEncryptor It also + creates a StandardPBEBigIntegerEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Sets the PBEBigIntegerEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEBigIntegerEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public java.math.BigInteger encrypt(java.math.BigInteger message)+
+
message - the message to be encrypted.
++public java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.encryptor.HibernatePBEByteEncryptor +
public final class HibernatePBEByteEncryptor
+
+ Placeholder class for PBEByteEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEByteEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEByteEncryptor be explicitly set
+ with setEncryptor(PBEByteEncryptor). If not, a
+ StandardPBEByteEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="byteEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEByteEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEByteEncryptor"> + <property name="registeredName"> + <value>myHibernateByteEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="byteEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEByteEncryptor
+ objects this way to wrap PBEByteEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEByteEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEByteEncryptor()
+
++ Creates a new instance of HibernatePBEByteEncryptor It also + creates a StandardPBEByteEncryptor for internal use, which + can be overriden by calling setEncryptor(...). |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ byte[] |
+encrypt(byte[] message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Sets the PBEByteEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEByteEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEByteEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public byte[] encrypt(byte[] message)+
+
message - the message to be encrypted.
++public byte[] decrypt(byte[] encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.encryptor.HibernatePBEEncryptorRegistry +
public final class HibernatePBEEncryptorRegistry
+
+ Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. +
++ This class is intended to be directly used in applications where + an IoC container (like Spring Framework) is not present. If it is, + it is better to use the HibernatePBE*Encryptor classes + directly, instead. +
++ This registry is a singleton which maintains a registry + of PBE*Encryptor objects which can be used from Hibernate, + by using its registeredName to reference them from mappings. +
++ The steps would be: +
getInstance()).+ This is, first register the encryptor (example with a String encryptor): +
++
+ StandardPBEStringEncryptor myEncryptor = new StandardPBEStringEncryptor();
+ ...
+ HibernatePBEEncryptorRegistry registry =
+ HibernatePBEEncryptorRegistry.getInstance();
+ registry.registerPBEStringEncryptor("myHibernateEncryptor", myEncryptor);
+
+
+ + And then, reference it from a Hibernate mapping file: +
++
+ <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateEncryptor</param> + </typedef> ++ +
+ +
+
| +Method Summary | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+getInstance()
+
++ Returns the singleton instance of the registry. |
+
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor |
+getPBEBigDecimalEncryptor(String registeredName)
+
++ Returns the PBEBigDecimalEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor |
+getPBEBigIntegerEncryptor(String registeredName)
+
++ Returns the PBEBigIntegerEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEByteEncryptor |
+getPBEByteEncryptor(String registeredName)
+
++ Returns the PBEByteEncryptor registered with the specified + name (if exists). |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getPBEStringEncryptor(String registeredName)
+
++ Returns the PBEStringEncryptor registered with the specified + name (if exists). |
+
+ void |
+registerPBEBigDecimalEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)
+
++ Registers a PBEBigDecimalEncryptor object with the specified + name. |
+
+ void |
+registerPBEBigIntegerEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)
+
++ Registers a PBEBigIntegerEncryptor object with the specified + name. |
+
+ void |
+registerPBEByteEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Registers a PBEByteEncryptor object with the specified + name. |
+
+ void |
+registerPBEStringEncryptor(String registeredName,
+ org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Registers a PBEStringEncryptor object with the specified + name. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static HibernatePBEEncryptorRegistry getInstance()+
+
+public void registerPBEStringEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEStringEncryptor getPBEStringEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigIntegerEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigIntegerEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigIntegerEncryptor getPBEBigIntegerEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEBigDecimalEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEBigDecimalEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEBigDecimalEncryptor getPBEBigDecimalEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
++public void registerPBEByteEncryptor(String registeredName, + org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+
registeredName - the registered name.encryptor - the encryptor to be registered.+public org.jasypt.encryption.pbe.PBEByteEncryptor getPBEByteEncryptor(String registeredName)+
+
registeredName - the name with which the desired encryptor was
+ registered.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.encryptor.HibernatePBEStringEncryptor +
public final class HibernatePBEStringEncryptor
+
+ Placeholder class for PBEStringEncryptor objects which are + eligible for use from Hibernate. +
+
+ This class acts as a wrapper on a PBEStringEncryptor, allowing
+ to be set a registered name (see setRegisteredName(String))
+ and performing the needed registry operations against the
+ HibernatePBEEncryptorRegistry.
+
+ It is not mandatory that a PBEStringEncryptor be explicitly set
+ with setEncryptor(PBEStringEncryptor). If not, a
+ StandardPBEStringEncryptor object will be created internally
+ and it will be configurable with the
+ setPassword(String)/setPasswordCharArray(char[]),
+ setAlgorithm(String), setKeyObtentionIterations(int),
+ setSaltGenerator(SaltGenerator), setProviderName(String),
+ setProvider(Provider), setStringOutputType(String)
+ and setConfig(PBEConfig) methods.
+
+ This class is mainly intended for use from Spring Framework or some other
+ IoC container (if you are not using a container of this kind, please see
+ HibernatePBEEncryptorRegistry). The steps to be performed are
+ the following:
+
+ This in a Spring config file would look like: +
++
+ ... + <-- Optional, as the hibernateEncryptor could be directly set an --> + <-- algorithm and password. --> + <bean id="stringEncryptor" + class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> + <property name="algorithm"> + <value>PBEWithMD5AndDES</value> + </property> + <property name="password"> + <value>XXXXX</value> + </property> + </bean> + + <bean id="hibernateEncryptor" + class="org.jasypt.hibernate.encryptor.HibernatePBEStringEncryptor"> + <property name="registeredName"> + <value>myHibernateStringEncryptor</value> + </property> + <property name="encryptor"> + <ref bean="stringEncryptor" /> + </property> + </bean> + ... ++ +
+ And then in the Hibernate mapping file: +
++
+ <typedef name="encrypted" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> ++ +
+ An important thing to note is that, when using HibernatePBEStringEncryptor
+ objects this way to wrap PBEStringEncryptors, it is not
+ necessary to deal with HibernatePBEEncryptorRegistry,
+ because HibernatePBEStringEncryptor objects get automatically registered
+ in the encryptor registry when their setRegisteredName(String)
+ method is called.
+
+ +
+
| +Constructor Summary | +|
|---|---|
HibernatePBEStringEncryptor()
+
++ Creates a new instance of HibernatePBEStringEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decypts a message, delegating to wrapped encryptor |
+
+ String |
+encrypt(String message)
+
++ Encrypts a message, delegating to wrapped encryptor. |
+
+ org.jasypt.encryption.pbe.PBEStringEncryptor |
+getEncryptor()
+
++ Returns the encryptor which this object wraps. |
+
+ String |
+getRegisteredName()
+
++ Returns the name with which the wrapped encryptor is registered at + the registry. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ Sets the algorithm to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ Sets the PBEConfig to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
+
++ Sets the PBEStringEncryptor to be held (wrapped) by this + object. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ Sets the key obtention iterations to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used by the internal encryptor, if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used by the internal encryptor (as a char[]), if a specific + encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ Sets the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setProviderName(String providerName)
+
++ Sets the name of the JCE provider to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setRegisteredName(String registeredName)
+
++ Sets the registered name of the encryptor and adds it to the registry. |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ Sets the salt generator to be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ Sets the type of String output ("base64" (default), "hexadecimal") to + be used by the internal encryptor, + if a specific encryptor has not been set with setEncryptor(...). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HibernatePBEStringEncryptor()+
+
| +Method Detail | +
|---|
+public org.jasypt.encryption.pbe.PBEStringEncryptor getEncryptor()+
+
+public void setEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)+
+
encryptor - the encryptor.+public void setPassword(String password)+
+
password - the password to be set for the internal encryptor+public void setPasswordCharArray(char[] password)+
+
password - the password to be set for the internal encryptor+public void setAlgorithm(String algorithm)+
+
algorithm - the algorithm to be set for the internal encryptor+public void setKeyObtentionIterations(int keyObtentionIterations)+
+
keyObtentionIterations - to be set for the internal encryptor+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+
saltGenerator - the salt generator to be set for the internal
+ encryptor.+public void setProviderName(String providerName)+
+
providerName - the name of the JCE provider (already registered)+public void setProvider(java.security.Provider provider)+
+
provider - the JCE provider to be used+public void setStringOutputType(String stringOutputType)+
+
stringOutputType - the type of String output+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+
config - the PBEConfig to be set for the internal encryptor+public String encrypt(String message)+
+
message - the message to be encrypted.
++public String decrypt(String encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
++public void setRegisteredName(String registeredName)+
+
registeredName - the name with which the encryptor will be
+ registered.+public String getRegisteredName()+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use HibernatePBEEncryptorRegistry | +|
|---|---|
| org.jasypt.hibernate4.encryptor | ++ |
| +Uses of HibernatePBEEncryptorRegistry in org.jasypt.hibernate4.encryptor | +
|---|
+ +
| Methods in org.jasypt.hibernate4.encryptor that return HibernatePBEEncryptorRegistry | +|
|---|---|
+static HibernatePBEEncryptorRegistry |
+HibernatePBEEncryptorRegistry.getInstance()
+
++ Returns the singleton instance of the registry. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +HibernatePBEBigDecimalEncryptor + +HibernatePBEBigIntegerEncryptor + +HibernatePBEByteEncryptor + +HibernatePBEEncryptorRegistry + +HibernatePBEStringEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| HibernatePBEBigDecimalEncryptor | ++ Placeholder class for PBEBigDecimalEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEBigIntegerEncryptor | ++ Placeholder class for PBEBigIntegerEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEByteEncryptor | ++ Placeholder class for PBEByteEncryptor objects which are + eligible for use from Hibernate. | +
| HibernatePBEEncryptorRegistry | ++ Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. | +
| HibernatePBEStringEncryptor | ++ Placeholder class for PBEStringEncryptor objects which are + eligible for use from Hibernate. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate4.encryptor | +|
|---|---|
| org.jasypt.hibernate4.encryptor | ++ |
| +Classes in org.jasypt.hibernate4.encryptor used by org.jasypt.hibernate4.encryptor | +|
|---|---|
| HibernatePBEEncryptorRegistry
+
+ + + Registry for all the PBE*Encryptor which are eligible for + use from Hibernate. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
public abstract class AbstractEncryptedAsStringType
+Base class for Hibernate UserTypes to store + values as encrypted strings. +
+ +
+
| +Field Summary | +|
|---|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor |
+encryptor
+
++ |
+
| +Constructor Summary | +|
|---|---|
AbstractEncryptedAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+protected void |
+checkInitialization()
+
++ |
+
+protected abstract Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ org.hibernate.engine.spi.SessionImplementor session,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index,
+ org.hibernate.engine.spi.SessionImplementor session)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+abstract Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected org.jasypt.encryption.pbe.PBEStringEncryptor encryptor+
| +Constructor Detail | +
|---|
+public AbstractEncryptedAsStringType()+
| +Method Detail | +
|---|
+protected abstract Object convertToObject(String string)+
+
string - the string value
++protected String convertToString(Object object)+
+
object - the object value
++public final int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public abstract Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public final boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public final int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public final Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + org.hibernate.engine.spi.SessionImplementor session, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index, + org.hibernate.engine.spi.SessionImplementor session) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType+protected final void checkInitialization()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedBigDecimalAsStringType +
public final class EncryptedBigDecimalAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimalAsString" class="org.jasypt.hibernate.type.EncryptedBigDecimalAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimalAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.EncryptedBigDecimalType +
public final class EncryptedBigDecimalType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigDecimal values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="encryptorRegisteredName">myHibernateBigDecimalEncryptor</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigDecimalEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigDecimalEncryptor (see
+ HibernatePBEBigDecimalEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigDecimal" class="org.jasypt.hibernate.type.EncryptedBigDecimalType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="decimalScale">2</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigDecimal" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+
+ About the decimalScale parameter ++ The decimalScale parameter is aimed at setting the scale with which + BigDecimal numbers will be set to and retrieved from the database. It is + an important parameter because many DBMSs return BigDecimal numbers with + a scale equal to the amount of decimal positions declared for the field + (e.g. if we store "18.23" (scale=2) in a DECIMAL(15,5) field, we can get a + "18.23000" (scale=5) back when we retrieve the number). This can affect + correct decryption of encrypted numbers, but specifying a + decimalScale parameter will solve this issue. +
++ So, if we set decimalScale to 3, and we store "18.23", this + Hibernate type will send "18.230" to the encryptor, which is the value that + we will get back from the database at retrieval time (a scale of "3" + will be set again on the value obtained from DB). If it is necessary, a + DOWN rounding operation is executed on the number. +
++ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigDecimalType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ org.hibernate.engine.spi.SessionImplementor session,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index,
+ org.hibernate.engine.spi.SessionImplementor session)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigDecimalType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + org.hibernate.engine.spi.SessionImplementor session, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index, + org.hibernate.engine.spi.SessionImplementor session) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedBigIntegerAsStringType +
public final class EncryptedBigIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigIntegerAsString" class="org.jasypt.hibernate.type.EncryptedBigIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.EncryptedBigIntegerType +
public final class EncryptedBigIntegerType
+
+ A Hibernate UserType implementation which allows transparent + encryption of BigInteger values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="encryptorRegisteredName">myHibernateBigIntegerEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEBigIntegerEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateBigIntegerEncryptor (see
+ HibernatePBEBigIntegerEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBigInteger" class="org.jasypt.hibernate.type.EncryptedBigIntegerType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedBigInteger" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBigIntegerType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ org.hibernate.engine.spi.SessionImplementor session,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index,
+ org.hibernate.engine.spi.SessionImplementor session)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBigIntegerType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + org.hibernate.engine.spi.SessionImplementor session, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index, + org.hibernate.engine.spi.SessionImplementor session) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.EncryptedBinaryType +
public final class EncryptedBinaryType
+
+ A Hibernate UserType implementation which allows transparent + encryption of byte[] values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="encryptorRegisteredName">myHibernateByteEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEByteEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateByteEncryptor (see
+ HibernatePBEByteEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBinary" class="org.jasypt.hibernate.type.EncryptedBinaryType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="resume" column="RESUME" type="encryptedBinary" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptedBinaryType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ Object |
+assemble(java.io.Serializable cached,
+ Object owner)
+
++ |
+
+ Object |
+deepCopy(Object value)
+
++ |
+
+ java.io.Serializable |
+disassemble(Object value)
+
++ |
+
+ boolean |
+equals(Object x,
+ Object y)
+
++ |
+
+ int |
+hashCode(Object x)
+
++ |
+
+ boolean |
+isMutable()
+
++ |
+
+ Object |
+nullSafeGet(java.sql.ResultSet rs,
+ String[] names,
+ org.hibernate.engine.spi.SessionImplementor session,
+ Object owner)
+
++ |
+
+ void |
+nullSafeSet(java.sql.PreparedStatement st,
+ Object value,
+ int index,
+ org.hibernate.engine.spi.SessionImplementor session)
+
++ |
+
+ Object |
+replace(Object original,
+ Object target,
+ Object owner)
+
++ |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
+ int[] |
+sqlTypes()
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBinaryType()+
| +Method Detail | +
|---|
+public int[] sqlTypes()+
sqlTypes in interface org.hibernate.usertype.UserType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserType+public boolean equals(Object x, + Object y) + throws org.hibernate.HibernateException+
equals in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object deepCopy(Object value) + throws org.hibernate.HibernateException+
deepCopy in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object assemble(java.io.Serializable cached, + Object owner) + throws org.hibernate.HibernateException+
assemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public java.io.Serializable disassemble(Object value) + throws org.hibernate.HibernateException+
disassemble in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public boolean isMutable()+
isMutable in interface org.hibernate.usertype.UserType+public int hashCode(Object x) + throws org.hibernate.HibernateException+
hashCode in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object replace(Object original, + Object target, + Object owner) + throws org.hibernate.HibernateException+
replace in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException+public Object nullSafeGet(java.sql.ResultSet rs, + String[] names, + org.hibernate.engine.spi.SessionImplementor session, + Object owner) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void nullSafeSet(java.sql.PreparedStatement st, + Object value, + int index, + org.hibernate.engine.spi.SessionImplementor session) + throws org.hibernate.HibernateException, + java.sql.SQLException+
nullSafeSet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateException
+java.sql.SQLException+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedBooleanAsStringType +
public final class EncryptedBooleanAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedBooleanAsString" class="org.jasypt.hibernate.type.EncryptedBooleanAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="active" column="ACTIVE" type="encryptedBooleanAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedBooleanAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedBooleanAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedByteAsStringType +
public final class EncryptedByteAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedByteAsString" class="org.jasypt.hibernate.type.EncryptedByteAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedByteAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedByteAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedByteAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedCalendarAsStringType +
public final class EncryptedCalendarAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ The boolean storeTimeZone parameter allows the Calendar to be + re-created with the same TimeZone that it was created. This is an + optional parameter, and its default value is FALSE. +
++ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedCalendarAsString" class="org.jasypt.hibernate.type.EncryptedCalendarAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + <param name="storeTimeZone">true</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedCalendarAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedCalendarAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ |
+
+ void |
+setParameterValues(java.util.Properties parameters)
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedCalendarAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToString(java.lang.Object)+public void setParameterValues(java.util.Properties parameters)+
setParameterValues in interface org.hibernate.usertype.ParameterizedTypesetParameterValues in class AbstractEncryptedAsStringType+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedDateAsStringType +
public final class EncryptedDateAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDateAsString" class="org.jasypt.hibernate.type.EncryptedDateAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="birth" column="BIRTH" type="encryptedDateAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDateAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+protected String |
+convertToString(Object object)
+
++ Converts given Object to its String form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDateAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+protected String convertToString(Object object)+
AbstractEncryptedAsStringType+
convertToString in class AbstractEncryptedAsStringTypeobject - the object value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToString(java.lang.Object)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedDoubleAsStringType +
public final class EncryptedDoubleAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedDoubleAsString" class="org.jasypt.hibernate.type.EncryptedDoubleAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedDoubleAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedDoubleAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedDoubleAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedFloatAsStringType +
public final class EncryptedFloatAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedFloatAsString" class="org.jasypt.hibernate.type.EncryptedFloatAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedFloatAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedFloatAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedFloatAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedIntegerAsStringType +
public final class EncryptedIntegerAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedIntegerAsString" class="org.jasypt.hibernate.type.EncryptedIntegerAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedIntegerAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedIntegerAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedIntegerAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedLongAsStringType +
public final class EncryptedLongAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedLongAsString" class="org.jasypt.hibernate.type.EncryptedLongAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedLongAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedLongAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedLongAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedShortAsStringType +
public final class EncryptedShortAsStringType
+
+ A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedShortAsString" class="org.jasypt.hibernate.type.EncryptedShortAsStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="salary" column="SALARY" type="encryptedShortAsString" /> + ... + <class> + ... + <hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedShortAsStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String string)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedShortAsStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String string)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestring - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.AbstractEncryptedAsStringType +
org.jasypt.hibernate4.type.EncryptedStringType +
public final class EncryptedStringType
+
+ A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. +
++ This class is intended only for declarative use from a Hibernate mapping + file. Do not use it directly from your .java files (although + of course you can use it when mapping entities using annotations). +
++ To use this Hibernate type in one of your Hibernate mappings, you can + add it like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="encryptorRegisteredName">myHibernateStringEncryptor</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ ...where a HibernatePBEStringEncryptor object
+ should have been previously registered to be used
+ from Hibernate with name myHibernateStringEncryptor (see
+ HibernatePBEStringEncryptor and HibernatePBEEncryptorRegistry).
+
+ Or, if you prefer to avoid registration of encryptors, you can configure + your encryptor directly in the mapping file (although not recommended), + like this: +
++
+ <hibernate-mapping package="myapp"> + ... + <typedef name="encryptedString" class="org.jasypt.hibernate.type.EncryptedStringType"> + <param name="algorithm">PBEWithMD5AndTripleDES</param> + <param name="password">XXXXX</param> + <param name="keyObtentionIterations">1000</param> + </typedef> + ... + <class name="UserData" table="USER_DATA"> + ... + <property name="address" column="ADDRESS" type="encryptedString" /> + ... + </class> + ... + </hibernate-mapping> ++ +
+ To learn more about usage of user-defined types, please refer to the + Hibernate Reference + Documentation. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
encryptor |
+
| +Constructor Summary | +|
|---|---|
EncryptedStringType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Object |
+convertToObject(String stringValue)
+
++ Converts given String to its Object form. |
+
+ Class |
+returnedClass()
+
++ |
+
| Methods inherited from class org.jasypt.hibernate4.type.AbstractEncryptedAsStringType | +
|---|
assemble, checkInitialization, convertToString, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, setParameterValues, sqlTypes |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptedStringType()+
| +Method Detail | +
|---|
+protected Object convertToObject(String stringValue)+
AbstractEncryptedAsStringType+
convertToObject in class AbstractEncryptedAsStringTypestringValue - the string value
+org.jasypt.hibernate.type.AbstractEncryptedAsStringType#convertToObject(java.lang.String)+public Class returnedClass()+
returnedClass in interface org.hibernate.usertype.UserTypereturnedClass in class AbstractEncryptedAsStringType
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.hibernate4.type.ParameterNaming +
public final class ParameterNaming
+
+ Constant names of the parameters that can be used by a jasypt type's + typedef declaration in a Hibernate mapping. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+ALGORITHM
+
++ + The encryption algorithm. |
+
+static String |
+DECIMAL_SCALE
+
++ + The scale (numbers after the decimal point) to be used when storing + decimal numbers. |
+
+static String |
+ENCRYPTOR_NAME
+
++ + The registered name of an encryptor previously registered at the + HibernatePBEEncryptorRegistry. |
+
+static String |
+KEY_OBTENTION_ITERATIONS
+
++ + The number of hashing iterations to be applied for obtaining the + encryption key. |
+
+static String |
+PASSWORD
+
++ + The encryption password. |
+
+static String |
+PROVIDER_NAME
+
++ + The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. |
+
+static String |
+STORE_TIME_ZONE
+
++ + Whether the calendar time zone should be stored with the date or not. |
+
+static String |
+STRING_OUTPUT_TYPE
+
++ + The type of String output ("base64" (default), "hexadecimal") to be + generated. |
+
| +Method Summary | +
|---|
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String ENCRYPTOR_NAME+
+ The registered name of an encryptor previously registered at the
+ HibernatePBEEncryptorRegistry.
+
+ Value = encryptorRegisteredName +
++
+public static final String ALGORITHM+
+ The encryption algorithm. +
++ Value = algorithm +
++
+public static final String PROVIDER_NAME+
+ The name of the JCE security provider we want to get the algorithm from + (if it is no the default one. +
++ Value = providerName +
++
+public static final String PASSWORD+
+ The encryption password. +
++ Value = password +
++
+public static final String KEY_OBTENTION_ITERATIONS+
+ The number of hashing iterations to be applied for obtaining the + encryption key. +
++ Value = keyObtentionIterations +
++
+public static final String STRING_OUTPUT_TYPE+
+ The type of String output ("base64" (default), "hexadecimal") to be + generated. +
++ Value = stringOutputType +
++
+public static final String DECIMAL_SCALE+
+ The scale (numbers after the decimal point) to be used when storing + decimal numbers. +
++ Value = decimalScale +
++
+public static final String STORE_TIME_ZONE+
+ Whether the calendar time zone should be stored with the date or not. +
++ Value = storeTimeZone +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractEncryptedAsStringType | +|
|---|---|
| org.jasypt.hibernate4.type | ++ |
| +Uses of AbstractEncryptedAsStringType in org.jasypt.hibernate4.type | +
|---|
+ +
| Subclasses of AbstractEncryptedAsStringType in org.jasypt.hibernate4.type | +|
|---|---|
+ class |
+EncryptedBigDecimalAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedBigIntegerAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedBooleanAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedByteAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedCalendarAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedDateAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedDoubleAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedFloatAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedIntegerAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedLongAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedShortAsStringType
+
++ + A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. |
+
+ class |
+EncryptedStringType
+
++ + A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AbstractEncryptedAsStringType | +Base class for Hibernate UserTypes to store + values as encrypted strings. | +
| EncryptedBigDecimalAsStringType | ++ A Hibernate UserType implementation which allows + encryption of BigDecimal values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedBigDecimalType | ++ A Hibernate UserType implementation which allows transparent + encryption of BigDecimal values during persistence of entities. | +
| EncryptedBigIntegerAsStringType | ++ A Hibernate UserType implementation which allows + encryption of BigInteger values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedBigIntegerType | ++ A Hibernate UserType implementation which allows transparent + encryption of BigInteger values during persistence of entities. | +
| EncryptedBinaryType | ++ A Hibernate UserType implementation which allows transparent + encryption of byte[] values during persistence of entities. | +
| EncryptedBooleanAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Boolean values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedByteAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Byte values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedCalendarAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Calendar values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedDateAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Date values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedDoubleAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Double values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedFloatAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Float values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedIntegerAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Integer values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedLongAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Long values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedShortAsStringType | ++ A Hibernate UserType implementation which allows + encryption of Short values into String (VARCHAR) database fields + during persistence of entities. | +
| EncryptedStringType | ++ A Hibernate UserType implementation which allows transparent + encryption of String values during persistence of entities. | +
| ParameterNaming | ++ Constant names of the parameters that can be used by a jasypt type's + typedef declaration in a Hibernate mapping. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.hibernate4.type | +|
|---|---|
| org.jasypt.hibernate4.type | ++ |
| +Classes in org.jasypt.hibernate4.type used by org.jasypt.hibernate4.type | +|
|---|---|
| AbstractEncryptedAsStringType
+
+ + Base class for Hibernate UserTypes to store + values as encrypted strings. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-hibernate4/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate4/overview-summary.html new file mode 100644 index 00000000..2a6deb81 --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-hibernate4/overview-summary.html @@ -0,0 +1,165 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.hibernate4.connectionprovider | ++ |
| org.jasypt.hibernate4.encryptor | ++ |
| org.jasypt.hibernate4.type | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Package org.jasypt.hibernate4.connectionprovider | +
|---|
| +Class org.jasypt.hibernate4.connectionprovider.EncryptedPasswordC3P0ConnectionProvider extends org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider implements Serializable | +
|---|
+serialVersionUID: 5273353009914873806L + +
+ +
| +Class org.jasypt.hibernate4.connectionprovider.EncryptedPasswordDriverManagerConnectionProvider extends org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl implements Serializable | +
|---|
+serialVersionUID: 7409509667904250297L + +
+ +
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.spring.properties.EncryptablePreferencesPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring2.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptablePropertyOverrideConfigurer
+ + Package renamed as org.jasypt.spring2.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring2.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptableServletContextPropertyPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring2.properties. Classes in + this package will be removed in 1.11. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptablePreferencesPlaceholderConfigurer +
+
public final class EncryptablePreferencesPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePreferencesPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer | +
|---|
afterPropertiesSet, resolvePlaceholder, resolvePlaceholder, setSystemTreePath, setUserTreePath |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyOverrideConfigurer +
org.jasypt.spring.properties.EncryptablePropertyOverrideConfigurer +
+
public final class EncryptablePropertyOverrideConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
DEFAULT_BEAN_NAME_SEPARATOR |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyOverrideConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyOverrideConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer +
+
public final class EncryptablePropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
+protected String |
+resolveSystemProperty(String key)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolveSystemProperty(String key)+
resolveSystemProperty in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptableServletContextPropertyPlaceholderConfigurer +
+
public final class EncryptableServletContextPropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ java.util.Properties props)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer | +
|---|
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + java.util.Properties props)+
resolvePlaceholder in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptablePreferencesPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring2.properties. | +
| EncryptablePropertyOverrideConfigurer | +Deprecated. Package renamed as org.jasypt.spring2.properties. | +
| EncryptablePropertyPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring2.properties. | +
| EncryptableServletContextPropertyPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring2.properties. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer +
org.jasypt.spring2.properties.EncryptablePreferencesPlaceholderConfigurer +
public final class EncryptablePreferencesPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ java.util.Properties props)
+
++ |
+
+protected String |
+resolvePlaceholder(String path,
+ String key,
+ java.util.prefs.Preferences preferences)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer | +
|---|
afterPropertiesSet, setSystemTreePath, setUserTreePath |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + java.util.Properties props)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer+protected String resolvePlaceholder(String path, + String key, + java.util.prefs.Preferences preferences)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyOverrideConfigurer +
org.jasypt.spring2.properties.EncryptablePropertyOverrideConfigurer +
public final class EncryptablePropertyOverrideConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
DEFAULT_BEAN_NAME_SEPARATOR |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.jasypt.spring2.properties.EncryptablePropertyPlaceholderConfigurer +
public final class EncryptablePropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolveSystemProperty(String key)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolveSystemProperty(String key)+
resolveSystemProperty in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer +
org.jasypt.spring2.properties.EncryptableServletContextPropertyPlaceholderConfigurer +
public final class EncryptableServletContextPropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ java.util.Properties props)
+
++ |
+
| Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer | +
|---|
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + java.util.Properties props)+
resolvePlaceholder in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptablePreferencesPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertyOverrideConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptableServletContextPropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-spring2/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-spring2/overview-summary.html new file mode 100644 index 00000000..f9146973 --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-spring2/overview-summary.html @@ -0,0 +1,161 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.spring.properties | ++ |
| org.jasypt.spring2.properties | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.spring.properties.EncryptablePreferencesPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring3.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptablePropertyOverrideConfigurer
+ + Package renamed as org.jasypt.spring3.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring3.properties. Classes in + this package will be removed in 1.11. |
+|
| org.jasypt.spring.properties.EncryptableServletContextPropertyPlaceholderConfigurer
+ + Package renamed as org.jasypt.spring3.properties. Classes in + this package will be removed in 1.11. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptablePreferencesPlaceholderConfigurer +
+
public final class EncryptablePreferencesPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePreferencesPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer | +
|---|
afterPropertiesSet, resolvePlaceholder, resolvePlaceholder, setSystemTreePath, setUserTreePath |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyOverrideConfigurer +
org.jasypt.spring.properties.EncryptablePropertyOverrideConfigurer +
+
public final class EncryptablePropertyOverrideConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
DEFAULT_BEAN_NAME_SEPARATOR |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyOverrideConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyOverrideConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer +
+
public final class EncryptablePropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
+protected String |
+resolveSystemProperty(String key)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolveSystemProperty(String key)+
resolveSystemProperty in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer +
org.jasypt.spring.properties.EncryptableServletContextPropertyPlaceholderConfigurer +
+
public final class EncryptableServletContextPropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ Deprecated. + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ Deprecated. |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ Properties props)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer | +
|---|
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + Properties props)+
resolvePlaceholder in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptablePreferencesPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring3.properties. | +
| EncryptablePropertyOverrideConfigurer | +Deprecated. Package renamed as org.jasypt.spring3.properties. | +
| EncryptablePropertyPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring3.properties. | +
| EncryptableServletContextPropertyPlaceholderConfigurer | +Deprecated. Package renamed as org.jasypt.spring3.properties. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer +
org.jasypt.spring3.properties.EncryptablePreferencesPlaceholderConfigurer +
public final class EncryptablePreferencesPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ Properties props)
+
++ |
+
+protected String |
+resolvePlaceholder(String path,
+ String key,
+ Preferences preferences)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer | +
|---|
afterPropertiesSet, setSystemTreePath, setUserTreePath |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + Properties props)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer+protected String resolvePlaceholder(String path, + String key, + Preferences preferences)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyOverrideConfigurer +
org.jasypt.spring3.properties.EncryptablePropertyOverrideConfigurer +
public final class EncryptablePropertyOverrideConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
DEFAULT_BEAN_NAME_SEPARATOR |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer +
public final class EncryptablePropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolveSystemProperty(String key)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolveSystemProperty(String key)+
resolveSystemProperty in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer +
org.jasypt.spring3.properties.EncryptableServletContextPropertyPlaceholderConfigurer +
public final class EncryptableServletContextPropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ Properties props)
+
++ |
+
| Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer | +
|---|
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + Properties props)+
resolvePlaceholder in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptablePreferencesPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertyOverrideConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptableServletContextPropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring3.xml.encryption.DigesterFactoryBean +
public final class DigesterFactoryBean
+
+ Factory bean for creating digester objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Constructor Summary | +|
|---|---|
DigesterFactoryBean(int encryptorType)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setAlgorithm(String algorithm)
+
++ |
+
+ void |
+setConfig(org.jasypt.digest.config.DigesterConfig config)
+
++ |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ |
+
+ void |
+setIterations(Integer iterations)
+
++ |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ |
+
+ void |
+setPrefix(String prefix)
+
++ |
+
+ void |
+setProvider(Provider provider)
+
++ |
+
+ void |
+setProviderName(String providerName)
+
++ |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ |
+
+ void |
+setSaltSizeBytes(Integer saltSizeBytes)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ |
+
+ void |
+setSuffix(String suffix)
+
++ |
+
+ void |
+setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)
+
++ |
+
+ void |
+setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public DigesterFactoryBean(int encryptorType)+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setAlgorithm(String algorithm)+
+public void setConfig(org.jasypt.digest.config.DigesterConfig config)+
+public void setIterations(Integer iterations)+
+public void setPoolSize(Integer poolSize)+
+public void setProvider(Provider provider)+
+public void setProviderName(String providerName)+
+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+public void setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)+
+public void setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)+
+public void setSaltSizeBytes(Integer saltSizeBytes)+
+public void setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)+
+public void setStringOutputType(String stringOutputType)+
+public void setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)+
+public void setPrefix(String prefix)+
+public void setSuffix(String suffix)+
+public final void afterPropertiesSet() + throws Exception+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException+public Object getObject() + throws Exception+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>Exception+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.jasypt.spring3.xml.encryption.EncryptablePropertiesFactoryBean +
public final class EncryptablePropertiesFactoryBean
+
+ Factory bean for creating encrptable properties objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
logger, XML_FILE_EXTENSION |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertiesFactoryBean()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setEncryptor(Object encryptor)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertiesFactoryBean()+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setEncryptor(Object encryptor)+
+public final void afterPropertiesSet() + throws IOException+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOException+public final Object getObject() + throws IOException+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>IOException+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.beans.factory.xml.NamespaceHandlerSupport +
org.jasypt.spring3.xml.encryption.EncryptionNamespaceHandler +
public final class EncryptionNamespaceHandler
+
+ Namespace handler for jasypt's encryption namespace. +
++ In order to use this namespace, add its XML schema declaration to your Spring + beans file like: +
+
+ <beans xmlns="http://www.springframework.org/schema/beans"
+ ...
+ xmlns:encryption="http://www.jasypt.org/schema/encryption"
+ ...
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+ ...
+ http://www.jasypt.org/schema/encryption
+ http://www.jasypt.org/schema/encryption/jasypt-spring3-encryption-1.xsd
+ ...">
+
+ + This namespace offers the following elements for creating instances of specific jasypt artifacts + and add them to the Spring application context: +
+DigesterConfig (simple, string, environment): <encryption:digester-config/>ByteDigester (pooled or standard, depending on selected pool size): <encryption:byte-digester/>StringDigester (pooled or standard, depending on selected pool size): <encryption:string-digester/>BasicPasswordEncryptor: <encryption:basic-password-encryptor/>StrongPasswordEncryptor: <encryption:strong-password-encryptor/>ConfigurablePasswordEncryptor: <encryption:configurable-password-encryptor/>PBEConfig (simple, string, environment): <encryption:encryptor-config/>ByteEncryptor (pooled or standard, depending on selected pool size): <encryption:byte-encryptor/>StringEncryptor (pooled or standard, depending on selected pool size): <encryption:string-encryptor/>BigIntegerEncryptor (pooled or standard, depending on selected pool size): <encryption:big-integer-encryptor/>BigDecimalEncryptor (pooled or standard, depending on selected pool size): <encryption:big-decimal-encryptor/>BasicTextEncryptor: <encryption:basic-text-encryptor/>StrongTextEncryptor: <encryption:strong-text-encryptor/>EncryptableProperties (equivalent to <util:properties/> adding property decryption): <encryption:encryptable-properties/>EncryptablePropertyPlaceholderConfigurer (equivalent to <context:property-placeholder/> adding property decryption): <encryption:encryptable-property-placeholder/>EncryptablePropertyOverrideConfigurer (equivalent to <context:property-override/> adding property decryption): <encryption:encryptable-property-override/>+ +
+
| +Constructor Summary | +|
|---|---|
EncryptionNamespaceHandler()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+init()
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport | +
|---|
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptionNamespaceHandler()+
| +Method Detail | +
|---|
+public void init()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring3.xml.encryption.EncryptorFactoryBean +
public final class EncryptorFactoryBean
+
+ Factory bean for creating encryptor objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptorFactoryBean(int encryptorType)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setAlgorithm(String algorithm)
+
++ |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ |
+
+ void |
+setKeyObtentionIterations(Integer keyObtentionIterations)
+
++ |
+
+ void |
+setPassword(String password)
+
++ |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ |
+
+ void |
+setProvider(Provider provider)
+
++ |
+
+ void |
+setProviderName(String providerName)
+
++ |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptorFactoryBean(int encryptorType)+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setAlgorithm(String algorithm)+
+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+public void setKeyObtentionIterations(Integer keyObtentionIterations)+
+public void setPassword(String password)+
+public void setPoolSize(Integer poolSize)+
+public void setProvider(Provider provider)+
+public void setProviderName(String providerName)+
+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+public void setStringOutputType(String stringOutputType)+
+public final void afterPropertiesSet() + throws Exception+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException+public Object getObject() + throws Exception+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>Exception+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +DigesterFactoryBean + +EncryptablePropertiesFactoryBean + +EncryptionNamespaceHandler + +EncryptorFactoryBean |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| DigesterFactoryBean | ++ Factory bean for creating digester objects from the encryption namespace + elements. | +
| EncryptablePropertiesFactoryBean | ++ Factory bean for creating encrptable properties objects from the encryption namespace + elements. | +
| EncryptionNamespaceHandler | ++ Namespace handler for jasypt's encryption namespace. | +
| EncryptorFactoryBean | ++ Factory bean for creating encryptor objects from the encryption namespace + elements. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-spring3/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-spring3/overview-summary.html new file mode 100644 index 00000000..d4fd503d --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-spring3/overview-summary.html @@ -0,0 +1,165 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.spring.properties | ++ |
| org.jasypt.spring3.properties | ++ |
| org.jasypt.spring3.xml.encryption | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.StringEncryptor object to decrypt
+ encrypted values.
+TextEncryptor object to decrypt encrypted values.
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PlaceholderConfigurerSupport +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer +
org.jasypt.spring31.properties.EncryptablePreferencesPlaceholderConfigurer +
public final class EncryptablePreferencesPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ Properties props)
+
++ |
+
+protected String |
+resolvePlaceholder(String path,
+ String key,
+ Preferences preferences)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer | +
|---|
afterPropertiesSet, setSystemTreePath, setUserTreePath |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, convertProperty, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + Properties props)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer+protected String resolvePlaceholder(String path, + String key, + Preferences preferences)+
resolvePlaceholder in class org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.env.PropertySource<T> +
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>> +
org.springframework.core.env.MapPropertySource +
org.springframework.core.env.PropertiesPropertySource +
org.jasypt.spring31.properties.EncryptablePropertiesPropertySource +
public final class EncryptablePropertiesPropertySource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource | +
|---|
org.springframework.core.env.PropertySource.StubPropertySource |
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.core.env.EnumerablePropertySource | +
|---|
EMPTY_NAMES_ARRAY, logger |
+
| Fields inherited from class org.springframework.core.env.PropertySource | +
|---|
name, source |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertiesPropertySource(String name,
+ org.jasypt.properties.EncryptableProperties props)
+
++ |
+|
EncryptablePropertiesPropertySource(String name,
+ Properties props,
+ org.jasypt.encryption.StringEncryptor encryptor)
+
++ |
+|
EncryptablePropertiesPropertySource(String name,
+ Properties props,
+ org.jasypt.util.text.TextEncryptor encryptor)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class org.springframework.core.env.MapPropertySource | +
|---|
getProperty, getPropertyNames |
+
| Methods inherited from class org.springframework.core.env.EnumerablePropertySource | +
|---|
containsProperty |
+
| Methods inherited from class org.springframework.core.env.PropertySource | +
|---|
equals, getName, getSource, hashCode, named, toString |
+
| Methods inherited from class Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertiesPropertySource(String name, + org.jasypt.properties.EncryptableProperties props)+
+public EncryptablePropertiesPropertySource(String name, + Properties props, + org.jasypt.util.text.TextEncryptor encryptor)+
+public EncryptablePropertiesPropertySource(String name, + Properties props, + org.jasypt.encryption.StringEncryptor encryptor)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PropertyOverrideConfigurer +
org.jasypt.spring31.properties.EncryptablePropertyOverrideConfigurer +
public final class EncryptablePropertyOverrideConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
DEFAULT_BEAN_NAME_SEPARATOR |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyOverrideConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer | +
|---|
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, convertProperty, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyOverrideConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PlaceholderConfigurerSupport +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer +
public final class EncryptablePropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Encrypted and unencrypted objects can be combined in the same resources file. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolveSystemProperty(String key)
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, convertProperty, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolveSystemProperty(String key)+
resolveSystemProperty in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PlaceholderConfigurerSupport +
org.springframework.context.support.PropertySourcesPlaceholderConfigurer +
org.jasypt.spring31.properties.EncryptablePropertySourcesPlaceholderConfigurer +
public final class EncryptablePropertySourcesPlaceholderConfigurer
+
+
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer | +
|---|
ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME |
+
| Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected void |
+convertProperties(Properties props)
+
++ |
+
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected Properties |
+mergeProperties()
+
++ |
+
| Methods inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer | +
|---|
postProcessBeanFactory, processProperties, processProperties, setEnvironment, setPropertySources |
+
| Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperty, getOrder, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected Properties mergeProperties() + throws IOException+
mergeProperties in class org.springframework.core.io.support.PropertiesLoaderSupportIOException+protected void convertProperties(Properties props)+
convertProperties in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.springframework.beans.factory.config.PropertyResourceConfigurer +
org.springframework.beans.factory.config.PlaceholderConfigurerSupport +
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer +
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer +
org.jasypt.spring31.properties.EncryptableServletContextPropertyPlaceholderConfigurer +
public final class EncryptableServletContextPropertyPlaceholderConfigurer
+
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
+
| Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
+
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| Fields inherited from interface org.springframework.core.Ordered | +
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
+
| +Constructor Summary | +|
|---|---|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance + which will use the passed StringEncryptor object to decrypt
+ encrypted values. |
+|
EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ + Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the + passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+protected String |
+convertPropertyValue(String originalValue)
+
++ |
+
+protected String |
+resolvePlaceholder(String placeholder,
+ Properties props)
+
++ |
+
| Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer | +
|---|
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer | +
|---|
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
+
| Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport | +
|---|
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator |
+
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer | +
|---|
convertProperties, convertProperty, getOrder, postProcessBeanFactory, setOrder |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
+ which will use the passed StringEncryptor object to decrypt
+ encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt values. It
+ can not be null.+public EncryptableServletContextPropertyPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)+
+ Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
+ passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt values. It can
+ not be null.| +Method Detail | +
|---|
+protected String convertPropertyValue(String originalValue)+
convertPropertyValue in class org.springframework.beans.factory.config.PropertyResourceConfigurer+protected String resolvePlaceholder(String placeholder, + Properties props)+
resolvePlaceholder in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptablePreferencesPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt preferences values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertiesPropertySource | ++ |
| EncryptablePropertyOverrideConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyOverrideConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the loaded resource locations. |
+
| EncryptablePropertySourcesPlaceholderConfigurer | ++ |
| EncryptableServletContextPropertyPlaceholderConfigurer | +
+ Subclass of
+ org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
+ which can make use of a StringEncryptor or
+ TextEncryptor object to decrypt servlet context parameter values
+ if they are encrypted in the loaded resource locations. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring31.xml.encryption.DigesterFactoryBean +
public final class DigesterFactoryBean
+
+ Factory bean for creating digester objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Constructor Summary | +|
|---|---|
DigesterFactoryBean(int encryptorType)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setAlgorithm(String algorithm)
+
++ |
+
+ void |
+setConfig(org.jasypt.digest.config.DigesterConfig config)
+
++ |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ |
+
+ void |
+setIterations(Integer iterations)
+
++ |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ |
+
+ void |
+setPrefix(String prefix)
+
++ |
+
+ void |
+setProvider(Provider provider)
+
++ |
+
+ void |
+setProviderName(String providerName)
+
++ |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ |
+
+ void |
+setSaltSizeBytes(Integer saltSizeBytes)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ |
+
+ void |
+setSuffix(String suffix)
+
++ |
+
+ void |
+setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)
+
++ |
+
+ void |
+setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public DigesterFactoryBean(int encryptorType)+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setAlgorithm(String algorithm)+
+public void setConfig(org.jasypt.digest.config.DigesterConfig config)+
+public void setIterations(Integer iterations)+
+public void setPoolSize(Integer poolSize)+
+public void setProvider(Provider provider)+
+public void setProviderName(String providerName)+
+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+public void setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)+
+public void setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)+
+public void setSaltSizeBytes(Integer saltSizeBytes)+
+public void setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)+
+public void setStringOutputType(String stringOutputType)+
+public void setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)+
+public void setPrefix(String prefix)+
+public void setSuffix(String suffix)+
+public final void afterPropertiesSet() + throws Exception+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException+public Object getObject() + throws Exception+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>Exception+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.core.io.support.PropertiesLoaderSupport +
org.jasypt.spring31.xml.encryption.EncryptablePropertiesFactoryBean +
public final class EncryptablePropertiesFactoryBean
+
+ Factory bean for creating encrptable properties objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
localOverride, localProperties, logger, XML_FILE_EXTENSION |
+
| +Constructor Summary | +|
|---|---|
EncryptablePropertiesFactoryBean()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setEncryptor(Object encryptor)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport | +
|---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptablePropertiesFactoryBean()+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setEncryptor(Object encryptor)+
+public final void afterPropertiesSet() + throws IOException+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOException+public final Object getObject() + throws IOException+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>IOException+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.beans.factory.xml.NamespaceHandlerSupport +
org.jasypt.spring31.xml.encryption.EncryptionNamespaceHandler +
public final class EncryptionNamespaceHandler
+
+ Namespace handler for jasypt's encryption namespace. +
++ In order to use this namespace, add its XML schema declaration to your Spring + beans file like: +
+
+ <beans xmlns="http://www.springframework.org/schema/beans"
+ ...
+ xmlns:encryption="http://www.jasypt.org/schema/encryption"
+ ...
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
+ ...
+ http://www.jasypt.org/schema/encryption
+ http://www.jasypt.org/schema/encryption/jasypt-spring31-encryption-1.xsd
+ ...">
+
+ + This namespace offers the following elements for creating instances of specific jasypt artifacts + and add them to the Spring application context: +
+DigesterConfig (simple, string, environment): <encryption:digester-config/>ByteDigester (pooled or standard, depending on selected pool size): <encryption:byte-digester/>StringDigester (pooled or standard, depending on selected pool size): <encryption:string-digester/>BasicPasswordEncryptor: <encryption:basic-password-encryptor/>StrongPasswordEncryptor: <encryption:strong-password-encryptor/>ConfigurablePasswordEncryptor: <encryption:configurable-password-encryptor/>PBEConfig (simple, string, environment): <encryption:encryptor-config/>ByteEncryptor (pooled or standard, depending on selected pool size): <encryption:byte-encryptor/>StringEncryptor (pooled or standard, depending on selected pool size): <encryption:string-encryptor/>BigIntegerEncryptor (pooled or standard, depending on selected pool size): <encryption:big-integer-encryptor/>BigDecimalEncryptor (pooled or standard, depending on selected pool size): <encryption:big-decimal-encryptor/>BasicTextEncryptor: <encryption:basic-text-encryptor/>StrongTextEncryptor: <encryption:strong-text-encryptor/>EncryptableProperties (equivalent to <util:properties/> adding property decryption): <encryption:encryptable-properties/>org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer (equivalent to <context:property-placeholder/> adding property decryption): <encryption:encryptable-property-placeholder/>org.jasypt.spring3.properties.EncryptablePropertyOverrideConfigurer (equivalent to <context:property-override/> adding property decryption): <encryption:encryptable-property-override/>+ +
+
| +Constructor Summary | +|
|---|---|
EncryptionNamespaceHandler()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+init()
+
++ |
+
| Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport | +
|---|
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptionNamespaceHandler()+
| +Method Detail | +
|---|
+public void init()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring31.xml.encryption.EncryptorFactoryBean +
public final class EncryptorFactoryBean
+
+ Factory bean for creating encryptor objects from the encryption namespace + elements. Do not use directly. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptorFactoryBean(int encryptorType)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+afterPropertiesSet()
+
++ |
+
+ Object |
+getObject()
+
++ |
+
+ Class<?> |
+getObjectType()
+
++ |
+
+ boolean |
+isSingleton()
+
++ |
+
+ void |
+setAlgorithm(String algorithm)
+
++ |
+
+ void |
+setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)
+
++ |
+
+ void |
+setKeyObtentionIterations(Integer keyObtentionIterations)
+
++ |
+
+ void |
+setPassword(String password)
+
++ |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ |
+
+ void |
+setProvider(Provider provider)
+
++ |
+
+ void |
+setProviderName(String providerName)
+
++ |
+
+ void |
+setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)
+
++ |
+
+ void |
+setSingleton(boolean singleton)
+
++ |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptorFactoryBean(int encryptorType)+
| +Method Detail | +
|---|
+public final void setSingleton(boolean singleton)+
+public final boolean isSingleton()+
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>+public void setAlgorithm(String algorithm)+
+public void setConfig(org.jasypt.encryption.pbe.config.PBEConfig config)+
+public void setKeyObtentionIterations(Integer keyObtentionIterations)+
+public void setPassword(String password)+
+public void setPoolSize(Integer poolSize)+
+public void setProvider(Provider provider)+
+public void setProviderName(String providerName)+
+public void setSaltGenerator(org.jasypt.salt.SaltGenerator saltGenerator)+
+public void setStringOutputType(String stringOutputType)+
+public final void afterPropertiesSet() + throws Exception+
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException+public Object getObject() + throws Exception+
getObject in interface org.springframework.beans.factory.FactoryBean<Object>Exception+public Class<?> getObjectType()+
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +DigesterFactoryBean + +EncryptablePropertiesFactoryBean + +EncryptionNamespaceHandler + +EncryptorFactoryBean |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| DigesterFactoryBean | ++ Factory bean for creating digester objects from the encryption namespace + elements. | +
| EncryptablePropertiesFactoryBean | ++ Factory bean for creating encrptable properties objects from the encryption namespace + elements. | +
| EncryptionNamespaceHandler | ++ Namespace handler for jasypt's encryption namespace. | +
| EncryptorFactoryBean | ++ Factory bean for creating encryptor objects from the encryption namespace + elements. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-spring31/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-spring31/overview-summary.html new file mode 100644 index 00000000..1e813cc4 --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-spring31/overview-summary.html @@ -0,0 +1,161 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.spring31.properties | ++ |
| org.jasypt.spring31.xml.encryption | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| PasswordEncoder
+ +PasswordEncoder + +PBEPasswordEncoder + +PBEPasswordEncoder + + |
+
| PasswordEncoder
+ +PasswordEncoder + +PBEPasswordEncoder + +PBEPasswordEncoder + + |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.spring.security2.PasswordEncoder
+ + Renamed as org.jasypt.springsecurity2.providers.encoding.PasswordEncoder. + Class will be removed from this package in 1.11. |
+|
| org.jasypt.spring.security2.PBEPasswordEncoder
+ + Renamed as org.jasypt.springsecurity2.providers.encoding.PBEPasswordEncoder. + Class will be removed from this package in 1.11. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring.security2.PBEPasswordEncoder +
+
public final class PBEPasswordEncoder
+
+ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
++ Important: This class allows bi-directional password-based encryption + of user passwords + in Spring Security using Jasypt. But please note that passwords should not be + encrypted in a bi-directional way, but instead as uni-directional + digests (hashes). Encrypting passwords in a way they can be decrypted + can be a severe security issue, and should only be considered in legacy + or complex inter-application integration scenarios. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+ setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + TextEncryptor or PBEStringEncryptor objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a TextEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the TextEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" > + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the TextEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="textEncryptor"> + <ref bean="jasyptTextEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a PBEStringEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PBEStringEncryptor in several places,--> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" > + <property name="algorithm" value="PBEWithMD5AndTripleDES" /> + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PBEStringEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="pbeStringEncryptor"> + <ref bean="jasyptPBEStringEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PBEPasswordEncoder()
+
++ Deprecated. Creates a new instance of PBEPasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Deprecated. Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Deprecated. Checks a password's validity. |
+
+ void |
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
++ Deprecated. Sets a string digester to be used. |
+
+ void |
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. Sets a text encryptor to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PBEPasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)+
+
textEncryptor - the text encryptor instance to be used.+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)+
+
pbeStringEncryptor - the PBE string encryptor instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.providers.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.providers.encoding.PasswordEncoderencPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring.security2.PasswordEncoder +
+
public final class PasswordEncoder
+
+ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+ setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + PasswordEncryptor or StringDigester objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a PasswordEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PasswordEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" /> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PasswordEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="passwordEncryptor"> + <ref bean="jasyptPasswordEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a StringDigester +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the StringDigester in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" > + <property name="algorithm" value="SHA-1" /> + <property name="iterations" value="100000" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the StringDigester instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="stringDigester"> + <ref bean="jasyptStringDigester" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PasswordEncoder()
+
++ Deprecated. Creates a new instance of PasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Deprecated. Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Deprecated. Checks a password's validity. |
+
+ void |
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
++ Deprecated. Sets a password encryptor to be used. |
+
+ void |
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
++ Deprecated. Sets a string digester to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)+
+
passwordEncryptor - the password encryptor instance to be used.+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)+
+
stringDigester - the string digester instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.providers.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.providers.encoding.PasswordEncoderencPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +PasswordEncoder + +PBEPasswordEncoder |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| PasswordEncoder | +Deprecated. Renamed as org.jasypt.springsecurity2.providers.encoding.PasswordEncoder. | +
| PBEPasswordEncoder | +Deprecated. Renamed as org.jasypt.springsecurity2.providers.encoding.PBEPasswordEncoder. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.springsecurity2.providers.encoding.PBEPasswordEncoder +
public final class PBEPasswordEncoder
+
+ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
++ Important: This class allows bi-directional password-based encryption + of user passwords + in Spring Security using Jasypt. But please note that passwords should not be + encrypted in a bi-directional way, but instead as uni-directional + digests (hashes). Encrypting passwords in a way they can be decrypted + can be a severe security issue, and should only be considered in legacy + or complex inter-application integration scenarios. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+ setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + TextEncryptor or PBEStringEncryptor objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a TextEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the TextEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" > + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the TextEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="textEncryptor"> + <ref bean="jasyptTextEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a PBEStringEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PBEStringEncryptor in several places,--> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" > + <property name="algorithm" value="PBEWithMD5AndTripleDES" /> + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PBEStringEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="pbeStringEncryptor"> + <ref bean="jasyptPBEStringEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PBEPasswordEncoder()
+
++ Creates a new instance of PBEPasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Checks a password's validity. |
+
+ void |
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
++ Sets a string digester to be used. |
+
+ void |
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Sets a text encryptor to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PBEPasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)+
+
textEncryptor - the text encryptor instance to be used.+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)+
+
pbeStringEncryptor - the PBE string encryptor instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.providers.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.providers.encoding.PasswordEncoderencPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.springsecurity2.providers.encoding.PasswordEncoder +
public final class PasswordEncoder
+
+ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+ setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + PasswordEncryptor or StringDigester objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a PasswordEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PasswordEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" /> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PasswordEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="passwordEncryptor"> + <ref bean="jasyptPasswordEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a StringDigester +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the StringDigester in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" > + <property name="algorithm" value="SHA-1" /> + <property name="iterations" value="100000" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the StringDigester instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="stringDigester"> + <ref bean="jasyptStringDigester" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PasswordEncoder()
+
++ Creates a new instance of PasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Checks a password's validity. |
+
+ void |
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
++ Sets a password encryptor to be used. |
+
+ void |
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
++ Sets a string digester to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)+
+
passwordEncryptor - the password encryptor instance to be used.+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)+
+
stringDigester - the string digester instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.providers.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.providers.encoding.PasswordEncoderencPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +PasswordEncoder + +PBEPasswordEncoder |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| PasswordEncoder | ++ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. | +
| PBEPasswordEncoder | ++ This class implements the Spring Security 2.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity2/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity2/overview-summary.html new file mode 100644 index 00000000..7a76cdff --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity2/overview-summary.html @@ -0,0 +1,161 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.spring.security2 | ++ |
| org.jasypt.springsecurity2.providers.encoding | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| PasswordEncoder
+ +PasswordEncoder + +PBEPasswordEncoder + +PBEPasswordEncoder + +TokenBasedRememberMeServices + +TokenBasedRememberMeServices + + |
+
| PasswordEncoder
+ +PasswordEncoder + +PBEPasswordEncoder + +PBEPasswordEncoder + +TokenBasedRememberMeServices + +TokenBasedRememberMeServices + + |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.spring.security3.PasswordEncoder
+ + Renamed as org.jasypt.springsecurity3.authentication.encoding.PasswordEncoder. + Class will be removed from this package in 1.11. |
+|
| org.jasypt.spring.security3.PBEPasswordEncoder
+ + Renamed as org.jasypt.springsecurity3.authentication.encoding.PBEPasswordEncoder. + Class will be removed from this package in 1.11. |
+|
| org.jasypt.spring.security3.TokenBasedRememberMeServices
+ + Renamed as org.jasypt.springsecurity3.authentication.rememberme.TokenBasedRememberMeServices. + Class will be removed from this package in 1.11. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
StringDigester passed as a parameter for performing the digest of the signature in the cookie
+ (username + ":" + expiry time + ":" + password + ":" + key).
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring.security3.PBEPasswordEncoder +
+
public final class PBEPasswordEncoder
+
+ This class implements the Spring Security 3.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
++ Important: This class allows bi-directional password-based encryption + of user passwords + in Spring Security using Jasypt. But please note that passwords should not be + encrypted in a bi-directional way, but instead as uni-directional + digests (hashes). Encrypting passwords in a way they can be decrypted + can be a severe security issue, and should only be considered in legacy + or complex inter-application integration scenarios. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+ setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + TextEncryptor or PBEStringEncryptor objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a TextEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the TextEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" > + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the TextEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="textEncryptor"> + <ref bean="jasyptTextEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a PBEStringEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PBEStringEncryptor in several places,--> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" > + <property name="algorithm" value="PBEWithMD5AndTripleDES" /> + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PBEStringEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="pbeStringEncryptor"> + <ref bean="jasyptPBEStringEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PBEPasswordEncoder()
+
++ Deprecated. Creates a new instance of PBEPasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Deprecated. Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Deprecated. Checks a password's validity. |
+
+ void |
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
++ Deprecated. Sets a string digester to be used. |
+
+ void |
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Deprecated. Sets a text encryptor to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PBEPasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)+
+
textEncryptor - the text encryptor instance to be used.+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)+
+
pbeStringEncryptor - the PBE string encryptor instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.authentication.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.authentication.encoding.PasswordEncoderencPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.spring.security3.PasswordEncoder +
+
public final class PasswordEncoder
+
+ This class implements the Spring Security 3.x + org.springframework.security.authentication.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+ setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + PasswordEncryptor or StringDigester objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a PasswordEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PasswordEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" /> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PasswordEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="passwordEncryptor"> + <ref bean="jasyptPasswordEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a StringDigester +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the StringDigester in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" > + <property name="algorithm" value="SHA-1" /> + <property name="iterations" value="100000" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the StringDigester instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="stringDigester"> + <ref bean="jasyptStringDigester" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PasswordEncoder()
+
++ Deprecated. Creates a new instance of PasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Deprecated. Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Deprecated. Checks a password's validity. |
+
+ void |
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
++ Deprecated. Sets a password encryptor to be used. |
+
+ void |
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
++ Deprecated. Sets a string digester to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)+
+
passwordEncryptor - the password encryptor instance to be used.+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)+
+
stringDigester - the string digester instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.authentication.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.authentication.encoding.PasswordEncoderencPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices +
org.jasypt.spring.security3.TokenBasedRememberMeServices +
+
public final class TokenBasedRememberMeServices
+
+ Implementation of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
+ which provides a "remember-me" cookie arranged in the same way as
+ org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices, but using a
+ Jasypt StringDigester passed as a parameter for performing the digest of the signature in the cookie
+ (username + ":" + expiry time + ":" + password + ":" + key).
+
+ This class is thread-safe +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices | +
|---|
DEFAULT_PARAMETER, logger, messages, SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY, TWO_WEEKS_S |
+
| +Constructor Summary | +|
|---|---|
TokenBasedRememberMeServices()
+
++ Deprecated. |
+|
| +Method Summary | +|
|---|---|
+ void |
+onLoginSuccess(javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response,
+ org.springframework.security.core.Authentication successfulAuthentication)
+
++ Deprecated. |
+
+protected org.springframework.security.core.userdetails.UserDetails |
+processAutoLoginCookie(String[] cookieTokens,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ Deprecated. |
+
+ void |
+setDigester(org.jasypt.digest.StringDigester digester)
+
++ Deprecated. |
+
| Methods inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices | +
|---|
afterPropertiesSet, autoLogin, cancelCookie, createSuccessfulAuthentication, decodeCookie, encodeCookie, extractRememberMeCookie, getAuthenticationDetailsSource, getCookieName, getKey, getParameter, getTokenValiditySeconds, getUserDetailsService, loginFail, loginSuccess, logout, onLoginFail, rememberMeRequested, setAlwaysRemember, setAuthenticationDetailsSource, setCookie, setCookieName, setKey, setParameter, setTokenValiditySeconds, setUserDetailsService, setUseSecureCookie |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public TokenBasedRememberMeServices()+
| +Method Detail | +
|---|
+public void setDigester(org.jasypt.digest.StringDigester digester)+
+protected org.springframework.security.core.userdetails.UserDetails processAutoLoginCookie(String[] cookieTokens, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response)+
processAutoLoginCookie in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices+public void onLoginSuccess(javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response, + org.springframework.security.core.Authentication successfulAuthentication)+
onLoginSuccess in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +PasswordEncoder + +PBEPasswordEncoder + +TokenBasedRememberMeServices |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| PasswordEncoder | +Deprecated. Renamed as org.jasypt.springsecurity3.authentication.encoding.PasswordEncoder. | +
| PBEPasswordEncoder | +Deprecated. Renamed as org.jasypt.springsecurity3.authentication.encoding.PBEPasswordEncoder. | +
| TokenBasedRememberMeServices | +Deprecated. Renamed as org.jasypt.springsecurity3.authentication.rememberme.TokenBasedRememberMeServices. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.springsecurity3.authentication.encoding.PBEPasswordEncoder +
public final class PBEPasswordEncoder
+
+ This class implements the Spring Security 3.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
++ Important: This class allows bi-directional password-based encryption + of user passwords + in Spring Security using Jasypt. But please note that passwords should not be + encrypted in a bi-directional way, but instead as uni-directional + digests (hashes). Encrypting passwords in a way they can be decrypted + can be a severe security issue, and should only be considered in legacy + or complex inter-application integration scenarios. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.text.TextEncryptor or an object of type
+ org.jasypt.encryption.pbe.PBEStringEncryptor (only one of them),
+ which should be set by respectively calling
+ setTextEncryptor(TextEncryptor) or
+ setPbeStringEncryptor(PBEStringEncryptor)
+ after creation. If neither a TextEncryptor nor
+ a PBEStringEncryptor are set, a new
+ org.jasypt.util.text.BasicTextEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + TextEncryptor or PBEStringEncryptor objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a TextEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the TextEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptTextEncryptor" class="org.jasypt.util.text.StrongTextEncryptor" > + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the TextEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="textEncryptor"> + <ref bean="jasyptTextEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a PBEStringEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PBEStringEncryptor in several places,--> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPBEStringEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor" > + <property name="algorithm" value="PBEWithMD5AndTripleDES" /> + <property name="password" value="myPassword" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PBEStringEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PBEPasswordEncoder"> + <property name="pbeStringEncryptor"> + <ref bean="jasyptPBEStringEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PBEPasswordEncoder()
+
++ Creates a new instance of PBEPasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Checks a password's validity. |
+
+ void |
+setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)
+
++ Sets a string digester to be used. |
+
+ void |
+setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)
+
++ Sets a text encryptor to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PBEPasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setTextEncryptor(org.jasypt.util.text.TextEncryptor textEncryptor)+
+
textEncryptor - the text encryptor instance to be used.+public void setPbeStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor pbeStringEncryptor)+
+
pbeStringEncryptor - the PBE string encryptor instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.authentication.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.authentication.encoding.PasswordEncoderencPass - The encrypted password against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.springsecurity3.authentication.encoding.PasswordEncoder +
public final class PasswordEncoder
+
+ This class implements the Spring Security 3.x + org.springframework.security.authentication.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. +
+
+ Objects of this class will internally hold either an object of type
+ org.jasypt.util.password.PasswordEncryptor or an object of type
+ org.jasypt.digest.StringDigester (only one of them),
+ which should be set by respectively calling
+ setPasswordEncryptor(PasswordEncryptor) or
+ setStringDigester(StringDigester)
+ after creation. If neither a PasswordEncryptor nor
+ a StringDigester are set, a new
+ org.jasypt.util.password.BasicPasswordEncryptor object is
+ created and internally used.
+
+ Important: This implementation ignores any salt provided through + the interface methods, as the internal Jasypt + PasswordEncryptor or StringDigester objects normally use a + random one. This means that salt can be safely passed as + null. +
++ Usage with a PasswordEncryptor +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the PasswordEncryptor in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptPasswordEncryptor" class="org.jasypt.util.password.StrongPasswordEncryptor" /> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the PasswordEncryptor instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="passwordEncryptor"> + <ref bean="jasyptPasswordEncryptor" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ Usage with a StringDigester +
++ This class can be used like this from your Spring XML resource files: +
++ ... + <!-- Your application may use the StringDigester in several places, --> + <!-- like for example at new user sign-up. --> + <bean id="jasyptStringDigester" class="org.jasypt.digest.StandardStringDigester" > + <property name="algorithm" value="SHA-1" /> + <property name="iterations" value="100000" /> + </bean> + ... + ... + <!-- This Spring Security-friendly PasswordEncoder implementation will --> + <!-- wrap the StringDigester instance so that it can be used from --> + <!-- the security framework. --> + <bean id="passwordEncoder" class="org.jasypt.spring.security2.PasswordEncoder"> + <property name="stringDigester"> + <ref bean="jasyptStringDigester" /> + </property> + </bean> + ... + ... + <!-- Your DaoAuthenticationProvider will then use it like with any --> + <!-- other implementation of the PasswordEncoder interface. --> + <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> + <property name="userDetailsService" ref="userDetailsService"/> + <property name="passwordEncoder"> + <ref bean="passwordEncoder" /> + </property> + </bean> + ... ++
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
PasswordEncoder()
+
++ Creates a new instance of PasswordEncoder |
+|
| +Method Summary | +|
|---|---|
+ String |
+encodePassword(String rawPass,
+ Object salt)
+
++ Encodes a password. |
+
+ boolean |
+isPasswordValid(String encPass,
+ String rawPass,
+ Object salt)
+
++ Checks a password's validity. |
+
+ void |
+setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)
+
++ Sets a password encryptor to be used. |
+
+ void |
+setStringDigester(org.jasypt.digest.StringDigester stringDigester)
+
++ Sets a string digester to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PasswordEncoder()+
+
| +Method Detail | +
|---|
+public void setPasswordEncryptor(org.jasypt.util.password.PasswordEncryptor passwordEncryptor)+
+
passwordEncryptor - the password encryptor instance to be used.+public void setStringDigester(org.jasypt.digest.StringDigester stringDigester)+
+
stringDigester - the string digester instance to be used.+public String encodePassword(String rawPass, + Object salt)+
+
encodePassword in interface org.springframework.security.authentication.encoding.PasswordEncoderrawPass - The password to be encoded.salt - The salt, which will be ignored. It can be null.+public boolean isPasswordValid(String encPass, + String rawPass, + Object salt)+
+
isPasswordValid in interface org.springframework.security.authentication.encoding.PasswordEncoderencPass - The encrypted password (digest) against which to check.rawPass - The password to be checked.salt - The salt, which will be ignored. It can be null.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +PasswordEncoder + +PBEPasswordEncoder |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| PasswordEncoder | ++ This class implements the Spring Security 3.x + org.springframework.security.authentication.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. | +
| PBEPasswordEncoder | ++ This class implements the Spring Security 3.x + org.springframework.security.providers.encoding.PasswordEncoder + interface, allowing Spring Security-enabled applications to use JASYPT + for password encryption. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices +
org.jasypt.springsecurity3.authentication.rememberme.TokenBasedRememberMeServices +
public final class TokenBasedRememberMeServices
+
+ Implementation of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
+ which provides a "remember-me" cookie arranged in the same way as
+ org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices, but using a
+ Jasypt StringDigester passed as a parameter for performing the digest of the signature in the cookie
+ (username + ":" + expiry time + ":" + password + ":" + key).
+
+ This class is thread-safe +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices | +
|---|
DEFAULT_PARAMETER, logger, messages, SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY, TWO_WEEKS_S |
+
| +Constructor Summary | +|
|---|---|
TokenBasedRememberMeServices()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+onLoginSuccess(javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response,
+ org.springframework.security.core.Authentication successfulAuthentication)
+
++ |
+
+protected org.springframework.security.core.userdetails.UserDetails |
+processAutoLoginCookie(String[] cookieTokens,
+ javax.servlet.http.HttpServletRequest request,
+ javax.servlet.http.HttpServletResponse response)
+
++ |
+
+ void |
+setDigester(org.jasypt.digest.StringDigester digester)
+
++ |
+
| Methods inherited from class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices | +
|---|
afterPropertiesSet, autoLogin, cancelCookie, createSuccessfulAuthentication, decodeCookie, encodeCookie, extractRememberMeCookie, getAuthenticationDetailsSource, getCookieName, getKey, getParameter, getTokenValiditySeconds, getUserDetailsService, loginFail, loginSuccess, logout, onLoginFail, rememberMeRequested, setAlwaysRemember, setAuthenticationDetailsSource, setCookie, setCookieName, setKey, setParameter, setTokenValiditySeconds, setUserDetailsService, setUseSecureCookie |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public TokenBasedRememberMeServices()+
| +Method Detail | +
|---|
+public void setDigester(org.jasypt.digest.StringDigester digester)+
+protected org.springframework.security.core.userdetails.UserDetails processAutoLoginCookie(String[] cookieTokens, + javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response)+
processAutoLoginCookie in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices+public void onLoginSuccess(javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response, + org.springframework.security.core.Authentication successfulAuthentication)+
onLoginSuccess in class org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +TokenBasedRememberMeServices |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| TokenBasedRememberMeServices | +
+ Implementation of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices
+ which provides a "remember-me" cookie arranged in the same way as
+ org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices, but using a
+ Jasypt StringDigester passed as a parameter for performing the digest of the signature in the cookie
+ (username + ":" + expiry time + ":" + password + ":" + key). |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity3/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity3/overview-summary.html new file mode 100644 index 00000000..6a3fdb6a --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-springsecurity3/overview-summary.html @@ -0,0 +1,165 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.spring.security3 | ++ |
| org.jasypt.springsecurity3.authentication.encoding | ++ |
| org.jasypt.springsecurity3.authentication.rememberme | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| JasyptCrypt
+ +JasyptCrypt + +JasyptCryptFactory + +JasyptCryptFactory + + |
+
| JasyptCrypt
+ +JasyptCrypt + +JasyptCryptFactory + +JasyptCryptFactory + + |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.wicket.JasyptCrypt
+ + Package renamed to org.jasypt.wicket13. This class + will be removed in 1.11. Use JasyptCrypt
+ instead. |
+|
| org.jasypt.wicket.JasyptCryptFactory
+ + Package renamed to org.jasypt.wicket13. This class + will be removed in 1.11. Use JasyptCrypt
+ instead. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
JasyptCrypt
+ instead.ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations.JasyptCrypt
+ instead.ICryptFactory interface
+ which returns JasyptCrypt instances.
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.wicket.JasyptCrypt +
JasyptCrypt
+ instead.
++
public final class JasyptCrypt
+
+ Jasypt's implementation of ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Deprecated. + Creates a new JasyptCrypt object, wrapping the passed + encryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decryptUrlSafe(String text)
+
++ Deprecated. + Decrypts a string using URL and filename safe Base64 decoding. |
+
+ String |
+encryptUrlSafe(String plainText)
+
++ Deprecated. + Encrypts a string using URL and filename safe Base64 encoding. |
+
+ void |
+setKey(String key)
+
++ Deprecated. + Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new JasyptCrypt object, wrapping the passed + encryptor. +
++
encryptor - the PBEByteEncryptor to be used internally.| +Method Detail | +
|---|
+public String decryptUrlSafe(String text)+
+ Decrypts a string using URL and filename safe Base64 decoding. +
++
decryptUrlSafe in interface org.apache.wicket.util.crypt.ICrypttext - the text to be decrypted.
++public String encryptUrlSafe(String plainText)+
+ Encrypts a string using URL and filename safe Base64 encoding. +
++
encryptUrlSafe in interface org.apache.wicket.util.crypt.ICryptplainText - the text to be encrypted.
++public void setKey(String key)+
+ Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. +
++
setKey in interface org.apache.wicket.util.crypt.ICrypt
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.wicket.JasyptCryptFactory +
JasyptCrypt
+ instead.
++
public final class JasyptCryptFactory
+
+ Implementation of the Apache Wicket ICryptFactory interface
+ which returns JasyptCrypt instances.
+
+ Requires a PBEByteEncryptor as a constructor argument, which can
+ be created or retrieved from any part of the jasypt encryption configuration
+ infrastructure.
+
+ +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ Deprecated. + Creates a new instance of JasyptCryptFactory. |
+|
| +Method Summary | +|
|---|---|
+ org.apache.wicket.util.crypt.ICrypt |
+newCrypt()
+
++ Deprecated. + Return a new encryptor object. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new instance of JasyptCryptFactory. +
+
+ This factory uses an instance of PBEByteEncryptor instead of
+ a PBEStringEncryptor (as could be expected) because Wicket
+ requires a specific type of String encoding (URL and file safe
+ BASE64), which is managed by a wicket internal class, and which
+ expectes byte[] input.
+
+
encryptor - the PBEByteEncryptor to be used.| +Method Detail | +
|---|
+public org.apache.wicket.util.crypt.ICrypt newCrypt()+
+ Return a new encryptor object. +
++ This method returns always the same JasyptCrypt object, instead + of creating a new one. +
++
newCrypt in interface org.apache.wicket.util.crypt.ICryptFactory
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +JasyptCrypt + +JasyptCryptFactory |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| JasyptCrypt | +Deprecated. Package renamed to org.jasypt.wicket13. | +
| JasyptCryptFactory | +Deprecated. Package renamed to org.jasypt.wicket13. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.wicket13.JasyptCrypt +
public final class JasyptCrypt
+
+ Jasypt's implementation of ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ + Creates a new JasyptCrypt object, wrapping the passed + encryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decryptUrlSafe(String text)
+
++ + Decrypts a string using URL and filename safe Base64 decoding. |
+
+ String |
+encryptUrlSafe(String plainText)
+
++ + Encrypts a string using URL and filename safe Base64 encoding. |
+
+ void |
+setKey(String key)
+
++ + Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new JasyptCrypt object, wrapping the passed + encryptor. +
++
encryptor - the PBEByteEncryptor to be used internally.| +Method Detail | +
|---|
+public String decryptUrlSafe(String text)+
+ Decrypts a string using URL and filename safe Base64 decoding. +
++
decryptUrlSafe in interface org.apache.wicket.util.crypt.ICrypttext - the text to be decrypted.
++public String encryptUrlSafe(String plainText)+
+ Encrypts a string using URL and filename safe Base64 encoding. +
++
encryptUrlSafe in interface org.apache.wicket.util.crypt.ICryptplainText - the text to be encrypted.
++public void setKey(String key)+
+ Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. +
++
setKey in interface org.apache.wicket.util.crypt.ICrypt
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.wicket13.JasyptCryptFactory +
public final class JasyptCryptFactory
+
+ Implementation of the Apache Wicket ICryptFactory interface
+ which returns JasyptCrypt instances.
+
+ Requires a PBEByteEncryptor as a constructor argument, which can
+ be created or retrieved from any part of the jasypt encryption configuration
+ infrastructure.
+
+ +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ + Creates a new instance of JasyptCryptFactory. |
+|
| +Method Summary | +|
|---|---|
+ org.apache.wicket.util.crypt.ICrypt |
+newCrypt()
+
++ + Return a new encryptor object. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new instance of JasyptCryptFactory. +
+
+ This factory uses an instance of PBEByteEncryptor instead of
+ a PBEStringEncryptor (as could be expected) because Wicket
+ requires a specific type of String encoding (URL and file safe
+ BASE64), which is managed by a wicket internal class, and which
+ expectes byte[] input.
+
+
encryptor - the PBEByteEncryptor to be used.| +Method Detail | +
|---|
+public org.apache.wicket.util.crypt.ICrypt newCrypt()+
+ Return a new encryptor object. +
++ This method returns always the same JasyptCrypt object, instead + of creating a new one. +
++
newCrypt in interface org.apache.wicket.util.crypt.ICryptFactory
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +JasyptCrypt + +JasyptCryptFactory |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| JasyptCrypt | +
+ Jasypt's implementation of ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations. |
+
| JasyptCryptFactory | +
+ Implementation of the Apache Wicket ICryptFactory interface
+ which returns JasyptCrypt instances. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
| All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt-wicket13/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt-wicket13/overview-summary.html new file mode 100644 index 00000000..af92103e --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt-wicket13/overview-summary.html @@ -0,0 +1,161 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.wicket | ++ |
| org.jasypt.wicket13 | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| JasyptCrypt
+ +JasyptCryptFactory + + |
+
| JasyptCrypt
+ +JasyptCryptFactory + + |
+
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations.ICryptFactory interface
+ which returns JasyptCrypt instances.
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +||||||||
+Object ++org.jasypt.wicket15.JasyptCrypt +
public final class JasyptCrypt
+
+ Jasypt's implementation of ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ + Creates a new JasyptCrypt object, wrapping the passed + encryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decryptUrlSafe(String text)
+
++ + Decrypts a string using URL and filename safe Base64 decoding. |
+
+ String |
+encryptUrlSafe(String plainText)
+
++ + Encrypts a string using URL and filename safe Base64 encoding. |
+
+ void |
+setKey(String key)
+
++ + Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCrypt(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new JasyptCrypt object, wrapping the passed + encryptor. +
++
encryptor - the PBEByteEncryptor to be used internally.| +Method Detail | +
|---|
+public String decryptUrlSafe(String text)+
+ Decrypts a string using URL and filename safe Base64 decoding. +
++
decryptUrlSafe in interface org.apache.wicket.util.crypt.ICrypttext - the text to be decrypted.
++public String encryptUrlSafe(String plainText)+
+ Encrypts a string using URL and filename safe Base64 encoding. +
++
encryptUrlSafe in interface org.apache.wicket.util.crypt.ICryptplainText - the text to be encrypted.
++public void setKey(String key)+
+ Important: Using jasypt, it makes no sense to change the encryption + key once the encryptor has been initialized, and so this method is + implemented to throw UnsupportedOperationException always. +
++
setKey in interface org.apache.wicket.util.crypt.ICrypt
+
+
|
++ + | +||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +||||||||
+
+
|
++ + | +||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +||||||||
+Object ++org.jasypt.wicket15.JasyptCryptFactory +
public final class JasyptCryptFactory
+
+ Implementation of the Apache Wicket ICryptFactory interface
+ which returns JasyptCrypt instances.
+
+ Requires a PBEByteEncryptor as a constructor argument, which can
+ be created or retrieved from any part of the jasypt encryption configuration
+ infrastructure.
+
+ +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)
+
++ + Creates a new instance of JasyptCryptFactory. |
+|
| +Method Summary | +|
|---|---|
+ org.apache.wicket.util.crypt.ICrypt |
+newCrypt()
+
++ + Return a new encryptor object. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptCryptFactory(org.jasypt.encryption.pbe.PBEByteEncryptor encryptor)+
+ Creates a new instance of JasyptCryptFactory. +
+
+ This factory uses an instance of PBEByteEncryptor instead of
+ a PBEStringEncryptor (as could be expected) because Wicket
+ requires a specific type of String encoding (URL and file safe
+ BASE64), which is managed by a wicket internal class, and which
+ expectes byte[] input.
+
+
encryptor - the PBEByteEncryptor to be used.| +Method Detail | +
|---|
+public org.apache.wicket.util.crypt.ICrypt newCrypt()+
+ Return a new encryptor object. +
++ This method returns always the same JasyptCrypt object, instead + of creating a new one. +
++
newCrypt in interface org.apache.wicket.util.crypt.ICryptFactory
+
+
|
++ + | +||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
|
+Classes
+
+ +JasyptCrypt + +JasyptCryptFactory |
+
+
+
|
++ + | +||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +||||||||
| +Class Summary | +|
|---|---|
| JasyptCrypt | +
+ Jasypt's implementation of ICrypt, based on the use of a
+ PBEByteEncryptor object for encryption and decryption operations. |
+
| JasyptCryptFactory | +
+ Implementation of the Apache Wicket ICryptFactory interface
+ which returns JasyptCrypt instances. |
+
+
+
+
|
++ + | +||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +org.jasypt.* | +
|---|
+ +
| org.jasypt.commons.CommonUtils | +||
|---|---|---|
+public static final String |
+STRING_OUTPUT_TYPE_BASE64 |
+"base64" |
+
+public static final String |
+STRING_OUTPUT_TYPE_HEXADECIMAL |
+"hexadecimal" |
+
+ +
+ +
| org.jasypt.digest.StandardByteDigester | +||
|---|---|---|
+public static final String |
+DEFAULT_ALGORITHM |
+"MD5" |
+
+public static final int |
+DEFAULT_ITERATIONS |
+1000 |
+
+public static final int |
+DEFAULT_SALT_SIZE_BYTES |
+8 |
+
+ +
+ +
| org.jasypt.digest.StandardStringDigester | +||
|---|---|---|
+public static final String |
+DEFAULT_STRING_OUTPUT_TYPE |
+"base64" |
+
+public static final boolean |
+DEFAULT_UNICODE_NORMALIZATION_IGNORED |
+false |
+
+public static final String |
+DIGEST_CHARSET |
+"US-ASCII" |
+
+public static final String |
+MESSAGE_CHARSET |
+"UTF-8" |
+
+ +
+ +
| org.jasypt.encryption.pbe.StandardPBEByteEncryptor | +||
|---|---|---|
+public static final String |
+DEFAULT_ALGORITHM |
+"PBEWithMD5AndDES" |
+
+public static final int |
+DEFAULT_KEY_OBTENTION_ITERATIONS |
+1000 |
+
+public static final int |
+DEFAULT_SALT_SIZE_BYTES |
+8 |
+
+ +
+ +
| org.jasypt.encryption.pbe.StandardPBEStringEncryptor | +||
|---|---|---|
+public static final String |
+DEFAULT_STRING_OUTPUT_TYPE |
+"base64" |
+
+ +
+ +
| org.jasypt.salt.RandomSaltGenerator | +||
|---|---|---|
+public static final String |
+DEFAULT_SECURE_RANDOM_ALGORITHM |
+"SHA1PRNG" |
+
+ +
+ +
| org.jasypt.util.digest.Digester | +||
|---|---|---|
+public static final String |
+DEFAULT_ALGORITHM |
+"MD5" |
+
+ +
+ +
| org.jasypt.web.pbeconfig.WebPBEInitializationContextListener | +||
|---|---|---|
+public static final String |
+INIT_PARAM_INITIALIZER_CLASS_NAME |
+"webPBEInitializerClassName" |
+
+ +
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Deprecated Classes | +|
|---|---|
| org.jasypt.salt.FixedByteArraySaltGenerator
+ + Deprecated in 1.9.2 in favour of ByteArrayFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0). |
+|
| org.jasypt.salt.FixedStringSaltGenerator
+ + Deprecated in 1.9.2 in favour of StringFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0). |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
FixedSaltGenerator, that will
+ always return the same salt.StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects.StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the .properties file.StringEncryptor object to decrypt encrypted values.
+TextEncryptor object to decrypt encrypted values.
+StringEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values).
+TextEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values).
+DigesterConfig which can retrieve configuration
+ values from environment variables or system properties.PBEConfig which can retrieve configuration
+ values from environment variables or system properties.StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties.StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties.ByteArrayFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0).SaltGenerator that
+ will always return the same salt (for the same amount of bytes asked).StringFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0).Hashtable#get(Object)), decrypting it if needed.
+EncryptionOperationNotPossibleException
+ if not).
+Properties.getProperty(String)), decrypting it if needed.
+Properties.getProperty(String)), decrypting it if needed.
+SaltGenerator implementation to be used by the digester.
+SaltGenerator implementation to be used by the
+ encryptor.
+EncryptionOperationNotPossibleException
+ if not).
+WebPBEInitializationContextListener at
+ application deploy time for initialization of jasypt encryptors.
+StandardPBEByteEncryptor,
+ StandardPBEStringEncryptor,
+ StandardPBEBigIntegerEncryptor or
+ StandardPBEBigDecimalEncryptor objects.ByteDigester that in fact contains
+ an array of StandardByteDigester objects which are used
+ to attend digest and match requests in round-robin.PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin.PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin.PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin.PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin.StringDigester that in fact contains
+ an array of StandardStringDigester objects which are used
+ to attend digest and match requests in round-robin.SaltGenerator holds a secure random
+ generator which can be used for generating random salts for encryption
+ or digesting.DigesterConfig object
+ for the digester.
+DigesterConfig
+ or StringDigesterConfig object
+ for the digester.
+DigesterConfig object
+ for the digester.
+DigesterConfig
+ or StringDigesterConfig object
+ for the digester.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+PBEConfig object
+ for the encryptor.
+DigesterConfig
+ object, like if he/she were using a StandardStringDigester object
+ directly.
+MessageDigest), or rather use the
+ jasypt's usual stronger mechanism for password encryption (based
+ on the use of a salt and the iteration of the hash function).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+EncryptionOperationNotPossibleException if not).
+DigesterConfig.PBEConfig.StringDigesterConfig.StringPBEConfig.ByteDigester interface.PBEBigDecimalEncryptor interface.PBEBigIntegerEncryptor interface.PBEByteEncryptor interface.PBEStringEncryptor interface.StringDigester interface.StandardStringDigester objects.FixedSaltGenerator, that will
+ always return the same salt.StandardPBEStringEncryptor objects.PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time.WebPBEConfig objects.WebPBEInitializer implementation
+ class name as a parameter (<context-param>) and calls its
+ initializeWebPBEConfigs() method to allow the webapp to
+ create its PBE encryptors and declare their associated WebPBEConfig
+ objects.StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time.SaltGenerator always returns a salt
+ of the required length, filled with zero bytes.
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
+
+Link toNon-frame version.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.commons.CommonUtils +
public final class CommonUtils
+
+ Common utils regarding treatment of parameter values and encoding operations. + This class is for internal use only. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+STRING_OUTPUT_TYPE_BASE64
+
++ |
+
+static String |
+STRING_OUTPUT_TYPE_HEXADECIMAL
+
++ |
+
| +Method Summary | +|
|---|---|
+static byte[] |
+appendArrays(byte[] firstArray,
+ byte[] secondArray)
+
++ |
+
+static byte[] |
+fromHexadecimal(String message)
+
++ |
+
+static Boolean |
+getStandardBooleanValue(String valueStr)
+
++ |
+
+static String |
+getStandardStringOutputType(String valueStr)
+
++ |
+
+static boolean |
+isEmpty(String string)
+
++ |
+
+static boolean |
+isNotEmpty(String string)
+
++ |
+
+static int |
+nextRandomInt()
+
++ |
+
+static String[] |
+split(String string)
+
++ |
+
+static String[] |
+split(String string,
+ String separators)
+
++ |
+
+static String |
+substringAfter(String string,
+ String separator)
+
++ |
+
+static String |
+substringBefore(String string,
+ String separator)
+
++ |
+
+static String |
+toHexadecimal(byte[] message)
+
++ |
+
+static void |
+validateIsTrue(boolean expression,
+ String message)
+
++ |
+
+static void |
+validateNotEmpty(String string,
+ String message)
+
++ |
+
+static void |
+validateNotNull(Object object,
+ String message)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String STRING_OUTPUT_TYPE_BASE64+
+public static final String STRING_OUTPUT_TYPE_HEXADECIMAL+
| +Method Detail | +
|---|
+public static Boolean getStandardBooleanValue(String valueStr)+
+public static String getStandardStringOutputType(String valueStr)+
+public static String toHexadecimal(byte[] message)+
+public static byte[] fromHexadecimal(String message)+
+public static boolean isEmpty(String string)+
+public static boolean isNotEmpty(String string)+
+public static void validateNotNull(Object object, + String message)+
+public static void validateNotEmpty(String string, + String message)+
+public static void validateIsTrue(boolean expression, + String message)+
+public static String[] split(String string)+
+public static String[] split(String string, + String separators)+
+public static String substringBefore(String string, + String separator)+
+public static String substringAfter(String string, + String separator)+
+public static int nextRandomInt()+
+public static byte[] appendArrays(byte[] firstArray, + byte[] secondArray)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +CommonUtils |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| CommonUtils | ++ Common utils regarding treatment of parameter values and encoding operations. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface ByteDigester
+
+ Common interface for all digesters which receive a byte array message and + return a byte array digest. +
+
+ For a default implementation, see StandardByteDigester.
+
+ +
+
| +Method Summary | +|
|---|---|
+ byte[] |
+digest(byte[] message)
+
++ + Create a digest of the input message. |
+
+ boolean |
+matches(byte[] message,
+ byte[] digest)
+
++ + Check whether a message matches a digest, managing aspects like + salt, hashing iterations, etc. |
+
| +Method Detail | +
|---|
+byte[] digest(byte[] message)+
+ Create a digest of the input message. +
++
message - the message to be digested
++boolean matches(byte[] message, + byte[] digest)+
+ Check whether a message matches a digest, managing aspects like + salt, hashing iterations, etc. (if applicable). +
++
message - the message to checkdigest - the digest to check
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.PooledByteDigester +
public class PooledByteDigester
+
+ Pooled implementation of ByteDigester that in fact contains
+ an array of StandardByteDigester objects which are used
+ to attend digest and match requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardByteDigester.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledByteDigester()
+
++ Creates a new instance of PooledStandardByteDigester. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+digest(byte[] message)
+
++ + Performs a digest operation on a byte array message. |
+
+ void |
+initialize()
+
++ + Initialize the digester. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the digester has already been initialized, false if + not. + Initialization happens: |
+
+ boolean |
+matches(byte[] message,
+ byte[] digest)
+
++ + Checks a message against a given digest. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig object
+ for the digester. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setIterations(int iterations)
+
++ + Set the number of times the hash function will be applied recursively. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size of the salt to be used to compute the digest. |
+
+ void |
+setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledByteDigester()+
+
| +Method Detail | +
|---|
+public void setConfig(DigesterConfig config)+
+ Sets a DigesterConfig object
+ for the digester. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the DigesterConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
+ ++ If salt size is set to zero, then no salt will be used. +
++
saltSizeBytes - the size of the salt to be used, in bytes.+public void setIterations(int iterations)+
+ Set the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
iterations - the number of iterations.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)+
+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of salt before message) will be applied. +
++
invertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)+
+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of plain salt before digest result) will be applied. +
++
invertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)+
+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If this parameter is not explicitly set, the default behaviour + (NOT lenient) will be applied. +
++
useLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the digester has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once a digester has been initialized, trying to + change its configuration (algorithm, provider, salt size, iterations + or salt generator) will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the digester. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the digester with them.
+
+ These values are decided by applying the following priorities:
+
DigesterConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once a digester has been initialized, trying to + change its configuration will result in an + AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public byte[] digest(byte[] message)+
+ Performs a digest operation on a byte array message. +
++ The steps taken for creating the digest are: +
SaltGenerator).SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ If a random salt generator is used, two digests created for the same + message will always be different + (except in the case of random salt coincidence). + Because of this, in this case the result of the digest method + will contain both the undigested salt and the digest of the + (salt + message), so that another digest operation can be performed + with the same salt on a different message to check if both messages + match (all of which will be managed automatically by the + matches method). +
++
digest in interface ByteDigestermessage - the byte array to be digested
+EncryptionOperationNotPossibleException - if the digest operation
+ fails, ommitting any further information about the cause for
+ security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public boolean matches(byte[] message, + byte[] digest)+
+ Checks a message against a given digest. +
++ This method tells whether a message corresponds to a specific digest + or not by getting the salt with which the digest was created and + applying it to a digest operation performed on the message. If + new and existing digest match, the message is said to match the digest. +
++ This method will be used, for instance, for password checking in + authentication processes. +
++ A null message will only match a null digest. +
++
matches in interface ByteDigestermessage - the message to be compared to the digest.digest - the digest.
+EncryptionOperationNotPossibleException - if the digest matching
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.PooledStringDigester +
public class PooledStringDigester
+
+ Pooled implementation of StringDigester that in fact contains
+ an array of StandardStringDigester objects which are used
+ to attend digest and match requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardStringDigester.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledStringDigester()
+
++ Creates a new instance of PooledStandardStringDigester. |
+|
| +Method Summary | +|
|---|---|
+ String |
+digest(String message)
+
++ + Performs a digest operation on a String message. |
+
+ void |
+initialize()
+
++ + Initialize the digester. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the digester has already been initialized, false if + not. + Initialization happens: |
+
+ boolean |
+matches(String message,
+ String digest)
+
++ + Checks a message against a given digest. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setIterations(int iterations)
+
++ + Set the number of times the hash function will be applied recursively. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setPrefix(String prefix)
+
++ + Sets the prefix to be added at the beginning of encryption results, and also to + be expected at the beginning of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size of the salt to be used to compute the digest. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
+ void |
+setSuffix(String suffix)
+
++ + Sets the suffix to be added at the end of encryption results, and also to + be expected at the end of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setUnicodeNormalizationIgnored(boolean unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
+ void |
+setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledStringDigester()+
+
| +Method Detail | +
|---|
+public void setConfig(DigesterConfig config)+
+ Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the DigesterConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
+ ++ If salt size is set to zero, then no salt will be used. +
++
saltSizeBytes - the size of the salt to be used, in bytes.+public void setIterations(int iterations)+
+ Set the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
iterations - the number of iterations.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)+
+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of salt before message) will be applied. +
++
invertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)+
+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of plain salt before digest result) will be applied. +
++
invertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)+
+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If this parameter is not explicitly set, the default behaviour + (NOT lenient) will be applied. +
++
useLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public void setUnicodeNormalizationIgnored(boolean unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public void setPrefix(String prefix)+
+ Sets the prefix to be added at the beginning of encryption results, and also to
+ be expected at the beginning of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ By default, no prefix will be added to encryption results. +
++
prefix - the prefix to be set+public void setSuffix(String suffix)+
+ Sets the suffix to be added at the end of encryption results, and also to
+ be expected at the end of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ By default, no suffix will be added to encryption results. +
++
suffix - the suffix to be set+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the digester has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once a digester has been initialized, trying to + change its configuration (algorithm, provider, salt size, iterations + or salt generator) will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the digester. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the digester with them.
+
+ These values are decided by applying the following priorities:
+
DigesterConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once a digester has been initialized, trying to + change its configuration will result in an + AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public String digest(String message)+
+ Performs a digest operation on a String message. +
++ The steps taken for creating the digest are: +
SaltGenerator).SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ If a random salt generator is used, two digests created for the same + message will always be different + (except in the case of random salt coincidence). + Because of this, in this case the result of the digest method + will contain both the undigested salt and the digest of the + (salt + message), so that another digest operation can be performed + with the same salt on a different message to check if both messages + match (all of which will be managed automatically by the + matches method). +
++
digest in interface StringDigestermessage - the String to be digested
+EncryptionOperationNotPossibleException - if the digest operation
+ fails, ommitting any further information about the cause for
+ security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public boolean matches(String message, + String digest)+
+ Checks a message against a given digest. +
++ This method tells whether a message corresponds to a specific digest + or not by getting the salt with which the digest was created and + applying it to a digest operation performed on the message. If + new and existing digest match, the message is said to match the digest. +
++ This method will be used, for instance, for password checking in + authentication processes. +
++ A null message will only match a null digest. +
++
matches in interface StringDigestermessage - the message to be compared to the digest.digest - the digest.
+EncryptionOperationNotPossibleException - if the digest matching
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.StandardByteDigester +
public final class StandardByteDigester
+
+ Standard implementation of the ByteDigester interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ creating digests, the size of the salt to be applied,
+ the number of times the hash function will be applied (iterations) and
+ the salt generator to be used.
+
+ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, salt size iterations and salt generator + can take values in any of these ways: +
DigesterConfig
+ object which provides new
+ configuration values.DigesterConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.
+
Initialization
+
+ Before it is ready to create digests, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ A digester may be used in two different ways: +
SaltGenerator). If salt size is zero, no salt will be
+ used.SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ To learn more about the mechanisms involved in digest creation, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_ALGORITHM
+
++ Default digest algorithm will be MD5 |
+
+static int |
+DEFAULT_ITERATIONS
+
++ The minimum recommended iterations for hashing are 1000 |
+
+static int |
+DEFAULT_SALT_SIZE_BYTES
+
++ The minimum recommended size for salt is 8 bytes |
+
| +Constructor Summary | +|
|---|---|
StandardByteDigester()
+
++ Creates a new instance of StandardByteDigester. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+digest(byte[] message)
+
++ + Performs a digest operation on a byte array message. |
+
+ void |
+initialize()
+
++ + Initialize the digester. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the digester has already been initialized, false if + not. + Initialization happens: |
+
+ boolean |
+matches(byte[] message,
+ byte[] digest)
+
++ + Checks a message against a given digest. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig object
+ for the digester. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setIterations(int iterations)
+
++ + Set the number of times the hash function will be applied recursively. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size of the salt to be used to compute the digest. |
+
+ void |
+setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String DEFAULT_ALGORITHM+
+
+public static final int DEFAULT_SALT_SIZE_BYTES+
+
+public static final int DEFAULT_ITERATIONS+
+
| +Constructor Detail | +
|---|
+public StandardByteDigester()+
+
| +Method Detail | +
|---|
+public void setConfig(DigesterConfig config)+
+ Sets a DigesterConfig object
+ for the digester. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the DigesterConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
+ ++ If salt size is set to zero, then no salt will be used. +
++
saltSizeBytes - the size of the salt to be used, in bytes.+public void setIterations(int iterations)+
+ Set the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
iterations - the number of iterations.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)+
+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of salt before message) will be applied. +
++
invertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)+
+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of plain salt before digest result) will be applied. +
++
invertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)+
+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If this parameter is not explicitly set, the default behaviour + (NOT lenient) will be applied. +
++
useLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public boolean isInitialized()+
+ Returns true if the digester has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once a digester has been initialized, trying to + change its configuration (algorithm, provider, salt size, iterations + or salt generator) will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the digester. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the digester with them.
+
+ These values are decided by applying the following priorities:
+
DigesterConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once a digester has been initialized, trying to + change its configuration will result in an + AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public byte[] digest(byte[] message)+
+ Performs a digest operation on a byte array message. +
++ The steps taken for creating the digest are: +
SaltGenerator).SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ If a random salt generator is used, two digests created for the same + message will always be different + (except in the case of random salt coincidence). + Because of this, in this case the result of the digest method + will contain both the undigested salt and the digest of the + (salt + message), so that another digest operation can be performed + with the same salt on a different message to check if both messages + match (all of which will be managed automatically by the + matches method). +
++
digest in interface ByteDigestermessage - the byte array to be digested
+EncryptionOperationNotPossibleException - if the digest operation
+ fails, ommitting any further information about the cause for
+ security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public boolean matches(byte[] message, + byte[] digest)+
+ Checks a message against a given digest. +
++ This method tells whether a message corresponds to a specific digest + or not by getting the salt with which the digest was created and + applying it to a digest operation performed on the message. If + new and existing digest match, the message is said to match the digest. +
++ This method will be used, for instance, for password checking in + authentication processes. +
++ A null message will only match a null digest. +
++
matches in interface ByteDigestermessage - the message to be compared to the digest.digest - the digest.
+EncryptionOperationNotPossibleException - if the digest matching
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.StandardStringDigester +
public final class StandardStringDigester
+
+ Standard implementation of the StringDigester interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ creating digests, the size of the salt to be applied,
+ the number of times the hash function will be applied (iterations) and
+ the salt generator to be used.
+
+ This class avoids byte-conversion problems related to the fact of + different platforms having different default charsets, and returns + digests in the form of BASE64-encoded or HEXADECIMAL ASCII Strings. +
++ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, salt size, iterations and salt generator can take values + in any of these ways: +
DigesterConfig
+ object which provides new
+ configuration values.DigesterConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.
+
Initialization
+
+ Before it is ready to create digests, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ A digester may be used in two different ways: +
SaltGenerator).SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ To learn more about the mechanisms involved in digest creation, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_STRING_OUTPUT_TYPE
+
++ + Default type of String output. |
+
+static boolean |
+DEFAULT_UNICODE_NORMALIZATION_IGNORED
+
++ + Whether the Unicode normalization step should be ignored because of + legacy-compatibility issues. |
+
+static String |
+DIGEST_CHARSET
+
++ + Charset to be used for encoding the resulting digests. |
+
+static String |
+MESSAGE_CHARSET
+
++ + Charset to be used to obtain "digestable" byte arrays from input Strings. |
+
| +Constructor Summary | +|
|---|---|
StandardStringDigester()
+
++ Creates a new instance of StandardStringDigester. |
+|
| +Method Summary | +|
|---|---|
+ String |
+digest(String message)
+
++ + Performs a digest operation on a String message. |
+
+ void |
+initialize()
+
++ + Initialize the digester. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the digester has already been initialized, false if + not. + Initialization happens: |
+
+ boolean |
+matches(String message,
+ String digest)
+
++ + Checks a message against a given digest. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setIterations(int iterations)
+
++ + Set the number of times the hash function will be applied recursively. |
+
+ void |
+setPrefix(String prefix)
+
++ + Sets the prefix to be added at the beginning of encryption results, and also to + be expected at the beginning of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size of the salt to be used to compute the digest. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
+ void |
+setSuffix(String suffix)
+
++ + Sets the suffix to be added at the end of encryption results, and also to + be expected at the end of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setUnicodeNormalizationIgnored(boolean unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
+ void |
+setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String MESSAGE_CHARSET+
+ Charset to be used to obtain "digestable" byte arrays from input Strings. + Set to UTF-8. +
++ This charset has to be fixed to some value so that we avoid problems + with different platforms having different "default" charsets. +
++ It is set to UTF-8 because it covers the whole spectrum of characters + representable in Java (which internally uses UTF-16), and avoids the + size penalty of UTF-16 (which will always use two bytes for representing + each character, even if it is an ASCII one). +
++ Setting this value to UTF-8 does not mean that Strings that originally + come for, for example, an ISO-8859-1 input, will not be correcly + digested. It simply provides a way of "fixing" the way a String will + be converted into bytes for digesting. +
++
+public static final String DIGEST_CHARSET+
+ Charset to be used for encoding the resulting digests. + Set to US-ASCII. +
++ The result of digesting some bytes can be any other bytes, and so + the result of digesting, for example, some LATIN-1 valid String bytes, + can be bytes that may not conform a "valid" LATIN-1 String. +
++ Because of this, digests are always encoded in BASE64 or + HEXADECIMAL after + being created, and this ensures that the + digests will make perfectly representable, safe ASCII Strings. Because + of this, the charset used to convert the digest bytes to the returned + String is set to US-ASCII. +
++
+public static final boolean DEFAULT_UNICODE_NORMALIZATION_IGNORED+
+ Whether the Unicode normalization step should be ignored because of + legacy-compatibility issues. Defaults to FALSE (the normalization + step WILL be performed). +
++
+public static final String DEFAULT_STRING_OUTPUT_TYPE+
+ Default type of String output. Set to BASE64. +
++
| +Constructor Detail | +
|---|
+public StandardStringDigester()+
+
| +Method Detail | +
|---|
+public void setConfig(DigesterConfig config)+
+ Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the DigesterConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
+ ++ If salt size is set to zero, then no salt will be used. +
++
saltSizeBytes - the size of the salt to be used, in bytes.+public void setIterations(int iterations)+
+ Set the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
iterations - the number of iterations.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setInvertPositionOfSaltInMessageBeforeDigesting(boolean invertPositionOfSaltInMessageBeforeDigesting)+
+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of salt before message) will be applied. +
++
invertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setInvertPositionOfPlainSaltInEncryptionResults(boolean invertPositionOfPlainSaltInEncryptionResults)+
+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If this parameter is not explicitly set, the default behaviour + (insertion of plain salt before digest result) will be applied. +
++
invertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setUseLenientSaltSizeCheck(boolean useLenientSaltSizeCheck)+
+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If this parameter is not explicitly set, the default behaviour + (NOT lenient) will be applied. +
++
useLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public void setUnicodeNormalizationIgnored(boolean unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public void setPrefix(String prefix)+
+ Sets the prefix to be added at the beginning of encryption results, and also to
+ be expected at the beginning of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ By default, no prefix will be added to encryption results. +
++
prefix - the prefix to be set+public void setSuffix(String suffix)+
+ Sets the suffix to be added at the end of encryption results, and also to
+ be expected at the end of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ By default, no suffix will be added to encryption results. +
++
suffix - the suffix to be set+public boolean isInitialized()+
+ Returns true if the digester has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once a digester has been initialized, trying to + change its configuration will result in an + AlreadyInitializedException + being thrown. +
++
+public void initialize()+
+ Initialize the digester. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the digester with them.
+
+ These values are decided by applying the following priorities:
+
DigesterConfig object
+ has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once a digester has been initialized, trying to + change its configuration will result in an + AlreadyInitializedException + being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public String digest(String message)+
+ Performs a digest operation on a String message. +
++ The steps taken for creating the digest are: +
SaltGenerator).SaltGenerator.includePlainSaltInEncryptionResults()),
+ the undigested salt and the final result of the hash
+ function are concatenated and returned as a result.+ If a random salt generator is used, two digests created for the same + message will always be different + (except in the case of random salt coincidence). + Because of this, in this case the result of the digest method + will contain both the undigested salt and the digest of the + (salt + message), so that another digest operation can be performed + with the same salt on a different message to check if both messages + match (all of which will be managed automatically by the + matches method). +
++
digest in interface StringDigestermessage - the String to be digested
+EncryptionOperationNotPossibleException - if the digest operation
+ fails, ommitting any further information about the cause for
+ security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).+public boolean matches(String message, + String digest)+
+ Checks a message against a given digest. +
++ This method tells whether a message corresponds to a specific digest + or not by getting the salt with which the digest was created and + applying it to a digest operation performed on the message. If + new and existing digest match, the message is said to match the digest. +
++ This method will be used, for instance, for password checking in + authentication processes. +
++ A null message will only match a null digest. +
++
matches in interface StringDigestermessage - the message to be compared to the digest.digest - the digest.
+EncryptionOperationNotPossibleException - if the digest matching
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, if the digest algorithm chosen
+ cannot be used).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface StringDigester
+
+ Common interface for all digesters which receive a String message and + return a String digest. +
+
+ For a default implementation, see StandardStringDigester.
+
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+digest(String message)
+
++ + Create a digest of the input message. |
+
+ boolean |
+matches(String message,
+ String digest)
+
++ + Check whether a message matches a digest, managing aspects like + salt, hashing iterations, etc. |
+
| +Method Detail | +
|---|
+String digest(String message)+
+ Create a digest of the input message. +
++
message - the message to be digested
++boolean matches(String message, + String digest)+
+ Check whether a message matches a digest, managing aspects like + salt, hashing iterations, etc. (if applicable). +
++
message - the message to checkdigest - the digest to check
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ByteDigester | +|
|---|---|
| org.jasypt.digest | ++ |
| +Uses of ByteDigester in org.jasypt.digest | +
|---|
+ +
| Classes in org.jasypt.digest that implement ByteDigester | +|
|---|---|
+ class |
+PooledByteDigester
+
++ + Pooled implementation of ByteDigester that in fact contains
+ an array of StandardByteDigester objects which are used
+ to attend digest and match requests in round-robin. |
+
+ class |
+StandardByteDigester
+
++ + Standard implementation of the ByteDigester interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use StringDigester | +|
|---|---|
| org.jasypt.digest | ++ |
| +Uses of StringDigester in org.jasypt.digest | +
|---|
+ +
| Classes in org.jasypt.digest that implement StringDigester | +|
|---|---|
+ class |
+PooledStringDigester
+
++ + Pooled implementation of StringDigester that in fact contains
+ an array of StandardStringDigester objects which are used
+ to attend digest and match requests in round-robin. |
+
+ class |
+StandardStringDigester
+
++ + Standard implementation of the StringDigester interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface DigesterConfig
+
+ Common interface for config classes applicable to
+ StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects.
+
+ This interface lets the user create new DigesterConfig + classes which retrieve values for this parameters from different + (and maybe more secure) sources (remote servers, LDAP, other databases...), + and do this transparently for the digester object. +
++ The config objects passed to a digester will only be queried once + for each configuration parameter, and this will happen + during the initialization of the digester object. +
+
+ For a default implementation, see SimpleDigesterConfig.
+
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getAlgorithm()
+
++ + Returns the name of an algorithm to be used for hashing, like "MD5" or + "SHA-1". |
+
+ Boolean |
+getInvertPositionOfPlainSaltInEncryptionResults()
+
++ + Returns Boolean.TRUE if the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ Boolean |
+getInvertPositionOfSaltInMessageBeforeDigesting()
+
++ + Returns Boolean.TRUE if the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ Integer |
+getIterations()
+
++ + Returns the number of times the hash function will be applied recursively. |
+
+ Integer |
+getPoolSize()
+
++ + Get the size of the pool of digesters to be created. |
+
+ java.security.Provider |
+getProvider()
+
++ + Returns the java.security.Provider implementation object + to be used by the digester for obtaining the digest algorithm. |
+
+ String |
+getProviderName()
+
++ + Returns the name of the java.security.Provider implementation + to be used by the digester for obtaining the digest algorithm. |
+
+ SaltGenerator |
+getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the digester. |
+
+ Integer |
+getSaltSizeBytes()
+
++ + Returns the size of the salt to be used to compute the digest. |
+
+ Boolean |
+getUseLenientSaltSizeCheck()
+
++ + Returns Boolean.TRUE if digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| +Method Detail | +
|---|
+String getAlgorithm()+
+ Returns the name of an algorithm to be used for hashing, like "MD5" or + "SHA-1". +
++ This algorithm has to be supported by your Java Virtual Machine, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
++ If this method returns null, the digester will ignore the config object + when deciding the algorithm to be used. +
++
+Integer getSaltSizeBytes()+
+ Returns the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++ If salt size is set to zero, then no salt will be used. +
++ If this method returns null, the digester will ignore the config object + when deciding the size of the salt to be used. +
++
+Integer getIterations()+
+ Returns the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++ If this method returns null, the digester will ignore the config object + when deciding the number of hashing iterations. +
++
+SaltGenerator getSaltGenerator()+
+ Returns a SaltGenerator implementation to be used by the digester.
+
+ If this method returns null, the digester will ignore the config object + when deciding the salt generator to be used. +
++
+String getProviderName()+
+ Returns the name of the java.security.Provider implementation + to be used by the digester for obtaining the digest algorithm. This + provider must have been registered beforehand. +
++ If this method returns null, the digester will ignore this parameter + when deciding the name of the security provider to be used. +
+
+ If this method does not return null, and neither does getProvider(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+
+java.security.Provider getProvider()+
+ Returns the java.security.Provider implementation object + to be used by the digester for obtaining the digest algorithm. +
++ If this method returns null, the digester will ignore this parameter + when deciding the security provider object to be used. +
+
+ If this method does not return null, and neither does getProviderName(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+ The provider returned by this method does not need to be + registered beforehand, and its use will not result in its + being registered. +
++
+Boolean getInvertPositionOfSaltInMessageBeforeDigesting()+
+ Returns Boolean.TRUE if the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++
+Boolean getInvertPositionOfPlainSaltInEncryptionResults()+
+ Returns Boolean.TRUE if the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++
+Boolean getUseLenientSaltSizeCheck()+
+ Returns Boolean.TRUE if digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ Default is FALSE. +
++
+Integer getPoolSize()+
+ Get the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.config.SimpleDigesterConfig +
org.jasypt.digest.config.EnvironmentDigesterConfig +
public class EnvironmentDigesterConfig
+
+ Implementation for DigesterConfig which can retrieve configuration
+ values from environment variables or system properties.
+
+ The name of the environment variable or system property (JVM property) to + query for each parameter can be set with its corresponding + setXEnvName or setXSysProperty method. +
+
+ As this class extends SimpleDigesterConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its value is not configured + in any way, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
EnvironmentDigesterConfig()
+
++ + Creates a new EnvironmentDigesterConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getAlgorithmEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the algorithm. |
+
+ String |
+getAlgorithmSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the algorithm. |
+
+ String |
+getInvertPositionOfPlainSaltInEncryptionResultsEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the value for the invertPositionOfPlainSaltInEncryptionResults + property. |
+
+ String |
+getInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the value for the invertPositionOfPlainSaltInEncryptionResults + property. |
+
+ String |
+getInvertPositionOfSaltInMessageBeforeDigestingEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting + property. |
+
+ String |
+getInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the value for the invertPositionOfSaltInMessageBeforeDigesting + property. |
+
+ String |
+getIterationsEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the iteration count. |
+
+ String |
+getIterationsSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the iteration count. |
+
+ String |
+getPoolSizeEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the value for the poolSize + property. |
+
+ String |
+getPoolSizeSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the value for the poolSize + property. |
+
+ String |
+getProviderClassNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the provider class name. |
+
+ String |
+getProviderClassNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the provider class name. |
+
+ String |
+getProviderNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the provider name. |
+
+ String |
+getProviderNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the provider name. |
+
+ String |
+getSaltGeneratorClassNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the salt generator class name. |
+
+ String |
+getSaltGeneratorClassNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the salt generator class name. |
+
+ String |
+getSaltSizeBytesEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the salt size in bytes. |
+
+ String |
+getSaltSizeBytesSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the salt size in bytes. |
+
+ String |
+getUseLenientSaltSizeCheckEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the value for the useLenientSaltSizeCheck + property. |
+
+ String |
+getUseLenientSaltSizeCheckSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the value for the useLenientSaltSizeCheck + property. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the name of the algorithm. |
+
+ void |
+setAlgorithmEnvName(String algorithmEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the algorithm. |
+
+ void |
+setAlgorithmSysPropertyName(String algorithmSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the algorithm. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResultsEnvName(String invertPositionOfPlainSaltInEncryptionResultsEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the invertPositionOfPlainSaltInEncryptionResults + property. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName(String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the invertPositionOfPlainSaltInEncryptionResults + property. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigestingEnvName(String invertPositionOfSaltInMessageBeforeDigestingEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the invertPositionOfSaltInMessageBeforeDigesting + property. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName(String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the invertPositionOfSaltInMessageBeforeDigesting + property. |
+
+ void |
+setIterations(Integer iterations)
+
++ + Sets the number of hashing iterations. |
+
+ void |
+setIterations(String iterations)
+
++ + Sets the number of hashing iterations. |
+
+ void |
+setIterationsEnvName(String iterationsEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the iteration count. |
+
+ void |
+setIterationsSysPropertyName(String iterationsSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the iteration count. |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setPoolSize(String poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setPoolSizeEnvName(String poolSizeEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the poolSize + property. |
+
+ void |
+setPoolSizeSysPropertyName(String poolSizeSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be used for obtaining the digest + algorithm. |
+
+ void |
+setProviderClassName(String providerClassName)
+
++ + Sets the class name for the security provider to be used for + obtaining the digest algorithm. |
+
+ void |
+setProviderClassNameEnvName(String providerClassNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the provider class name. |
+
+ void |
+setProviderClassNameSysPropertyName(String providerClassNameSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the provider class name. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the digest + algorithm. |
+
+ void |
+setProviderNameEnvName(String providerNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the provider name. |
+
+ void |
+setProviderNameSysPropertyName(String providerNameSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the provider name. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
+ void |
+setSaltGeneratorClassName(String saltGeneratorClassName)
+
++ + Sets the class name of the salt generator. |
+
+ void |
+setSaltGeneratorClassNameEnvName(String saltGeneratorClassNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the salt generator class name. |
+
+ void |
+setSaltGeneratorClassNameSysPropertyName(String saltGeneratorClassNameSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the salt generator class name. |
+
+ void |
+setSaltSizeBytes(Integer saltSizeBytes)
+
++ + Size in bytes of the salt to be used. |
+
+ void |
+setSaltSizeBytes(String saltSizeBytes)
+
++ + Size in bytes of the salt to be used. |
+
+ void |
+setSaltSizeBytesEnvName(String saltSizeBytesEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the salt size in bytes. |
+
+ void |
+setSaltSizeBytesSysPropertyName(String saltSizeBytesSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the salt size in bytes. |
+
+ void |
+setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
+ void |
+setUseLenientSaltSizeCheckEnvName(String useLenientSaltSizeCheckEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the useLenientSaltSizeCheck + property. |
+
+ void |
+setUseLenientSaltSizeCheckSysPropertyName(String useLenientSaltSizeCheckSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. |
+
| Methods inherited from class org.jasypt.digest.config.SimpleDigesterConfig | +
|---|
getAlgorithm, getInvertPositionOfPlainSaltInEncryptionResults, getInvertPositionOfSaltInMessageBeforeDigesting, getIterations, getPoolSize, getProvider, getProviderName, getSaltGenerator, getSaltSizeBytes, getUseLenientSaltSizeCheck |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EnvironmentDigesterConfig()+
+ Creates a new EnvironmentDigesterConfig instance. +
++
| +Method Detail | +
|---|
+public String getAlgorithmEnvName()+
+
+public void setAlgorithmEnvName(String algorithmEnvName)+
+
algorithmEnvName - the name of the environment variable+public String getAlgorithmSysPropertyName()+
+
+public void setAlgorithmSysPropertyName(String algorithmSysPropertyName)+
+
algorithmSysPropertyName - the name of the property+public String getIterationsEnvName()+
+
+public void setIterationsEnvName(String iterationsEnvName)+
+
iterationsEnvName - the name of the environment variable+public String getIterationsSysPropertyName()+
+
+public void setIterationsSysPropertyName(String iterationsSysPropertyName)+
+
iterationsSysPropertyName - the name of the property+public String getSaltSizeBytesEnvName()+
+
+public void setSaltSizeBytesEnvName(String saltSizeBytesEnvName)+
+
saltSizeBytesEnvName - the name of the environment variable+public String getSaltSizeBytesSysPropertyName()+
+
+public void setSaltSizeBytesSysPropertyName(String saltSizeBytesSysPropertyName)+
+
saltSizeBytesSysPropertyName - the name of the property+public String getSaltGeneratorClassNameEnvName()+
+
+public void setSaltGeneratorClassNameEnvName(String saltGeneratorClassNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the salt generator class name. +
++ The salt generator class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the digester. +
++
saltGeneratorClassNameEnvName - the name of the environment variable+public String getSaltGeneratorClassNameSysPropertyName()+
+
+public void setSaltGeneratorClassNameSysPropertyName(String saltGeneratorClassNameSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the salt generator class name. +
++ The salt generator class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the digester. +
++
saltGeneratorClassNameSysPropertyName - the name of the property+public String getProviderNameEnvName()+
+
+public void setProviderNameEnvName(String providerNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the provider name. +
++
providerNameEnvName - the name of the environment variable+public String getProviderNameSysPropertyName()+
+
+public void setProviderNameSysPropertyName(String providerNameSysPropertyName)+
+
providerNameSysPropertyName - the name of the property+public String getProviderClassNameEnvName()+
+
+public void setProviderClassNameEnvName(String providerClassNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the provider class name. +
++ The provider class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the digester. +
++
providerClassNameEnvName - the name of the environment variable+public String getProviderClassNameSysPropertyName()+
+
+public void setProviderClassNameSysPropertyName(String providerClassNameSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the provider class name. +
++ The provider class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the digester. +
++
providerClassNameSysPropertyName - the name of the property+public String getInvertPositionOfSaltInMessageBeforeDigestingEnvName()+
+
+public void setInvertPositionOfSaltInMessageBeforeDigestingEnvName(String invertPositionOfSaltInMessageBeforeDigestingEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the invertPositionOfSaltInMessageBeforeDigesting + property. +
++
invertPositionOfSaltInMessageBeforeDigestingEnvName - the name of the environment variable+public String getInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName()+
+
+public void setInvertPositionOfSaltInMessageBeforeDigestingSysPropertyName(String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the invertPositionOfSaltInMessageBeforeDigesting + property. +
++
invertPositionOfSaltInMessageBeforeDigestingSysPropertyName - the name of the property+public String getInvertPositionOfPlainSaltInEncryptionResultsEnvName()+
+
+public void setInvertPositionOfPlainSaltInEncryptionResultsEnvName(String invertPositionOfPlainSaltInEncryptionResultsEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the invertPositionOfPlainSaltInEncryptionResults + property. +
++
invertPositionOfPlainSaltInEncryptionResultsEnvName - the name of the environment variable+public String getInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName()+
+
+public void setInvertPositionOfPlainSaltInEncryptionResultsSysPropertyName(String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the invertPositionOfPlainSaltInEncryptionResults + property. +
++
invertPositionOfPlainSaltInEncryptionResultsSysPropertyName - the name of the property+public String getUseLenientSaltSizeCheckEnvName()+
+
+public void setUseLenientSaltSizeCheckEnvName(String useLenientSaltSizeCheckEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the useLenientSaltSizeCheck + property. +
++
useLenientSaltSizeCheckEnvName - the name of the environment variable+public String getUseLenientSaltSizeCheckSysPropertyName()+
+
+public void setUseLenientSaltSizeCheckSysPropertyName(String useLenientSaltSizeCheckSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. +
++
useLenientSaltSizeCheckSysPropertyName - the name of the property+public String getPoolSizeEnvName()+
+
+public void setPoolSizeEnvName(String poolSizeEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the poolSize + property. +
++
poolSizeEnvName - the name of the environment variable+public String getPoolSizeSysPropertyName()+
+
+public void setPoolSizeSysPropertyName(String poolSizeSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. +
++
poolSizeSysPropertyName - the name of the property+public void setAlgorithm(String algorithm)+
SimpleDigesterConfig+ Sets the name of the algorithm. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with SimpleDigesterConfig.setProvider(Provider) or
+ SimpleDigesterConfig.setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
+
+ Determines the result of: SimpleDigesterConfig.getAlgorithm()
+
+
setAlgorithm in class SimpleDigesterConfigalgorithm - the name of the algorithm.+public void setIterations(Integer iterations)+
SimpleDigesterConfig+ Sets the number of hashing iterations. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getIterations()
+
+
setIterations in class SimpleDigesterConfigiterations - the number of iterations.+public void setIterations(String iterations)+
SimpleDigesterConfig+ Sets the number of hashing iterations. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getIterations()
+
+
setIterations in class SimpleDigesterConfigiterations - the number of iterations.+public void setSaltSizeBytes(Integer saltSizeBytes)+
SimpleDigesterConfig+ Size in bytes of the salt to be used. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getSaltSizeBytes()
+
+
setSaltSizeBytes in class SimpleDigesterConfigsaltSizeBytes - the size of the salt, in bytes.+public void setSaltSizeBytes(String saltSizeBytes)+
SimpleDigesterConfig+ Size in bytes of the salt to be used. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getSaltSizeBytes()
+
+
setSaltSizeBytes in class SimpleDigesterConfigsaltSizeBytes - the size of the salt, in bytes.+public void setSaltGenerator(SaltGenerator saltGenerator)+
SimpleDigesterConfig+ Sets the salt generator. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getSaltGenerator()
+
+
setSaltGenerator in class SimpleDigesterConfigsaltGenerator - the salt generator.+public void setSaltGeneratorClassName(String saltGeneratorClassName)+
SimpleDigesterConfig+ Sets the class name of the salt generator. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getSaltGenerator()
+
+
setSaltGeneratorClassName in class SimpleDigesterConfigsaltGeneratorClassName - the name of the salt generator class.+public void setProviderName(String providerName)+
SimpleDigesterConfig+ Sets the name of the security provider to be asked for the digest + algorithm. This provider should be already registered. +
++ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getProviderName()
+
+
setProviderName in class SimpleDigesterConfigproviderName - the name of the security provider.+public void setProvider(java.security.Provider provider)+
SimpleDigesterConfig
+ Sets the security provider to be used for obtaining the digest
+ algorithm. This method is an alternative to
+ both SimpleDigesterConfig.setProviderName(String) and
+ SimpleDigesterConfig.setProviderClassName(String) and they should not be used
+ altogether.
+ The provider specified with SimpleDigesterConfig.setProvider(Provider) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getProvider()
+
+
setProvider in class SimpleDigesterConfigprovider - the security provider object.+public void setProviderClassName(String providerClassName)+
SimpleDigesterConfig
+ Sets the class name for the security provider to be used for
+ obtaining the digest algorithm. This method is an alternative to
+ both SimpleDigesterConfig.setProviderName(String) SimpleDigesterConfig.setProvider(Provider)
+ and they should not be used altogether.
+ The provider specified with SimpleDigesterConfig.setProviderClassName(String) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getProvider()
+
+
setProviderClassName in class SimpleDigesterConfigproviderClassName - the name of the security provider class.+public void setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)+
SimpleDigesterConfig+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getInvertPositionOfPlainSaltInEncryptionResults()
+
+
setInvertPositionOfPlainSaltInEncryptionResults in class SimpleDigesterConfiginvertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)+
SimpleDigesterConfig+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getInvertPositionOfSaltInMessageBeforeDigesting()
+
+
setInvertPositionOfSaltInMessageBeforeDigesting in class SimpleDigesterConfiginvertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)+
SimpleDigesterConfig+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getUseLenientSaltSizeCheck()
+
+
setUseLenientSaltSizeCheck in class SimpleDigesterConfiguseLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public void setPoolSize(Integer poolSize)+
SimpleDigesterConfig+ Sets the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getPoolSize()
+
+
setPoolSize in class SimpleDigesterConfigpoolSize - the size of the pool to be used if this configuration is used with a
+ pooled digester+public void setPoolSize(String poolSize)+
SimpleDigesterConfig+ Sets the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimpleDigesterConfig.getPoolSize()
+
+
setPoolSize in class SimpleDigesterConfigpoolSize - the size of the pool to be used if this configuration is used with a
+ pooled digester
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.config.SimpleDigesterConfig +
org.jasypt.digest.config.EnvironmentDigesterConfig +
org.jasypt.digest.config.EnvironmentStringDigesterConfig +
public class EnvironmentStringDigesterConfig
+
+ Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties.
+
+ The name of the environment variable or system property (JVM property) to + query for each parameter can be set with its corresponding + setXEnvName or setXSysProperty method. +
+
+ As this class extends SimpleDigesterConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its value is not configured + in any way, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
EnvironmentStringDigesterConfig()
+
++ + Creates a new EnvironmentStringDigesterConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getPrefix()
+
++ + Adds the returned (plain) prefix at the beginning of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ String |
+getPrefixEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as a value for the "prefix" parameter. |
+
+ String |
+getPrefixSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as a value for the "prefix" parameter. |
+
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ String |
+getStringOutputTypeEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the String output type. |
+
+ String |
+getStringOutputTypeSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the String output type. |
+
+ String |
+getSuffix()
+
++ + Adds the returned (plain) suffix at the end of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ String |
+getSuffixEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as a value for the "suffix" parameter. |
+
+ String |
+getSuffixSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as a value for the "suffix" parameter. |
+
+ String |
+getUnicodeNormalizationIgnoredEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as a value for the "unicode normalization ignored" parameter. |
+
+ String |
+getUnicodeNormalizationIgnoredSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as a value for the "unicode normalization ignored" parameter. |
+
+ Boolean |
+isUnicodeNormalizationIgnored()
+
++ + This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. |
+
+ void |
+setPrefix(String prefix)
+
++ + Sets the prefix to be added at the beginning of encryption results, and also to + be expected at the beginning of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setPrefixEnvName(String prefixEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the "prefix" parameter. |
+
+ void |
+setPrefixSysPropertyName(String prefixSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load a value for the "prefix" parameter. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
+ void |
+setStringOutputTypeEnvName(String stringOutputTypeEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the String output type. |
+
+ void |
+setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the String output type. |
+
+ void |
+setSuffix(String suffix)
+
++ + Sets the suffix to be added at the end of encryption results, and also to + be expected at the end of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setSuffixEnvName(String suffixEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the "suffix" parameter. |
+
+ void |
+setSuffixSysPropertyName(String suffixSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load a value for the "suffix" parameter. |
+
+ void |
+setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
+ void |
+setUnicodeNormalizationIgnored(String unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
+ void |
+setUnicodeNormalizationIgnoredEnvName(String unicodeNormalizationIgnoredEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the "unicode normalization ignored" parameter. |
+
+ void |
+setUnicodeNormalizationIgnoredSysPropertyName(String unicodeNormalizationIgnoredSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load a value for the "unicode normalization ignored" parameter. |
+
| Methods inherited from class org.jasypt.digest.config.SimpleDigesterConfig | +
|---|
getAlgorithm, getInvertPositionOfPlainSaltInEncryptionResults, getInvertPositionOfSaltInMessageBeforeDigesting, getIterations, getPoolSize, getProvider, getProviderName, getSaltGenerator, getSaltSizeBytes, getUseLenientSaltSizeCheck |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface org.jasypt.digest.config.DigesterConfig | +
|---|
getAlgorithm, getInvertPositionOfPlainSaltInEncryptionResults, getInvertPositionOfSaltInMessageBeforeDigesting, getIterations, getPoolSize, getProvider, getProviderName, getSaltGenerator, getSaltSizeBytes, getUseLenientSaltSizeCheck |
+
| +Constructor Detail | +
|---|
+public EnvironmentStringDigesterConfig()+
+ Creates a new EnvironmentStringDigesterConfig instance. +
++
| +Method Detail | +
|---|
+public String getUnicodeNormalizationIgnoredEnvName()+
+
+public void setUnicodeNormalizationIgnoredEnvName(String unicodeNormalizationIgnoredEnvName)+
+
unicodeNormalizationIgnoredEnvName - the name of the environment
+ variable+public String getUnicodeNormalizationIgnoredSysPropertyName()+
+
+public void setUnicodeNormalizationIgnoredSysPropertyName(String unicodeNormalizationIgnoredSysPropertyName)+
+
unicodeNormalizationIgnoredSysPropertyName - the name of the property+public String getStringOutputTypeEnvName()+
+
+public void setStringOutputTypeEnvName(String stringOutputTypeEnvName)+
+
stringOutputTypeEnvName - the name of the environment variable+public String getStringOutputTypeSysPropertyName()+
+
+public void setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)+
+
stringOutputTypeSysPropertyName - the name of the property+public void setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++ If not set, null will be returned. +
++
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setUnicodeNormalizationIgnored(String unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++ If not set, null will be returned. +
++
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public void setPrefix(String prefix)+
+ Sets the prefix to be added at the beginning of encryption results, and also to
+ be expected at the beginning of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ If not set, null will be returned. +
+
+ Determines the result of: getPrefix()
+
+
prefix - +public void setSuffix(String suffix)+
+ Sets the suffix to be added at the end of encryption results, and also to
+ be expected at the end of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ If not set, null will be returned. +
+
+ Determines the result of: getSuffix()
+
+
suffix - +public Boolean isUnicodeNormalizationIgnored()+
StringDigesterConfig+ This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++
isUnicodeNormalizationIgnored in interface StringDigesterConfig+public String getStringOutputType()+
StringDigesterConfig+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
getStringOutputType in interface StringDigesterConfig+public String getPrefix()+
StringDigesterConfig
+ Adds the returned (plain) prefix at the beginning of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
getPrefix in interface StringDigesterConfig+public String getSuffix()+
StringDigesterConfig
+ Adds the returned (plain) suffix at the end of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
getSuffix in interface StringDigesterConfig+public String getPrefixEnvName()+
+
+public void setPrefixEnvName(String prefixEnvName)+
+
prefixEnvName - the name of the environment
+ variable+public String getPrefixSysPropertyName()+
+
+public void setPrefixSysPropertyName(String prefixSysPropertyName)+
+
prefixSysPropertyName - the name of the property+public String getSuffixEnvName()+
+
+public void setSuffixEnvName(String suffixEnvName)+
+
suffixEnvName - the name of the environment
+ variable+public String getSuffixSysPropertyName()+
+
+public void setSuffixSysPropertyName(String suffixSysPropertyName)+
+
suffixSysPropertyName - the name of the property
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.config.SimpleDigesterConfig +
public class SimpleDigesterConfig
+
+ Bean implementation for DigesterConfig. This class allows
+ the values for the configuration parameters to be set
+ via "standard" setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ Note that there is not an exact correspondence between setX() + and getX() methods, as sometimes two methods like + setProvider() and setProviderClassName() will affect the + same configuration parameter (getProvider()). This means that + several combinations of setX() methods collide, and + should not be called together (a call to setProviderClassName() + will override any previous call to setProvider()). +
++ +
+
| +Constructor Summary | +|
|---|---|
SimpleDigesterConfig()
+
++ + Creates a new SimpleDigesterConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getAlgorithm()
+
++ + Returns the name of an algorithm to be used for hashing, like "MD5" or + "SHA-1". |
+
+ Boolean |
+getInvertPositionOfPlainSaltInEncryptionResults()
+
++ + Returns Boolean.TRUE if the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ Boolean |
+getInvertPositionOfSaltInMessageBeforeDigesting()
+
++ + Returns Boolean.TRUE if the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ Integer |
+getIterations()
+
++ + Returns the number of times the hash function will be applied recursively. |
+
+ Integer |
+getPoolSize()
+
++ + Get the size of the pool of digesters to be created. |
+
+ java.security.Provider |
+getProvider()
+
++ + Returns the java.security.Provider implementation object + to be used by the digester for obtaining the digest algorithm. |
+
+ String |
+getProviderName()
+
++ + Returns the name of the java.security.Provider implementation + to be used by the digester for obtaining the digest algorithm. |
+
+ SaltGenerator |
+getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the digester. |
+
+ Integer |
+getSaltSizeBytes()
+
++ + Returns the size of the salt to be used to compute the digest. |
+
+ Boolean |
+getUseLenientSaltSizeCheck()
+
++ + Returns Boolean.TRUE if digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the name of the algorithm. |
+
+ void |
+setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)
+
++ + Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. |
+
+ void |
+setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)
+
++ + Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. |
+
+ void |
+setIterations(Integer iterations)
+
++ + Sets the number of hashing iterations. |
+
+ void |
+setIterations(String iterations)
+
++ + Sets the number of hashing iterations. |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setPoolSize(String poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be used for obtaining the digest + algorithm. |
+
+ void |
+setProviderClassName(String providerClassName)
+
++ + Sets the class name for the security provider to be used for + obtaining the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the digest + algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
+ void |
+setSaltGeneratorClassName(String saltGeneratorClassName)
+
++ + Sets the class name of the salt generator. |
+
+ void |
+setSaltSizeBytes(Integer saltSizeBytes)
+
++ + Size in bytes of the salt to be used. |
+
+ void |
+setSaltSizeBytes(String saltSizeBytes)
+
++ + Size in bytes of the salt to be used. |
+
+ void |
+setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)
+
++ + Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public SimpleDigesterConfig()+
+ Creates a new SimpleDigesterConfig instance. +
++
| +Method Detail | +
|---|
+public void setAlgorithm(String algorithm)+
+ Sets the name of the algorithm. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
+
+ Determines the result of: getAlgorithm()
+
+
algorithm - the name of the algorithm.+public void setIterations(Integer iterations)+
+ Sets the number of hashing iterations. +
++ If not set, null will be returned. +
+
+ Determines the result of: getIterations()
+
+
iterations - the number of iterations.+public void setIterations(String iterations)+
+ Sets the number of hashing iterations. +
++ If not set, null will be returned. +
+
+ Determines the result of: getIterations()
+
+
iterations - the number of iterations.+public void setSaltSizeBytes(Integer saltSizeBytes)+
+ Size in bytes of the salt to be used. +
++ If not set, null will be returned. +
+
+ Determines the result of: getSaltSizeBytes()
+
+
saltSizeBytes - the size of the salt, in bytes.+public void setSaltSizeBytes(String saltSizeBytes)+
+ Size in bytes of the salt to be used. +
++ If not set, null will be returned. +
+
+ Determines the result of: getSaltSizeBytes()
+
+
saltSizeBytes - the size of the salt, in bytes.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator. +
++ If not set, null will be returned. +
+
+ Determines the result of: getSaltGenerator()
+
+
saltGenerator - the salt generator.+public void setSaltGeneratorClassName(String saltGeneratorClassName)+
+ Sets the class name of the salt generator. +
++ If not set, null will be returned. +
+
+ Determines the result of: getSaltGenerator()
+
+
saltGeneratorClassName - the name of the salt generator class.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the digest + algorithm. This provider should be already registered. +
++ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProviderName()
+
+
providerName - the name of the security provider.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be used for obtaining the digest
+ algorithm. This method is an alternative to
+ both setProviderName(String) and
+ setProviderClassName(String) and they should not be used
+ altogether.
+ The provider specified with setProvider(Provider) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProvider()
+
+
provider - the security provider object.+public void setProviderClassName(String providerClassName)+
+ Sets the class name for the security provider to be used for
+ obtaining the digest algorithm. This method is an alternative to
+ both setProviderName(String) setProvider(Provider)
+ and they should not be used altogether.
+ The provider specified with setProviderClassName(String) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the digester object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProvider()
+
+
providerClassName - the name of the security provider class.+public void setInvertPositionOfSaltInMessageBeforeDigesting(Boolean invertPositionOfSaltInMessageBeforeDigesting)+
+ Whether the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++ If not set, null will be returned. +
+
+ Determines the result of: getInvertPositionOfSaltInMessageBeforeDigesting()
+
+
invertPositionOfSaltInMessageBeforeDigesting - whether salt will be appended after the message before applying
+ the digest operation on the whole, instead of inserted before it
+ (which is the default).+public void setInvertPositionOfPlainSaltInEncryptionResults(Boolean invertPositionOfPlainSaltInEncryptionResults)+
+ Whether the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++ If not set, null will be returned. +
+
+ Determines the result of: getInvertPositionOfPlainSaltInEncryptionResults()
+
+
invertPositionOfPlainSaltInEncryptionResults - whether plain salt will be appended after the digest operation
+ result instead of inserted before it (which is the
+ default).+public void setUseLenientSaltSizeCheck(Boolean useLenientSaltSizeCheck)+
+ Whether digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ If not set, null will be returned. +
+
+ Determines the result of: getUseLenientSaltSizeCheck()
+
+
useLenientSaltSizeCheck - whether the digester will allow matching of
+ digests with different salt sizes than established or not (default
+ is false).+public void setPoolSize(Integer poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++ If not set, null will be returned. +
+
+ Determines the result of: getPoolSize()
+
+
poolSize - the size of the pool to be used if this configuration is used with a
+ pooled digester+public void setPoolSize(String poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++ If not set, null will be returned. +
+
+ Determines the result of: getPoolSize()
+
+
poolSize - the size of the pool to be used if this configuration is used with a
+ pooled digester+public String getAlgorithm()+
DigesterConfig+ Returns the name of an algorithm to be used for hashing, like "MD5" or + "SHA-1". +
++ This algorithm has to be supported by your Java Virtual Machine, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
++ If this method returns null, the digester will ignore the config object + when deciding the algorithm to be used. +
++
getAlgorithm in interface DigesterConfig+public Integer getIterations()+
DigesterConfig
+ Returns the number of times the hash function will be applied recursively.
+
+ The hash function will be applied to its own results as many times as
+ specified: h(h(...h(x)...))
+
+ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++ If this method returns null, the digester will ignore the config object + when deciding the number of hashing iterations. +
++
getIterations in interface DigesterConfig+public Integer getSaltSizeBytes()+
DigesterConfig+ Returns the size of the salt to be used to compute the digest. + This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++ If salt size is set to zero, then no salt will be used. +
++ If this method returns null, the digester will ignore the config object + when deciding the size of the salt to be used. +
++
getSaltSizeBytes in interface DigesterConfig+public SaltGenerator getSaltGenerator()+
DigesterConfig
+ Returns a SaltGenerator implementation to be used by the digester.
+
+ If this method returns null, the digester will ignore the config object + when deciding the salt generator to be used. +
++
getSaltGenerator in interface DigesterConfig+public String getProviderName()+
DigesterConfig+ Returns the name of the java.security.Provider implementation + to be used by the digester for obtaining the digest algorithm. This + provider must have been registered beforehand. +
++ If this method returns null, the digester will ignore this parameter + when deciding the name of the security provider to be used. +
+
+ If this method does not return null, and neither does DigesterConfig.getProvider(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+
getProviderName in interface DigesterConfig+public java.security.Provider getProvider()+
DigesterConfig+ Returns the java.security.Provider implementation object + to be used by the digester for obtaining the digest algorithm. +
++ If this method returns null, the digester will ignore this parameter + when deciding the security provider object to be used. +
+
+ If this method does not return null, and neither does DigesterConfig.getProviderName(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+ The provider returned by this method does not need to be + registered beforehand, and its use will not result in its + being registered. +
++
getProvider in interface DigesterConfig+public Boolean getInvertPositionOfSaltInMessageBeforeDigesting()+
DigesterConfig+ Returns Boolean.TRUE if the salt bytes are to be appended after the + message ones before performing the digest operation on the whole. The + default behaviour is to insert those bytes before the message bytes, but + setting this configuration item to true allows compatibility + with some external systems and specifications (e.g. LDAP {SSHA}). +
++
getInvertPositionOfSaltInMessageBeforeDigesting in interface DigesterConfig+public Boolean getInvertPositionOfPlainSaltInEncryptionResults()+
DigesterConfig+ Returns Boolean.TRUE if the plain (not hashed) salt bytes are to + be appended after the digest operation result bytes. The default behaviour is + to insert them before the digest result, but setting this configuration + item to true allows compatibility with some external systems + and specifications (e.g. LDAP {SSHA}). +
++
getInvertPositionOfPlainSaltInEncryptionResults in interface DigesterConfig+public Boolean getUseLenientSaltSizeCheck()+
DigesterConfig+ Returns Boolean.TRUE if digest matching operations will allow matching + digests with a salt size different to the one configured in the "saltSizeBytes" + property. This is possible because digest algorithms will produce a fixed-size + result, so the remaining bytes from the hashed input will be considered salt. +
++ This will allow the digester to match digests produced in environments which do not + establish a fixed salt size as standard (for example, SSHA password encryption + in LDAP systems). +
++ The value of this property will not affect the creation of digests, + which will always have a salt of the size established by the "saltSizeBytes" + property. It will only affect digest matching. +
+
+ Setting this property to true is not compatible with SaltGenerator
+ implementations which return false for their
+ SaltGenerator.includePlainSaltInEncryptionResults() property.
+
+ Also, be aware that some algorithms or algorithm providers might not support + knowing the size of the digests beforehand, which is also incompatible with + a lenient behaviour. +
++ Default is FALSE. +
++
getUseLenientSaltSizeCheck in interface DigesterConfig+public Integer getPoolSize()+
DigesterConfig+ Get the size of the pool of digesters to be created. +
++ This parameter will be ignored if used with a non-pooled digester. +
++
getPoolSize in interface DigesterConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.digest.config.SimpleDigesterConfig +
org.jasypt.digest.config.SimpleStringDigesterConfig +
public class SimpleStringDigesterConfig
+
+ Bean implementation for StringDigesterConfig. This class allows
+ the values for the configuration parameters to be set
+ via "standard" setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
SimpleStringDigesterConfig()
+
++ + Creates a new SimpleStringDigesterConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getPrefix()
+
++ + Adds the returned (plain) prefix at the beginning of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ String |
+getSuffix()
+
++ + Adds the returned (plain) suffix at the end of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ Boolean |
+isUnicodeNormalizationIgnored()
+
++ + This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. |
+
+ void |
+setPrefix(String prefix)
+
++ + Sets the prefix to be added at the beginning of encryption results, and also to + be expected at the beginning of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
+ void |
+setSuffix(String suffix)
+
++ + Sets the suffix to be added at the end of encryption results, and also to + be expected at the end of plain messages provided for matching operations + (raising an EncryptionOperationNotPossibleException if not). |
+
+ void |
+setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
+ void |
+setUnicodeNormalizationIgnored(String unicodeNormalizationIgnored)
+
++ + Sets whether the unicode text normalization step should be ignored. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface org.jasypt.digest.config.DigesterConfig | +
|---|
getAlgorithm, getInvertPositionOfPlainSaltInEncryptionResults, getInvertPositionOfSaltInMessageBeforeDigesting, getIterations, getPoolSize, getProvider, getProviderName, getSaltGenerator, getSaltSizeBytes, getUseLenientSaltSizeCheck |
+
| +Constructor Detail | +
|---|
+public SimpleStringDigesterConfig()+
+ Creates a new SimpleStringDigesterConfig instance. +
++
| +Method Detail | +
|---|
+public void setUnicodeNormalizationIgnored(Boolean unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++ If not set, null will be returned. +
+
+ Determines the result of: isUnicodeNormalizationIgnored()
+
+
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setUnicodeNormalizationIgnored(String unicodeNormalizationIgnored)+
+ Sets whether the unicode text normalization step should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++ If not set, null will be returned. +
+
+ Determines the result of: isUnicodeNormalizationIgnored()
+
+
unicodeNormalizationIgnored - whether the unicode text
+ normalization step should be ignored or not.+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
+
+ Determines the result of: getStringOutputType()
+
+
stringOutputType - the string output type.+public void setPrefix(String prefix)+
+ Sets the prefix to be added at the beginning of encryption results, and also to
+ be expected at the beginning of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ If not set, null will be returned. +
+
+ Determines the result of: getPrefix()
+
+
prefix - +public void setSuffix(String suffix)+
+ Sets the suffix to be added at the end of encryption results, and also to
+ be expected at the end of plain messages provided for matching operations
+ (raising an EncryptionOperationNotPossibleException if not).
+
+ If not set, null will be returned. +
+
+ Determines the result of: getSuffix()
+
+
suffix - +public Boolean isUnicodeNormalizationIgnored()+
StringDigesterConfig+ This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++
isUnicodeNormalizationIgnored in interface StringDigesterConfig+public String getStringOutputType()+
StringDigesterConfig+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
getStringOutputType in interface StringDigesterConfig+public String getPrefix()+
StringDigesterConfig
+ Adds the returned (plain) prefix at the beginning of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
getPrefix in interface StringDigesterConfig+public String getSuffix()+
StringDigesterConfig
+ Adds the returned (plain) suffix at the end of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
getSuffix in interface StringDigesterConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface StringDigesterConfig
+
+ Common interface for config classes applicable to
+ StandardStringDigester objects. This interface
+ extends DigesterConfig to add config parameters specific to
+ String digesting.
+
+ This interface lets the user create new StringDigesterConfig + classes which retrieve values for this parameters from different + (and maybe more secure) sources (remote servers, LDAP, other databases...), + and do this transparently for the digester object. +
++ The config objects passed to a digester will only be queried once + for each configuration parameter, and this will happen + during the initialization of the digester object. +
+
+ For a default implementation, see SimpleStringDigesterConfig.
+
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getPrefix()
+
++ + Adds the returned (plain) prefix at the beginning of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ String |
+getSuffix()
+
++ + Adds the returned (plain) suffix at the end of generated digests, + and also expects to find it in any plain message provided for matching + operations (raising an EncryptionOperationNotPossibleException
+ if not). |
+
+ Boolean |
+isUnicodeNormalizationIgnored()
+
++ + This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. |
+
| Methods inherited from interface org.jasypt.digest.config.DigesterConfig | +
|---|
getAlgorithm, getInvertPositionOfPlainSaltInEncryptionResults, getInvertPositionOfSaltInMessageBeforeDigesting, getIterations, getPoolSize, getProvider, getProviderName, getSaltGenerator, getSaltSizeBytes, getUseLenientSaltSizeCheck |
+
| +Method Detail | +
|---|
+Boolean isUnicodeNormalizationIgnored()+
+ This parameter lets the user specify if the Unicode text normalization + step performed during String digest and matching should be ignored. +
++ The Java Virtual Machine internally handles all Strings as UNICODE. When + digesting or matching digests in jasypt, these Strings are first + normalized to + its NFC form so that digest matching is not affected by the specific + form in which the messages where input. +
++ It is normally safe (and recommended) to leave this parameter set to + its default FALSE value (and thus DO perform normalization + operations). But in some specific cases in which issues with legacy + software could arise, it might be useful to set this to TRUE. +
++ For more information on unicode text normalization, see this issue of + Core Java Technologies Tech Tips. +
++
+String getStringOutputType()+
+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
+String getPrefix()+
+ Adds the returned (plain) prefix at the beginning of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
+String getSuffix()+
+ Adds the returned (plain) suffix at the end of generated digests,
+ and also expects to find it in any plain message provided for matching
+ operations (raising an EncryptionOperationNotPossibleException
+ if not).
+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use DigesterConfig | +|
|---|---|
| org.jasypt.digest | ++ |
| org.jasypt.digest.config | ++ |
| org.jasypt.util.password | ++ |
| +Uses of DigesterConfig in org.jasypt.digest | +
|---|
+ +
| Methods in org.jasypt.digest with parameters of type DigesterConfig | +|
|---|---|
+ void |
+PooledByteDigester.setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig object
+ for the digester. |
+
+ void |
+StandardStringDigester.setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. |
+
+ void |
+PooledStringDigester.setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig
+ or StringDigesterConfig object
+ for the digester. |
+
+ void |
+StandardByteDigester.setConfig(DigesterConfig config)
+
++ + Sets a DigesterConfig object
+ for the digester. |
+
| +Uses of DigesterConfig in org.jasypt.digest.config | +
|---|
+ +
| Subinterfaces of DigesterConfig in org.jasypt.digest.config | +|
|---|---|
+ interface |
+StringDigesterConfig
+
++ + Common interface for config classes applicable to + StandardStringDigester objects. |
+
+ +
| Classes in org.jasypt.digest.config that implement DigesterConfig | +|
|---|---|
+ class |
+EnvironmentDigesterConfig
+
++ + Implementation for DigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+EnvironmentStringDigesterConfig
+
++ + Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimpleDigesterConfig
+
++ + Bean implementation for DigesterConfig. |
+
+ class |
+SimpleStringDigesterConfig
+
++ + Bean implementation for StringDigesterConfig. |
+
| +Uses of DigesterConfig in org.jasypt.util.password | +
|---|
+ +
| Methods in org.jasypt.util.password with parameters of type DigesterConfig | +|
|---|---|
+ void |
+ConfigurablePasswordEncryptor.setConfig(DigesterConfig config)
+
++ Lets the user configure this encryptor with a DigesterConfig
+ object, like if he/she were using a StandardStringDigester object
+ directly. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EnvironmentDigesterConfig | +|
|---|---|
| org.jasypt.digest.config | ++ |
| +Uses of EnvironmentDigesterConfig in org.jasypt.digest.config | +
|---|
+ +
| Subclasses of EnvironmentDigesterConfig in org.jasypt.digest.config | +|
|---|---|
+ class |
+EnvironmentStringDigesterConfig
+
++ + Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SimpleDigesterConfig | +|
|---|---|
| org.jasypt.digest.config | ++ |
| +Uses of SimpleDigesterConfig in org.jasypt.digest.config | +
|---|
+ +
| Subclasses of SimpleDigesterConfig in org.jasypt.digest.config | +|
|---|---|
+ class |
+EnvironmentDigesterConfig
+
++ + Implementation for DigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+EnvironmentStringDigesterConfig
+
++ + Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimpleStringDigesterConfig
+
++ + Bean implementation for StringDigesterConfig. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use StringDigesterConfig | +|
|---|---|
| org.jasypt.digest.config | ++ |
| +Uses of StringDigesterConfig in org.jasypt.digest.config | +
|---|
+ +
| Classes in org.jasypt.digest.config that implement StringDigesterConfig | +|
|---|---|
+ class |
+EnvironmentStringDigesterConfig
+
++ + Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimpleStringDigesterConfig
+
++ + Bean implementation for StringDigesterConfig. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +DigesterConfig + +StringDigesterConfig |
+
|
+Classes
+
+ +EnvironmentDigesterConfig + +EnvironmentStringDigesterConfig + +SimpleDigesterConfig + +SimpleStringDigesterConfig |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| DigesterConfig | +
+ Common interface for config classes applicable to
+ StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects. |
+
| StringDigesterConfig | +
+ Common interface for config classes applicable to
+ StandardStringDigester objects. |
+
+ +
| +Class Summary | +|
|---|---|
| EnvironmentDigesterConfig | +
+ Implementation for DigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
| EnvironmentStringDigesterConfig | +
+ Implementation for StringDigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
| SimpleDigesterConfig | +
+ Bean implementation for DigesterConfig. |
+
| SimpleStringDigesterConfig | +
+ Bean implementation for StringDigesterConfig. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.digest.config | +|
|---|---|
| org.jasypt.digest | ++ |
| org.jasypt.digest.config | ++ |
| org.jasypt.util.password | ++ |
| +Classes in org.jasypt.digest.config used by org.jasypt.digest | +|
|---|---|
| DigesterConfig
+
+ + + Common interface for config classes applicable to + StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects. |
+|
| +Classes in org.jasypt.digest.config used by org.jasypt.digest.config | +|
|---|---|
| DigesterConfig
+
+ + + Common interface for config classes applicable to + StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects. |
+|
| EnvironmentDigesterConfig
+
+ + + Implementation for DigesterConfig which can retrieve configuration
+ values from environment variables or system properties. |
+|
| SimpleDigesterConfig
+
+ + + Bean implementation for DigesterConfig. |
+|
| StringDigesterConfig
+
+ + + Common interface for config classes applicable to + StandardStringDigester objects. |
+|
| +Classes in org.jasypt.digest.config used by org.jasypt.util.password | +|
|---|---|
| DigesterConfig
+
+ + + Common interface for config classes applicable to + StandardByteDigester,
+ StandardStringDigester,
+ PooledByteDigester or
+ PooledStringDigester
+ objects. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +ByteDigester + +StringDigester |
+
|
+Classes
+
+ +PooledByteDigester + +PooledStringDigester + +StandardByteDigester + +StandardStringDigester |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| ByteDigester | ++ Common interface for all digesters which receive a byte array message and + return a byte array digest. | +
| StringDigester | ++ Common interface for all digesters which receive a String message and + return a String digest. | +
+ +
| +Class Summary | +|
|---|---|
| PooledByteDigester | +
+ Pooled implementation of ByteDigester that in fact contains
+ an array of StandardByteDigester objects which are used
+ to attend digest and match requests in round-robin. |
+
| PooledStringDigester | +
+ Pooled implementation of StringDigester that in fact contains
+ an array of StandardStringDigester objects which are used
+ to attend digest and match requests in round-robin. |
+
| StandardByteDigester | +
+ Standard implementation of the ByteDigester interface. |
+
| StandardStringDigester | +
+ Standard implementation of the StringDigester interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.digest | +|
|---|---|
| org.jasypt.digest | ++ |
| +Classes in org.jasypt.digest used by org.jasypt.digest | +|
|---|---|
| ByteDigester
+
+ + + Common interface for all digesters which receive a byte array message and + return a byte array digest. |
+|
| StringDigester
+
+ + + Common interface for all digesters which receive a String message and + return a String digest. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface BigDecimalEncryptor
+
+ Common interface for all Encryptors which receive a + BigDecimal (arbitrary precision) message and return a BigDecimal result. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ +
+
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ Decrypt an encrypted message |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ Encrypt the input message |
+
| +Method Detail | +
|---|
+java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+
message - the message to be encrypted
++java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+
encryptedMessage - the encrypted message to be decrypted
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface BigIntegerEncryptor
+
+ Common interface for all Encryptors which receive a + BigInteger (arbitrary precision) message and return a BigInteger result. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ +
+
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ Decrypt an encrypted message |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ Encrypt the input message |
+
| +Method Detail | +
|---|
+java.math.BigInteger encrypt(java.math.BigInteger message)+
+
message - the message to be encrypted
++java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+
encryptedMessage - the encrypted message to be decrypted
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface ByteEncryptor
+
+ Common interface for all Encryptors which receive a + byte array message and return a byte array result. +
++ +
+
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ Decrypt an encrypted message |
+
+ byte[] |
+encrypt(byte[] message)
+
++ Encrypt the input message |
+
| +Method Detail | +
|---|
+byte[] encrypt(byte[] message)+
+
message - the message to be encrypted
++byte[] decrypt(byte[] encryptedMessage)+
+
encryptedMessage - the encrypted message to be decrypted
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface StringEncryptor
+
+ Common interface for all Encryptors which receive a + String message and return a String result. +
++ +
+
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decrypt an encrypted message |
+
+ String |
+encrypt(String message)
+
++ Encrypt the input message |
+
| +Method Detail | +
|---|
+String encrypt(String message)+
+
message - the message to be encrypted
++String decrypt(String encryptedMessage)+
+
encryptedMessage - the encrypted message to be decrypted
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use BigDecimalEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of BigDecimalEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of BigDecimalEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEBigDecimalCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEBigDecimalEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result. |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement BigDecimalEncryptor | +|
|---|---|
+ class |
+PooledPBEBigDecimalEncryptor
+
++ + Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigDecimalEncryptor
+
++ + Standard implementation of the PBEBigDecimalEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use BigIntegerEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of BigIntegerEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of BigIntegerEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEBigIntegerCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEBigIntegerEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result. |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement BigIntegerEncryptor | +|
|---|---|
+ class |
+PooledPBEBigIntegerEncryptor
+
++ + Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigIntegerEncryptor
+
++ + Standard implementation of the PBEBigIntegerEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ByteEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of ByteEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of ByteEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEByteCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEByteEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result. |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement ByteEncryptor | +|
|---|---|
+ class |
+PooledPBEByteEncryptor
+
++ + Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEByteEncryptor
+
++ + Standard implementation of the PBEByteEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use StringEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.properties | ++ |
| +Uses of StringEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of StringEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEStringCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEStringEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result. |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement StringEncryptor | +|
|---|---|
+ class |
+PooledPBEStringEncryptor
+
++ + Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEStringEncryptor
+
++ + Standard implementation of the PBEStringEncryptor interface. |
+
| +Uses of StringEncryptor in org.jasypt.properties | +
|---|
+ +
| Methods in org.jasypt.properties with parameters of type StringEncryptor | +|
|---|---|
+static String |
+PropertyValueEncryptionUtils.decrypt(String encodedValue,
+ StringEncryptor encryptor)
+
++ |
+
+static String |
+PropertyValueEncryptionUtils.encrypt(String decodedValue,
+ StringEncryptor encryptor)
+
++ |
+
+ +
| Constructors in org.jasypt.properties with parameters of type StringEncryptor | +|
|---|---|
EncryptableProperties(java.util.Properties defaults,
+ StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed StringEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values). |
+|
EncryptableProperties(StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed StringEncryptor object to decrypt encrypted values. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +BigDecimalEncryptor + +BigIntegerEncryptor + +ByteEncryptor + +StringEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| BigDecimalEncryptor | ++ Common interface for all Encryptors which receive a + BigDecimal (arbitrary precision) message and return a BigDecimal result. | +
| BigIntegerEncryptor | ++ Common interface for all Encryptors which receive a + BigInteger (arbitrary precision) message and return a BigInteger result. | +
| ByteEncryptor | ++ Common interface for all Encryptors which receive a + byte array message and return a byte array result. | +
| StringEncryptor | ++ Common interface for all Encryptors which receive a + String message and return a String result. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.encryption | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.properties | ++ |
| +Classes in org.jasypt.encryption used by org.jasypt.encryption.pbe | +|
|---|---|
| BigDecimalEncryptor
+
+ + + Common interface for all Encryptors which receive a + BigDecimal (arbitrary precision) message and return a BigDecimal result. |
+|
| BigIntegerEncryptor
+
+ + + Common interface for all Encryptors which receive a + BigInteger (arbitrary precision) message and return a BigInteger result. |
+|
| ByteEncryptor
+
+ + + Common interface for all Encryptors which receive a + byte array message and return a byte array result. |
+|
| StringEncryptor
+
+ + + Common interface for all Encryptors which receive a + String message and return a String result. |
+|
| +Classes in org.jasypt.encryption used by org.jasypt.properties | +|
|---|---|
| StringEncryptor
+
+ + + Common interface for all Encryptors which receive a + String message and return a String result. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface CleanablePasswordBased
+
+ Common interface for all entities which can be set a password in char[] shape, + which can be cleaned once the encryptor is initialized so that no immutable + Strings containing the password are left in memory. +
++ +
+
| +Method Summary | +|
|---|---|
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets a password to be used by the encryptor, as a (cleanable) char[]. |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
| +Method Detail | +
|---|
+void setPasswordCharArray(char[] password)+
+ Sets a password to be used by the encryptor, as a (cleanable) char[]. +
++
password - the password to be used.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEBigDecimalCleanablePasswordEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
+
+ For a default implementation, see StandardPBEBigDecimalEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.BigDecimalEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.CleanablePasswordBased | +
|---|
setPasswordCharArray |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEBigDecimalEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
+
+ For a default implementation, see StandardPBEBigDecimalEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.BigDecimalEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEBigIntegerCleanablePasswordEncryptor
+
+ Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can result + in an encrypted 16-byte number. This can lead the user into problems if the + encrypted values are to be stored and not enough room has been provided. +
+
+ For a default implementation, see StandardPBEBigIntegerEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.BigIntegerEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.CleanablePasswordBased | +
|---|
setPasswordCharArray |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEBigIntegerEncryptor
+
+ Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can result + in an encrypted 16-byte number. This can lead the user into problems if the + encrypted values are to be stored and not enough room has been provided. +
+
+ For a default implementation, see StandardPBEBigIntegerEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.BigIntegerEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEByteCleanablePasswordEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). +
+
+ For a default implementation, see StandardPBEByteEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.ByteEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.CleanablePasswordBased | +
|---|
setPasswordCharArray |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEByteEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result. +
+
+ For a default implementation, see StandardPBEByteEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.ByteEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEStringCleanablePasswordEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). +
+ For a default implementation, see StandardPBEStringEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.StringEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.CleanablePasswordBased | +
|---|
setPasswordCharArray |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEStringEncryptor
+
+ Common interface for all Password Based Encryptors which receive a + String message and return a String result. +
+
+ For a default implementation, see StandardPBEStringEncryptor.
+
+ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.encryption.StringEncryptor | +
|---|
decrypt, encrypt |
+
| Methods inherited from interface org.jasypt.encryption.pbe.PasswordBased | +
|---|
setPassword |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PasswordBased
+
+ Common interface for all entities which can be set a password. +
++ +
+
| +Method Summary | +|
|---|---|
+ void |
+setPassword(String password)
+
++ + Sets a password to be used by the encryptor. |
+
| +Method Detail | +
|---|
+void setPassword(String password)+
+ Sets a password to be used by the encryptor. +
++
password - the password to be used.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.PooledPBEBigDecimalEncryptor +
public final class PooledPBEBigDecimalEncryptor
+
+ Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardPBEBigDecimalEncryptor.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledPBEBigDecimalEncryptor()
+
++ Creates a new instance of PooledStandardPBEBigDecimalEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledPBEBigDecimalEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+ Encrypts a message using the specified configuration. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface BigDecimalEncryptormessage - the BigDecimal message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface BigDecimalEncryptorencryptedMessage - the BigDecimal message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.PooledPBEBigIntegerEncryptor +
public final class PooledPBEBigIntegerEncryptor
+
+ Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardPBEBigIntegerEncryptor.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledPBEBigIntegerEncryptor()
+
++ Creates a new instance of PooledStandardPBEBigIntegerEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledPBEBigIntegerEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigInteger encrypt(java.math.BigInteger message)+
+ Encrypts a message using the specified configuration. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface BigIntegerEncryptormessage - the BigInteger message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface BigIntegerEncryptorencryptedMessage - the BigInteger message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.PooledPBEByteEncryptor +
public final class PooledPBEByteEncryptor
+
+ Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardPBEByteEncryptor.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledPBEByteEncryptor()
+
++ Creates a new instance of PooledStandardPBEByteEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ byte[] |
+encrypt(byte[] message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledPBEByteEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public byte[] encrypt(byte[] message) + throws EncryptionOperationNotPossibleException+
+ Encrypts a message using the specified configuration. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface ByteEncryptormessage - the byte array message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public byte[] decrypt(byte[] encryptedMessage) + throws EncryptionOperationNotPossibleException+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface ByteEncryptorencryptedMessage - the byte array message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.PooledPBEStringEncryptor +
public final class PooledPBEStringEncryptor
+
+ Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. This should
+ result in higher performance in multiprocessor systems.
+
+ Configuration of this class is equivalent to that of
+ StandardPBEStringEncryptor.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
PooledPBEStringEncryptor()
+
++ Creates a new instance of PooledStandardPBEStringEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ String |
+encrypt(String message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setPoolSize(int poolSize)
+
++ + Sets the size of the pool of digesters to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PooledPBEStringEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public void setPoolSize(int poolSize)+
+ Sets the size of the pool of digesters to be created. +
++ This parameter is required. +
++
poolSize - size of the pool+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public String encrypt(String message)+
+ Encrypts a message using the specified configuration. +
+ + The Strings returned by this method are BASE64-encoded (default) or + HEXADECIMAL ASCII Strings. + ++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface StringEncryptormessage - the String message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public String decrypt(String encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ This method expects to receive a BASE64-encoded (default) + or HEXADECIMAL ASCII String. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface StringEncryptorencryptedMessage - the String message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor +
public final class StandardPBEBigDecimalEncryptor
+
+ Standard implementation of the PBEBigDecimalEncryptor interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ encryption, the password to use,
+ the number of hashing iterations and the salt generator
+ that will be applied for obtaining
+ the encryption key.
+
+ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, password, key-obtention iterations and salt generator can take + values in any of these ways: +
PBEConfig
+ object which provides new
+ configuration values.PBEConfig
+ object has been set with
+ setConfig(...), the non-null values returned by its
+ getX() methods override the default values.
+
Initialization
+
+ Before it is ready to encrypt, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ An encryptor may be used for: +
+ To learn more about the mechanisms involved in encryption, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Constructor Summary | +|
|---|---|
StandardPBEBigDecimalEncryptor()
+
++ Creates a new instance of StandardPBEBigDecimalEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StandardPBEBigDecimalEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigDecimal encrypt(java.math.BigDecimal message)+
+ Encrypts a message using the specified configuration. +
++ The resulting + BigDecimal will have the same scale as the original one (although the + total number of bytes will be higher). +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface BigDecimalEncryptormessage - the BigDecimal message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface BigDecimalEncryptorencryptedMessage - the BigDecimal message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor +
public final class StandardPBEBigIntegerEncryptor
+
+ Standard implementation of the PBEBigIntegerEncryptor interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ encryption, the password to use,
+ the number of hashing iterations and the salt generator
+ that will be applied for obtaining
+ the encryption key.
+
+ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, password, key-obtention iterations and salt generator can take + values in any of these ways: +
PBEConfig
+ object which provides new
+ configuration values.PBEConfig
+ object has been set with
+ setConfig(...), the non-null values returned by its
+ getX() methods override the default values.
+
Initialization
+
+ Before it is ready to encrypt, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ An encryptor may be used for: +
+ To learn more about the mechanisms involved in encryption, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Constructor Summary | +|
|---|---|
StandardPBEBigIntegerEncryptor()
+
++ Creates a new instance of StandardPBEBigIntegerEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StandardPBEBigIntegerEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigInteger encrypt(java.math.BigInteger message)+
+ Encrypts a message using the specified configuration. +
++ Important: The size of the result of encrypting a number, depending + on the algorithm, may be much bigger (in bytes) than the size of the + encrypted number itself. For example, encrypting a 4-byte integer can + result in an encrypted 16-byte number. This can lead the user into + problems if the encrypted values are to be stored and not enough room + has been provided. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface BigIntegerEncryptormessage - the BigInteger message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public java.math.BigInteger decrypt(java.math.BigInteger encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface BigIntegerEncryptorencryptedMessage - the BigInteger message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.StandardPBEByteEncryptor +
public final class StandardPBEByteEncryptor
+
+ Standard implementation of the PBEByteEncryptor interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ encryption, the password to use,
+ the number of hashing iterations and the salt generator
+ that will be applied for obtaining
+ the encryption key.
+
+ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, password, key-obtention iterations and salt generator can take + values in any of these ways: +
PBEConfig
+ object which provides new
+ configuration values.PBEConfig
+ object has been set with
+ setConfig(...), the non-null values returned by its
+ getX() methods override the default values.
+
Initialization
+
+ Before it is ready to encrypt, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ An encryptor may be used for: +
+ To learn more about the mechanisms involved in encryption, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_ALGORITHM
+
++ The default algorithm to be used if none specified: PBEWithMD5AndDES. |
+
+static int |
+DEFAULT_KEY_OBTENTION_ITERATIONS
+
++ The default number of hashing iterations applied for obtaining the + encryption key from the specified password, set to 1000. |
+
+static int |
+DEFAULT_SALT_SIZE_BYTES
+
++ The default salt size, only used if the chosen encryption algorithm + is not a block algorithm and thus block size cannot be used as salt size. |
+
| +Constructor Summary | +|
|---|---|
StandardPBEByteEncryptor()
+
++ Creates a new instance of StandardPBEByteEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ byte[] |
+encrypt(byte[] message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String DEFAULT_ALGORITHM+
+
+public static final int DEFAULT_KEY_OBTENTION_ITERATIONS+
+
+public static final int DEFAULT_SALT_SIZE_BYTES+
+
| +Constructor Detail | +
|---|
+public StandardPBEByteEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public byte[] encrypt(byte[] message) + throws EncryptionOperationNotPossibleException+
+ Encrypts a message using the specified configuration. +
++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface ByteEncryptormessage - the byte array message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public byte[] decrypt(byte[] encryptedMessage) + throws EncryptionOperationNotPossibleException+
+ Decrypts a message using the specified configuration. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface ByteEncryptorencryptedMessage - the byte array message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.StandardPBEStringEncryptor +
public final class StandardPBEStringEncryptor
+
+ Standard implementation of the PBEStringEncryptor interface.
+ This class lets the user specify the algorithm (and provider) to be used for
+ encryption, the password to use,
+ the number of hashing iterations and the salt generator
+ that will be applied for obtaining
+ the encryption key.
+
+ This class avoids byte-conversion problems related to the fact of + different platforms having different default charsets, and returns + encryption results in the form of BASE64-encoded or HEXADECIMAL + ASCII Strings. +
++ This class is thread-safe. +
+
+
Configuration
+
+ The algorithm, provider, password, key-obtention iterations and salt generator can take + values in any of these ways: +
PBEConfig
+ object which provides new
+ configuration values.PBEConfig
+ object has been set with
+ setConfig(...), the non-null values returned by its
+ getX() methods override the default values.
+
Initialization
+
+ Before it is ready to encrypt, an object of this class has to be + initialized. Initialization happens: +
+
Usage
+
+ An encryptor may be used for: +
+ To learn more about the mechanisms involved in encryption, read + PKCS #5: Password-Based Cryptography Standard. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_STRING_OUTPUT_TYPE
+
++ + Default type of String output. |
+
| +Constructor Summary | +|
|---|---|
StandardPBEStringEncryptor()
+
++ Creates a new instance of StandardPBEStringEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ String |
+encrypt(String message)
+
++ + Encrypts a message using the specified configuration. |
+
+ void |
+initialize()
+
++ + Initialize the encryptor. |
+
+ boolean |
+isInitialized()
+
++ + Returns true if the encryptor has already been initialized, false if + not. + Initialization happens: |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ void |
+setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+setKeyObtentionIterations(int keyObtentionIterations)
+
++ + Set the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ + Sets the password to be used. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ + Sets the password to be used, as a char[]. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the encryption algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + encryption algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String DEFAULT_STRING_OUTPUT_TYPE+
+ Default type of String output. Set to BASE64. +
++
| +Constructor Detail | +
|---|
+public StandardPBEStringEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(PBEConfig config)+
+ Sets a PBEConfig object
+ for the encryptor. If this config
+ object is set, it will be asked values for:
+
+ The non-null values it returns will override the default ones, + and will be overriden by any values specified with a setX + method. +
++
config - the PBEConfig object to be used as the
+ source for configuration parameters.+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
++ This algorithm has to be supported by your JCE provider (if you specify + one, or the default JVM provider if you don't) and, if it is supported, + you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
++
algorithm - the name of the algorithm to be used.+public void setPassword(String password)+
+ Sets the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPassword in interface PasswordBasedpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
+ Sets the password to be used, as a char[]. +
++ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored as encryptor configuration. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
setPasswordCharArray in interface CleanablePasswordBasedpassword - the password to be used.+public void setKeyObtentionIterations(int keyObtentionIterations)+
+ Set the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
keyObtentionIterations - the number of iterations+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator to be used. If no salt generator is specified,
+ an instance of RandomSaltGenerator will be used.
+
+
saltGenerator - the salt generator to be used.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + encryption algorithm. This security provider has to be registered + beforehand at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the encryption algorithm.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the encryption algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + its being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public boolean isInitialized()+
+ Returns true if the encryptor has already been initialized, false if
+ not.
+ Initialization happens:
+
+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
+public void initialize()+
+ Initialize the encryptor. +
+
+ This operation will consist in determining the actual configuration
+ values to be used, and then initializing the encryptor with them.
+
+ These values are decided by applying the following priorities:
+
PBEConfig
+ object has been set with
+ setConfig, the non-null values returned by its
+ getX methods override the default values.+ Once an encryptor has been initialized, trying to + change its configuration will + result in an AlreadyInitializedException being thrown. +
++
EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public String encrypt(String message)+
+ Encrypts a message using the specified configuration. +
+ + The Strings returned by this method are BASE64-encoded (default) or + HEXADECIMAL ASCII Strings. + ++ The mechanisms applied to perform the encryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ This encryptor uses a salt for each encryption + operation. The size of the salt depends on the algorithm + being used. This salt is used + for creating the encryption key and, if generated by a random generator, + it is also appended unencrypted at the beginning + of the results so that a decryption operation can be performed. +
++ If a random salt generator is used, two encryption results for + the same message will always be different + (except in the case of random salt coincidence). This may enforce + security by difficulting brute force attacks on sets of data at a time + and forcing attackers to perform a brute force attack on each separate + piece of encrypted data. +
++
encrypt in interface StringEncryptormessage - the String message to be encrypted
+EncryptionOperationNotPossibleException - if the encryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).+public String decrypt(String encryptedMessage)+
+ Decrypts a message using the specified configuration. +
++ This method expects to receive a BASE64-encoded (default) + or HEXADECIMAL ASCII String. +
++ The mechanisms applied to perform the decryption operation are described + in PKCS #5: Password-Based Cryptography Standard. +
++ If a random salt generator is used, this decryption operation will + expect to find an unencrypted salt at the + beginning of the encrypted input, so that the decryption operation can be + correctly performed (there is no other way of knowing it). +
++
decrypt in interface StringEncryptorencryptedMessage - the String message to be decrypted
+EncryptionOperationNotPossibleException - if the decryption
+ operation fails, ommitting any further information about the
+ cause for security reasons.
+EncryptionInitializationException - if initialization could not
+ be correctly done (for example, no password has been set).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CleanablePasswordBased | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of CleanablePasswordBased in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of CleanablePasswordBased in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEBigDecimalCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEBigIntegerCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEByteCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEStringCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement CleanablePasswordBased | +|
|---|---|
+ class |
+PooledPBEBigDecimalEncryptor
+
++ + Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEBigIntegerEncryptor
+
++ + Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEByteEncryptor
+
++ + Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEStringEncryptor
+
++ + Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigDecimalEncryptor
+
++ + Standard implementation of the PBEBigDecimalEncryptor interface. |
+
+ class |
+StandardPBEBigIntegerEncryptor
+
++ + Standard implementation of the PBEBigIntegerEncryptor interface. |
+
+ class |
+StandardPBEByteEncryptor
+
++ + Standard implementation of the PBEByteEncryptor interface. |
+
+ class |
+StandardPBEStringEncryptor
+
++ + Standard implementation of the PBEStringEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEBigDecimalCleanablePasswordEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEBigDecimalCleanablePasswordEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEBigDecimalCleanablePasswordEncryptor | +|
|---|---|
+ class |
+PooledPBEBigDecimalEncryptor
+
++ + Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigDecimalEncryptor
+
++ + Standard implementation of the PBEBigDecimalEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEBigDecimalEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEBigDecimalEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of PBEBigDecimalEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEBigDecimalCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEBigDecimalEncryptor | +|
|---|---|
+ class |
+PooledPBEBigDecimalEncryptor
+
++ + Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigDecimalEncryptor
+
++ + Standard implementation of the PBEBigDecimalEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEBigIntegerCleanablePasswordEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEBigIntegerCleanablePasswordEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEBigIntegerCleanablePasswordEncryptor | +|
|---|---|
+ class |
+PooledPBEBigIntegerEncryptor
+
++ + Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigIntegerEncryptor
+
++ + Standard implementation of the PBEBigIntegerEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEBigIntegerEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEBigIntegerEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of PBEBigIntegerEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEBigIntegerCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEBigIntegerEncryptor | +|
|---|---|
+ class |
+PooledPBEBigIntegerEncryptor
+
++ + Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigIntegerEncryptor
+
++ + Standard implementation of the PBEBigIntegerEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEByteCleanablePasswordEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEByteCleanablePasswordEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEByteCleanablePasswordEncryptor | +|
|---|---|
+ class |
+PooledPBEByteEncryptor
+
++ + Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEByteEncryptor
+
++ + Standard implementation of the PBEByteEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEByteEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEByteEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of PBEByteEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEByteCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEByteEncryptor | +|
|---|---|
+ class |
+PooledPBEByteEncryptor
+
++ + Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEByteEncryptor
+
++ + Standard implementation of the PBEByteEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEStringCleanablePasswordEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEStringCleanablePasswordEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEStringCleanablePasswordEncryptor | +|
|---|---|
+ class |
+PooledPBEStringEncryptor
+
++ + Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEStringEncryptor
+
++ + Standard implementation of the PBEStringEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEStringEncryptor | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PBEStringEncryptor in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of PBEStringEncryptor in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+PBEStringCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement PBEStringEncryptor | +|
|---|---|
+ class |
+PooledPBEStringEncryptor
+
++ + Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEStringEncryptor
+
++ + Standard implementation of the PBEStringEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PasswordBased | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of PasswordBased in org.jasypt.encryption.pbe | +
|---|
+ +
| Subinterfaces of PasswordBased in org.jasypt.encryption.pbe | +|
|---|---|
+ interface |
+CleanablePasswordBased
+
++ + Common interface for all entities which can be set a password in char[] shape, + which can be cleaned once the encryptor is initialized so that no immutable + Strings containing the password are left in memory. |
+
+ interface |
+PBEBigDecimalCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEBigDecimalEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result. |
+
+ interface |
+PBEBigIntegerCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEBigIntegerEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result. |
+
+ interface |
+PBEByteCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEByteEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result. |
+
+ interface |
+PBEStringCleanablePasswordEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+
+ interface |
+PBEStringEncryptor
+
++ + Common interface for all Password Based Encryptors which receive a + String message and return a String result. |
+
+ +
| Classes in org.jasypt.encryption.pbe that implement PasswordBased | +|
|---|---|
+ class |
+PooledPBEBigDecimalEncryptor
+
++ + Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEBigIntegerEncryptor
+
++ + Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEByteEncryptor
+
++ + Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+PooledPBEStringEncryptor
+
++ + Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
+ class |
+StandardPBEBigDecimalEncryptor
+
++ + Standard implementation of the PBEBigDecimalEncryptor interface. |
+
+ class |
+StandardPBEBigIntegerEncryptor
+
++ + Standard implementation of the PBEBigIntegerEncryptor interface. |
+
+ class |
+StandardPBEByteEncryptor
+
++ + Standard implementation of the PBEByteEncryptor interface. |
+
+ class |
+StandardPBEStringEncryptor
+
++ + Standard implementation of the PBEStringEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
org.jasypt.encryption.pbe.config.EnvironmentPBEConfig +
public class EnvironmentPBEConfig
+
+ Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties.
+
+ The name of the environment variable or system property (JVM property) to + query for each parameter can be set with its corresponding + setXEnvName or setXSysProperty method. +
+
+ As this class extends SimplePBEConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its value is not configured + in any way, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
EnvironmentPBEConfig()
+
++ + Creates a new EnvironmentPBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getAlgorithmEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the algorithm. |
+
+ String |
+getAlgorithmSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the algorithm. |
+
+ String |
+getKeyObtentionIterationsEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the key obtention iteration count. |
+
+ String |
+getKeyObtentionIterationsSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the key obtention iteration count. |
+
+ String |
+getPasswordEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the password. |
+
+ String |
+getPasswordSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the password. |
+
+ String |
+getPoolSizeEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the value for the poolSize + property. |
+
+ String |
+getPoolSizeSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the value for the poolSize + property. |
+
+ String |
+getProviderClassNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the provider class name. |
+
+ String |
+getProviderClassNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the provider class name. |
+
+ String |
+getProviderNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the provider name. |
+
+ String |
+getProviderNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the provider name. |
+
+ String |
+getSaltGeneratorClassNameEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the salt generator class name. |
+
+ String |
+getSaltGeneratorClassNameSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the salt generator class name. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets a value for the encryption algorithm |
+
+ void |
+setAlgorithmEnvName(String algorithmEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the algorithm. |
+
+ void |
+setAlgorithmSysPropertyName(String algorithmSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the algorithm. |
+
+ void |
+setKeyObtentionIterations(Integer keyObtentionIterations)
+
++ Sets the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setKeyObtentionIterations(String keyObtentionIterations)
+
++ Sets the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setKeyObtentionIterationsEnvName(String keyObtentionIterationsEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the key obtention iteration count. |
+
+ void |
+setKeyObtentionIterationsSysPropertyName(String keyObtentionIterationsSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the key obtention iteration count. |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used for encryption. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used for encryption, as a char[]. |
+
+ void |
+setPasswordEnvName(String passwordEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the password. |
+
+ void |
+setPasswordSysPropertyName(String passwordSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the password. |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ + Sets the size of the pool of encryptors to be created. |
+
+ void |
+setPoolSize(String poolSize)
+
++ + Sets the size of the pool of encryptors to be created. |
+
+ void |
+setPoolSizeEnvName(String poolSizeEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the poolSize + property. |
+
+ void |
+setPoolSizeSysPropertyName(String poolSizeSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be used for obtaining the encryption + algorithm. |
+
+ void |
+setProviderClassName(String providerClassName)
+
++ + Sets the security provider to be used for obtaining the encryption + algorithm. |
+
+ void |
+setProviderClassNameEnvName(String providerClassNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the provider class name. |
+
+ void |
+setProviderClassNameSysPropertyName(String providerClassNameSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the provider class name. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the encryption + algorithm. |
+
+ void |
+setProviderNameEnvName(String providerNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the provider name. |
+
+ void |
+setProviderNameSysPropertyName(String providerNameSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the provider name. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
+ void |
+setSaltGeneratorClassName(String saltGeneratorClassName)
+
++ + Sets the salt generator. |
+
+ void |
+setSaltGeneratorClassNameEnvName(String saltGeneratorClassNameEnvName)
+
++ + Set the config object to use the specified environment variable to + load the value for the salt generator class name. |
+
+ void |
+setSaltGeneratorClassNameSysPropertyName(String saltGeneratorClassNameSysPropertyName)
+
++ + Set the config object to use the specified JVM system property to + load the value for the salt generator class name. |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.SimplePBEConfig | +
|---|
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EnvironmentPBEConfig()+
+ Creates a new EnvironmentPBEConfig instance. +
++
| +Method Detail | +
|---|
+public String getAlgorithmEnvName()+
+
+public void setAlgorithmEnvName(String algorithmEnvName)+
+
algorithmEnvName - the name of the environment variable+public String getAlgorithmSysPropertyName()+
+
+public void setAlgorithmSysPropertyName(String algorithmSysPropertyName)+
+
algorithmSysPropertyName - the name of the property+public String getKeyObtentionIterationsEnvName()+
+
+public void setKeyObtentionIterationsEnvName(String keyObtentionIterationsEnvName)+
+
keyObtentionIterationsEnvName - the name of the environment variable+public String getKeyObtentionIterationsSysPropertyName()+
+
+public void setKeyObtentionIterationsSysPropertyName(String keyObtentionIterationsSysPropertyName)+
+
keyObtentionIterationsSysPropertyName - the name of the property+public String getPasswordEnvName()+
+
+public void setPasswordEnvName(String passwordEnvName)+
+
passwordEnvName - the name of the environment variable+public String getPasswordSysPropertyName()+
+
+public void setPasswordSysPropertyName(String passwordSysPropertyName)+
+
passwordSysPropertyName - the name of the property+public String getSaltGeneratorClassNameEnvName()+
+
+public void setSaltGeneratorClassNameEnvName(String saltGeneratorClassNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the salt generator class name. +
++ The salt generator class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the encryptor. +
++
saltGeneratorClassNameEnvName - the name of the environment variable+public String getSaltGeneratorClassNameSysPropertyName()+
+
+public void setSaltGeneratorClassNameSysPropertyName(String saltGeneratorClassNameSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the salt generator class name. +
++ The salt generator class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the encryptor. +
++
saltGeneratorClassNameSysPropertyName - the name of the property+public String getProviderNameEnvName()+
+
+public void setProviderNameEnvName(String providerNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the provider name. +
++
providerNameEnvName - the name of the environment variable+public String getProviderNameSysPropertyName()+
+
+public void setProviderNameSysPropertyName(String providerNameSysPropertyName)+
+
providerNameSysPropertyName - the name of the property+public String getProviderClassNameEnvName()+
+
+public void setProviderClassNameEnvName(String providerClassNameEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the provider class name. +
++ The provider class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the encryptor. +
++
providerClassNameEnvName - the name of the environment variable+public String getProviderClassNameSysPropertyName()+
+
+public void setProviderClassNameSysPropertyName(String providerClassNameSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the provider class name. +
++ The provider class name which is set here must have a no-argument + constructor, so that it can be instantiated and passed to the encryptor. +
++
providerClassNameSysPropertyName - the name of the property+public String getPoolSizeEnvName()+
+
+public void setPoolSizeEnvName(String poolSizeEnvName)+
+ Set the config object to use the specified environment variable to + load the value for the poolSize + property. +
++
poolSizeEnvName - the name of the environment variable+public String getPoolSizeSysPropertyName()+
+
+public void setPoolSizeSysPropertyName(String poolSizeSysPropertyName)+
+ Set the config object to use the specified JVM system property to + load the value for the useLenientSaltSizeCheck + property. +
++
poolSizeSysPropertyName - the name of the property+public void setAlgorithm(String algorithm)+
SimplePBEConfig+ Sets a value for the encryption algorithm +
++ This algorithm has to be supported by your JCE provider and, if this provider + supports it, you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
+
+ Determines the result of: SimplePBEConfig.getAlgorithm()
+
+
setAlgorithm in class SimplePBEConfigalgorithm - the name of the algorithm to be used+public void setKeyObtentionIterations(Integer keyObtentionIterations)+
SimplePBEConfig
+ Determines the result of: SimplePBEConfig.getKeyObtentionIterations()
+
+
setKeyObtentionIterations in class SimplePBEConfigkeyObtentionIterations - the number of iterations.+public void setKeyObtentionIterations(String keyObtentionIterations)+
SimplePBEConfig
+ Determines the result of: SimplePBEConfig.getKeyObtentionIterations()
+
+
setKeyObtentionIterations in class SimplePBEConfigkeyObtentionIterations - the number of iterations.+public void setPassword(String password)+
SimplePBEConfig
+ Determines the result of: SimplePBEConfig.getPassword() and
+ SimplePBEConfig.getPasswordCharArray().
+
+
setPassword in class SimplePBEConfigpassword - the password to be used.+public void setPasswordCharArray(char[] password)+
SimplePBEConfig+ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored in the configuration object. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ Determines the result of: SimplePBEConfig.getPassword() and
+ SimplePBEConfig.getPasswordCharArray().
+
+
setPasswordCharArray in class SimplePBEConfigpassword - the password to be used.+public void setSaltGenerator(SaltGenerator saltGenerator)+
SimplePBEConfig+ Sets the salt generator. +
++ If not set, null will returned. +
+
+ Determines the result of: SimplePBEConfig.getSaltGenerator()
+
+
setSaltGenerator in class SimplePBEConfigsaltGenerator - the salt generator.+public void setSaltGeneratorClassName(String saltGeneratorClassName)+
SimplePBEConfig+ Sets the salt generator. +
++ If not set, null will returned. +
+
+ Determines the result of: SimplePBEConfig.getSaltGenerator()
+
+
setSaltGeneratorClassName in class SimplePBEConfigsaltGeneratorClassName - the name of the salt generator class.+public void setProviderName(String providerName)+
SimplePBEConfig+ Sets the name of the security provider to be asked for the encryption + algorithm. This provider should be already registered. +
++ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimplePBEConfig.getProviderName()
+
+
setProviderName in class SimplePBEConfigproviderName - the name of the security provider.+public void setProvider(java.security.Provider provider)+
SimplePBEConfig
+ Sets the security provider to be used for obtaining the encryption
+ algorithm. This method is an alternative to
+ both SimplePBEConfig.setProviderName(String) and
+ SimplePBEConfig.setProviderClassName(String) and they should not be used
+ altogether.
+ The provider specified with SimplePBEConfig.setProvider(Provider) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimplePBEConfig.getProvider()
+
+
setProvider in class SimplePBEConfigprovider - the security provider object.+public void setProviderClassName(String providerClassName)+
SimplePBEConfig
+ Sets the security provider to be used for obtaining the encryption
+ algorithm. This method is an alternative to
+ both SimplePBEConfig.setProviderName(String) and SimplePBEConfig.setProvider(Provider)
+ and they should not be used altogether.
+ The provider specified with SimplePBEConfig.setProviderClassName(String) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimplePBEConfig.getProvider()
+
+
setProviderClassName in class SimplePBEConfigproviderClassName - the name of the security provider class.+public void setPoolSize(Integer poolSize)+
SimplePBEConfig+ Sets the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimplePBEConfig.getPoolSize()
+
+
setPoolSize in class SimplePBEConfigpoolSize - the size of the pool to be used if this configuration is used with a
+ pooled encryptor+public void setPoolSize(String poolSize)+
SimplePBEConfig+ Sets the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++ If not set, null will be returned. +
+
+ Determines the result of: SimplePBEConfig.getPoolSize()
+
+
setPoolSize in class SimplePBEConfigpoolSize - the size of the pool to be used if this configuration is used with a
+ pooled encryptor
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
org.jasypt.encryption.pbe.config.EnvironmentPBEConfig +
org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig +
public class EnvironmentStringPBEConfig
+
+ Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties.
+
+ The name of the environment variable or system property (JVM property) to + query for each parameter can be set with its corresponding + setXEnvName or setXSysProperty method. +
+
+ As this class extends SimplePBEConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its value is not configured + in any way, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
EnvironmentStringPBEConfig()
+
++ + Creates a new EnvironmentStringPBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ String |
+getStringOutputTypeEnvName()
+
++ Retrieve the name of the environment variable which value has been + loaded as the String output type. |
+
+ String |
+getStringOutputTypeSysPropertyName()
+
++ Retrieve the name of the JVM system property which value has been + loaded as the String output type. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
+ void |
+setStringOutputTypeEnvName(String stringOutputTypeEnvName)
+
++ Set the config object to use the specified environment variable to + load the value for the String output type. |
+
+ void |
+setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)
+
++ Set the config object to use the specified JVM system property to + load the value for the String output type. |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.SimplePBEConfig | +
|---|
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface org.jasypt.encryption.pbe.config.PBEConfig | +
|---|
getAlgorithm, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| +Constructor Detail | +
|---|
+public EnvironmentStringPBEConfig()+
+ Creates a new EnvironmentStringPBEConfig instance. +
++
| +Method Detail | +
|---|
+public String getStringOutputTypeEnvName()+
+
+public void setStringOutputTypeEnvName(String stringOutputTypeEnvName)+
+
stringOutputTypeEnvName - the name of the environment variable+public String getStringOutputTypeSysPropertyName()+
+
+public void setStringOutputTypeSysPropertyName(String stringOutputTypeSysPropertyName)+
+
stringOutputTypeSysPropertyName - the name of the property+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public String getStringOutputType()+
StringPBEConfig+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
getStringOutputType in interface StringPBEConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBECleanablePasswordConfig
+
+ Common interface for all PBEConfig implementations that store passwords as char[] instead + of String and also allow this passwords to be set as char[] instead of Strings. +
++ +
+
| +Method Summary | +|
|---|---|
+ void |
+cleanPassword()
+
++ + Clean the password stored in this configuration object. |
+
+ char[] |
+getPasswordCharArray()
+
++ + Return the password set, as a char array. |
+
| +Method Detail | +
|---|
+char[] getPasswordCharArray()+
+ Return the password set, as a char array. +
++ Important: the returned array MUST BE A COPY of the one + stored in the configuration object. The caller of + this method is therefore be responsible for cleaning this + resulting char[]. +
++
+void cleanPassword()+
+ Clean the password stored in this configuration object. +
++ A common implementation of this cleaning operation consists of + iterating the array of chars and setting each of its positions to (char)0. +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PBEConfig
+
+ Common interface for config classes applicable to
+ StandardPBEByteEncryptor,
+ StandardPBEStringEncryptor,
+ StandardPBEBigIntegerEncryptor or
+ StandardPBEBigDecimalEncryptor objects.
+
+ This interface lets the user create new PBEConfig + classes which retrieve values for this parameters from different + (and maybe more secure) sources (remote servers, LDAP, other databases...), + and do this transparently for the encryptor object. +
++ The config objects passed to an encryptor will only be queried once + for each configuration parameter, and this will happen + during the initialization of the encryptor object. +
+
+ For a default implementation, see SimplePBEConfig.
+
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getAlgorithm()
+
++ + Returns the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ Integer |
+getKeyObtentionIterations()
+
++ + Returns the number of hashing iterations applied to obtain the + encryption key. |
+
+ String |
+getPassword()
+
++ + Returns the password to be used. |
+
+ Integer |
+getPoolSize()
+
++ + Get the size of the pool of encryptors to be created. |
+
+ java.security.Provider |
+getProvider()
+
++ + Returns the java.security.Provider implementation object + to be used by the encryptor for obtaining the encryption algorithm. |
+
+ String |
+getProviderName()
+
++ + Returns the name of the java.security.Provider implementation + to be used by the encryptor for obtaining the encryption algorithm. |
+
+ SaltGenerator |
+getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the
+ encryptor. |
+
| +Method Detail | +
|---|
+String getAlgorithm()+
+ Returns the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
+ ++ This algorithm has to be supported by the specified JCE provider + (or the default one if no provider has been specified) and, if the + provider supports it, you can also specify mode and + padding for it, like ALGORITHM/MODE/PADDING. +
++
+String getPassword()+
+ Returns the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
+Integer getKeyObtentionIterations()+
+ Returns the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
+SaltGenerator getSaltGenerator()+
+ Returns a SaltGenerator implementation to be used by the
+ encryptor.
+
+ If this method returns null, the encryptor will ignore the config object + when deciding the salt generator to be used. +
++
+String getProviderName()+
+ Returns the name of the java.security.Provider implementation + to be used by the encryptor for obtaining the encryption algorithm. This + provider must have been registered beforehand. +
++ If this method returns null, the encryptor will ignore this parameter + when deciding the name of the security provider to be used. +
+
+ If this method does not return null, and neither does getProvider(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+
+java.security.Provider getProvider()+
+ Returns the java.security.Provider implementation object + to be used by the encryptor for obtaining the encryption algorithm. +
++ If this method returns null, the encryptor will ignore this parameter + when deciding the security provider object to be used. +
+
+ If this method does not return null, and neither does getProviderName(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+ The provider returned by this method does not need to be + registered beforehand, and its use will not result in its + being registered. +
++
+Integer getPoolSize()+
+ Get the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
public class SimplePBEConfig
+
+ Bean implementation for PBEConfig. This class allows
+ the values for the configuration parameters to be set
+ via "standard" setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ Note that there is not an exact correspondence between setX() + and getX() methods, as sometimes two methods like + setProvider() and setProviderClassName() will affect the + same configuration parameter (getProvider()). This means that + several combinations of setX() methods collide, and + should not be called together (a call to setProviderClassName() + will override any previous call to setProvider()). +
+
+ Also note that, in order to satisfy the needs of extreme security-conscious
+ environments in which no immutable String containing the password is allowed
+ to be kept in memory, this configuration objects stores the password as char[]
+ that is cleaned (reset to '') by the jasypt engine as soon as encryption operations
+ start (and therefore the specified password is no longer needed as an attribute)
+ (see PBECleanablePasswordConfig).
+
+ Setting and getting the password as a char[] is also allowed via the
+ getPasswordCharArray() and setPasswordCharArray(char[]) methods.
+
+ +
+
| +Constructor Summary | +|
|---|---|
SimplePBEConfig()
+
++ + Creates a new SimplePBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ void |
+cleanPassword()
+
++ + Clean the password stored in this configuration object. |
+
+ String |
+getAlgorithm()
+
++ + Returns the algorithm to be used for encryption, like + PBEWithMD5AndDES. |
+
+ Integer |
+getKeyObtentionIterations()
+
++ + Returns the number of hashing iterations applied to obtain the + encryption key. |
+
+ String |
+getPassword()
+
++ + Returns the password to be used. |
+
+ char[] |
+getPasswordCharArray()
+
++ + Return the password set, as a char array. |
+
+ Integer |
+getPoolSize()
+
++ + Get the size of the pool of encryptors to be created. |
+
+ java.security.Provider |
+getProvider()
+
++ + Returns the java.security.Provider implementation object + to be used by the encryptor for obtaining the encryption algorithm. |
+
+ String |
+getProviderName()
+
++ + Returns the name of the java.security.Provider implementation + to be used by the encryptor for obtaining the encryption algorithm. |
+
+ SaltGenerator |
+getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the
+ encryptor. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets a value for the encryption algorithm |
+
+ void |
+setKeyObtentionIterations(Integer keyObtentionIterations)
+
++ Sets the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setKeyObtentionIterations(String keyObtentionIterations)
+
++ Sets the number of hashing iterations applied to obtain the + encryption key. |
+
+ void |
+setPassword(String password)
+
++ Sets the password to be used for encryption. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets the password to be used for encryption, as a char[]. |
+
+ void |
+setPoolSize(Integer poolSize)
+
++ + Sets the size of the pool of encryptors to be created. |
+
+ void |
+setPoolSize(String poolSize)
+
++ + Sets the size of the pool of encryptors to be created. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be used for obtaining the encryption + algorithm. |
+
+ void |
+setProviderClassName(String providerClassName)
+
++ + Sets the security provider to be used for obtaining the encryption + algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the encryption + algorithm. |
+
+ void |
+setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
+ void |
+setSaltGeneratorClassName(String saltGeneratorClassName)
+
++ + Sets the salt generator. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public SimplePBEConfig()+
+ Creates a new SimplePBEConfig instance. +
++
| +Method Detail | +
|---|
+public void setAlgorithm(String algorithm)+
+ Sets a value for the encryption algorithm +
++ This algorithm has to be supported by your JCE provider and, if this provider + supports it, you can also specify mode and padding for + it, like ALGORITHM/MODE/PADDING. +
+
+ Determines the result of: getAlgorithm()
+
+
algorithm - the name of the algorithm to be used+public void setPassword(String password)+
+ Determines the result of: getPassword() and
+ getPasswordCharArray().
+
+
password - the password to be used.+public void setPasswordCharArray(char[] password)+
+ This allows the password to be specified as a cleanable + char[] instead of a String, in extreme security conscious environments + in which no copy of the password as an immutable String should + be kept in memory. +
++ Important: the array specified as a parameter WILL BE COPIED + in order to be stored in the configuration object. The caller of + this method will therefore be responsible for its cleaning (jasypt + will only clean the internally stored copy). +
+
+ Determines the result of: getPassword() and
+ getPasswordCharArray().
+
+
password - the password to be used.+public void setKeyObtentionIterations(Integer keyObtentionIterations)+
+ Determines the result of: getKeyObtentionIterations()
+
+
keyObtentionIterations - the number of iterations.+public void setKeyObtentionIterations(String keyObtentionIterations)+
+ Determines the result of: getKeyObtentionIterations()
+
+
keyObtentionIterations - the number of iterations.+public void setSaltGenerator(SaltGenerator saltGenerator)+
+ Sets the salt generator. +
++ If not set, null will returned. +
+
+ Determines the result of: getSaltGenerator()
+
+
saltGenerator - the salt generator.+public void setSaltGeneratorClassName(String saltGeneratorClassName)+
+ Sets the salt generator. +
++ If not set, null will returned. +
+
+ Determines the result of: getSaltGenerator()
+
+
saltGeneratorClassName - the name of the salt generator class.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the encryption + algorithm. This provider should be already registered. +
++ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProviderName()
+
+
providerName - the name of the security provider.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be used for obtaining the encryption
+ algorithm. This method is an alternative to
+ both setProviderName(String) and
+ setProviderClassName(String) and they should not be used
+ altogether.
+ The provider specified with setProvider(Provider) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProvider()
+
+
provider - the security provider object.+public void setProviderClassName(String providerClassName)+
+ Sets the security provider to be used for obtaining the encryption
+ algorithm. This method is an alternative to
+ both setProviderName(String) and setProvider(Provider)
+ and they should not be used altogether.
+ The provider specified with setProviderClassName(String) does not
+ have to be registered beforehand, and its use will not result in its
+ being registered.
+
+ If both the providerName and provider properties + are set, only provider will be used, and providerName + will have no meaning for the encryptor object. +
++ If not set, null will be returned. +
+
+ Determines the result of: getProvider()
+
+
providerClassName - the name of the security provider class.+public void setPoolSize(Integer poolSize)+
+ Sets the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++ If not set, null will be returned. +
+
+ Determines the result of: getPoolSize()
+
+
poolSize - the size of the pool to be used if this configuration is used with a
+ pooled encryptor+public void setPoolSize(String poolSize)+
+ Sets the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++ If not set, null will be returned. +
+
+ Determines the result of: getPoolSize()
+
+
poolSize - the size of the pool to be used if this configuration is used with a
+ pooled encryptor+public String getAlgorithm()+
PBEConfig+ Returns the algorithm to be used for encryption, like + PBEWithMD5AndDES. +
+ ++ This algorithm has to be supported by the specified JCE provider + (or the default one if no provider has been specified) and, if the + provider supports it, you can also specify mode and + padding for it, like ALGORITHM/MODE/PADDING. +
++
getAlgorithm in interface PBEConfig+public String getPassword()+
PBEConfig+ Returns the password to be used. +
+
+ There is no default value for password, so not setting
+ this parameter either from a
+ PBEConfig object or from
+ a call to setPassword will result in an
+ EncryptionInitializationException being thrown during initialization.
+
+
getPassword in interface PBEConfig+public char[] getPasswordCharArray()+
PBECleanablePasswordConfig+ Return the password set, as a char array. +
++ Important: the returned array MUST BE A COPY of the one + stored in the configuration object. The caller of + this method is therefore be responsible for cleaning this + resulting char[]. +
++
getPasswordCharArray in interface PBECleanablePasswordConfig+public Integer getKeyObtentionIterations()+
PBEConfig+ Returns the number of hashing iterations applied to obtain the + encryption key. +
++ This mechanism is explained in + PKCS #5: Password-Based Cryptography Standard. +
++
getKeyObtentionIterations in interface PBEConfig+public SaltGenerator getSaltGenerator()+
PBEConfig
+ Returns a SaltGenerator implementation to be used by the
+ encryptor.
+
+ If this method returns null, the encryptor will ignore the config object + when deciding the salt generator to be used. +
++
getSaltGenerator in interface PBEConfig+public String getProviderName()+
PBEConfig+ Returns the name of the java.security.Provider implementation + to be used by the encryptor for obtaining the encryption algorithm. This + provider must have been registered beforehand. +
++ If this method returns null, the encryptor will ignore this parameter + when deciding the name of the security provider to be used. +
+
+ If this method does not return null, and neither does PBEConfig.getProvider(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+
getProviderName in interface PBEConfig+public java.security.Provider getProvider()+
PBEConfig+ Returns the java.security.Provider implementation object + to be used by the encryptor for obtaining the encryption algorithm. +
++ If this method returns null, the encryptor will ignore this parameter + when deciding the security provider object to be used. +
+
+ If this method does not return null, and neither does PBEConfig.getProviderName(),
+ providerName will be ignored, and the provider object returned
+ by getProvider() will be used.
+
+ The provider returned by this method does not need to be + registered beforehand, and its use will not result in its + being registered. +
++
getProvider in interface PBEConfig+public Integer getPoolSize()+
PBEConfig+ Get the size of the pool of encryptors to be created. +
++ This parameter will be ignored if used with a non-pooled encryptor. +
++
getPoolSize in interface PBEConfig+public void cleanPassword()+
PBECleanablePasswordConfig+ Clean the password stored in this configuration object. +
++ A common implementation of this cleaning operation consists of + iterating the array of chars and setting each of its positions to (char)0. +
++
cleanPassword in interface PBECleanablePasswordConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
org.jasypt.encryption.pbe.config.SimpleStringPBEConfig +
public class SimpleStringPBEConfig
+
+ Bean implementation for StringPBEConfig. This class allows
+ the values for the configuration parameters to be set
+ via "standard" setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
SimpleStringPBEConfig()
+
++ + Creates a new SimpleStringPBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.SimplePBEConfig | +
|---|
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator, setAlgorithm, setKeyObtentionIterations, setKeyObtentionIterations, setPassword, setPasswordCharArray, setPoolSize, setPoolSize, setProvider, setProviderClassName, setProviderName, setSaltGenerator, setSaltGeneratorClassName |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface org.jasypt.encryption.pbe.config.PBEConfig | +
|---|
getAlgorithm, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| +Constructor Detail | +
|---|
+public SimpleStringPBEConfig()+
+ Creates a new SimpleStringPBEConfig instance. +
++
| +Method Detail | +
|---|
+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
+
+ Determines the result of: getStringOutputType()
+
+
stringOutputType - the string output type.+public String getStringOutputType()+
StringPBEConfig+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
getStringOutputType in interface StringPBEConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface StringPBEConfig
+
+ Common interface for config classes applicable to
+ StandardPBEStringEncryptor objects.
+ This interface extends PBEConfig to add config parameters specific
+ to String encryption.
+
+ This interface lets the user create new PBEConfig + classes which retrieve values for this parameters from different + (and maybe more secure) sources (remote servers, LDAP, other databases...), + and do this transparently for the encryptor object. +
++ The config objects passed to an encryptor will only be queried once + for each configuration parameter, and this will happen + during the initialization of the encryptor object. +
+
+ For a default implementation, see SimpleStringPBEConfig.
+
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
| Methods inherited from interface org.jasypt.encryption.pbe.config.PBEConfig | +
|---|
getAlgorithm, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| +Method Detail | +
|---|
+String getStringOutputType()+
+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
org.jasypt.encryption.pbe.config.WebPBEConfig +
public class WebPBEConfig
+
+ Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time.
+
+ For an encryptor to be assigned a password from the web, it only has + to be assigned a WebPBEConfig object, which must be initialized with + both a unique name an a validation word. The name will identify + the config object (and thus the encryptor) and the validation word will + make sure that only an authorized person (for example, the application + deployer) sets the passwords. +
+
+ As this class extends SimplePBEConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
WebPBEConfig()
+
++ + Creates a new WebPBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getName()
+
++ + Returns the name by which this WebPBEConfig object will be identified + from the web. |
+
+ String |
+getValidationWord()
+
++ + Returns the validation word which will be asked from the web to the + person setting the password for the encryptor this config object belongs + to. |
+
+ boolean |
+isComplete()
+
++ + Returns whether this config object is complete or not (both name and + validation word have been set). |
+
+ void |
+setName(String name)
+
++ + Sets the name by which this WebPBEConfig object will be identified + from the web. |
+
+ void |
+setValidationWord(String validation)
+
++ + Sets the validation word which will be asked from the web to the + person setting the password for the encryptor this config object belongs + to. |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.SimplePBEConfig | +
|---|
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator, setAlgorithm, setKeyObtentionIterations, setKeyObtentionIterations, setPassword, setPasswordCharArray, setPoolSize, setPoolSize, setProvider, setProviderClassName, setProviderName, setSaltGenerator, setSaltGeneratorClassName |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public WebPBEConfig()+
+ Creates a new WebPBEConfig instance. +
++
| +Method Detail | +
|---|
+public String getName()+
+ Returns the name by which this WebPBEConfig object will be identified + from the web. This name must be unique for each WebPBEConfig object. +
++
+public void setName(String name)+
+ Sets the name by which this WebPBEConfig object will be identified + from the web. This name must be unique for each WebPBEConfig object. +
++
name - the unique name which will identify this config object.+public String getValidationWord()+
+ Returns the validation word which will be asked from the web to the + person setting the password for the encryptor this config object belongs + to. This validation word will make sure that only an authorized person + (for example, the application deployer) sets the value for the + encryption password. +
++
+public void setValidationWord(String validation)+
+ Sets the validation word which will be asked from the web to the + person setting the password for the encryptor this config object belongs + to. This validation word will make sure that only an authorized person + (for example, the application deployer) sets the value for the + encryption password. +
++
validation - the validation word to be assigned to this config object+public boolean isComplete()+
+ Returns whether this config object is complete or not (both name and + validation word have been set). Intended for internal use only. +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.encryption.pbe.config.SimplePBEConfig +
org.jasypt.encryption.pbe.config.WebPBEConfig +
org.jasypt.encryption.pbe.config.WebStringPBEConfig +
public class WebStringPBEConfig
+
+ Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time.
+
+ For an encryptor to be assigned a password from the web, it only has + to be assigned a WebPBEConfig object, which must be initialized with + both a unique name an a validation word. The name will identify + the config object (and thus the encryptor) and the validation word will + make sure that only an authorized person (for example, the application + deployer) sets the passwords. +
+
+ As this class extends SimplePBEConfig, parameter values
+ can be also set with the usual setX methods.
+
+ For any of the configuration parameters, if its setX + method is not called, a null value will be returned by the + corresponding getX method. +
++ +
+
| +Constructor Summary | +|
|---|---|
WebStringPBEConfig()
+
++ + Creates a new WebStringPBEConfig instance. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getStringOutputType()
+
++ + This parameter lets the user specify the form in which String output + will be encoded. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.WebPBEConfig | +
|---|
getName, getValidationWord, isComplete, setName, setValidationWord |
+
| Methods inherited from class org.jasypt.encryption.pbe.config.SimplePBEConfig | +
|---|
cleanPassword, getAlgorithm, getKeyObtentionIterations, getPassword, getPasswordCharArray, getPoolSize, getProvider, getProviderName, getSaltGenerator, setAlgorithm, setKeyObtentionIterations, setKeyObtentionIterations, setPassword, setPasswordCharArray, setPoolSize, setPoolSize, setProvider, setProviderClassName, setProviderName, setSaltGenerator, setSaltGeneratorClassName |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface org.jasypt.encryption.pbe.config.PBEConfig | +
|---|
getAlgorithm, getKeyObtentionIterations, getPassword, getPoolSize, getProvider, getProviderName, getSaltGenerator |
+
| +Constructor Detail | +
|---|
+public WebStringPBEConfig()+
+ Creates a new WebStringPBEConfig instance. +
++
| +Method Detail | +
|---|
+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++ If not set, null will be returned. +
++
stringOutputType - the string output type.+public String getStringOutputType()+
StringPBEConfig+ This parameter lets the user specify the form in which String output + will be encoded. Available encoding types are: +
++
getStringOutputType in interface StringPBEConfig
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EnvironmentPBEConfig | +|
|---|---|
| org.jasypt.encryption.pbe.config | ++ |
| +Uses of EnvironmentPBEConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Subclasses of EnvironmentPBEConfig in org.jasypt.encryption.pbe.config | +|
|---|---|
+ class |
+EnvironmentStringPBEConfig
+
++ + Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBECleanablePasswordConfig | +|
|---|---|
| org.jasypt.encryption.pbe.config | ++ |
| +Uses of PBECleanablePasswordConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe.config that implement PBECleanablePasswordConfig | +|
|---|---|
+ class |
+EnvironmentPBEConfig
+
++ + Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+EnvironmentStringPBEConfig
+
++ + Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimplePBEConfig
+
++ + Bean implementation for PBEConfig. |
+
+ class |
+SimpleStringPBEConfig
+
++ + Bean implementation for StringPBEConfig. |
+
+ class |
+WebPBEConfig
+
++ + Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+ class |
+WebStringPBEConfig
+
++ + Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PBEConfig | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.encryption.pbe.config | ++ |
| +Uses of PBEConfig in org.jasypt.encryption.pbe | +
|---|
+ +
| Methods in org.jasypt.encryption.pbe with parameters of type PBEConfig | +|
|---|---|
+ void |
+StandardPBEStringEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+PooledPBEStringEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+StandardPBEBigDecimalEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+PooledPBEBigIntegerEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+PooledPBEBigDecimalEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+PooledPBEByteEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+StandardPBEBigIntegerEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
+ void |
+StandardPBEByteEncryptor.setConfig(PBEConfig config)
+
++ + Sets a PBEConfig object
+ for the encryptor. |
+
| +Uses of PBEConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Subinterfaces of PBEConfig in org.jasypt.encryption.pbe.config | +|
|---|---|
+ interface |
+StringPBEConfig
+
++ + Common interface for config classes applicable to + StandardPBEStringEncryptor objects. |
+
+ +
| Classes in org.jasypt.encryption.pbe.config that implement PBEConfig | +|
|---|---|
+ class |
+EnvironmentPBEConfig
+
++ + Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+EnvironmentStringPBEConfig
+
++ + Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimplePBEConfig
+
++ + Bean implementation for PBEConfig. |
+
+ class |
+SimpleStringPBEConfig
+
++ + Bean implementation for StringPBEConfig. |
+
+ class |
+WebPBEConfig
+
++ + Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+ class |
+WebStringPBEConfig
+
++ + Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SimplePBEConfig | +|
|---|---|
| org.jasypt.encryption.pbe.config | ++ |
| +Uses of SimplePBEConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Subclasses of SimplePBEConfig in org.jasypt.encryption.pbe.config | +|
|---|---|
+ class |
+EnvironmentPBEConfig
+
++ + Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+EnvironmentStringPBEConfig
+
++ + Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimpleStringPBEConfig
+
++ + Bean implementation for StringPBEConfig. |
+
+ class |
+WebPBEConfig
+
++ + Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+ class |
+WebStringPBEConfig
+
++ + Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use StringPBEConfig | +|
|---|---|
| org.jasypt.encryption.pbe.config | ++ |
| +Uses of StringPBEConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Classes in org.jasypt.encryption.pbe.config that implement StringPBEConfig | +|
|---|---|
+ class |
+EnvironmentStringPBEConfig
+
++ + Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
+ class |
+SimpleStringPBEConfig
+
++ + Bean implementation for StringPBEConfig. |
+
+ class |
+WebStringPBEConfig
+
++ + Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use WebPBEConfig | +|
|---|---|
| org.jasypt.encryption.pbe.config | ++ |
| org.jasypt.web.pbeconfig | ++ |
| +Uses of WebPBEConfig in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Subclasses of WebPBEConfig in org.jasypt.encryption.pbe.config | +|
|---|---|
+ class |
+WebStringPBEConfig
+
++ + Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
| +Uses of WebPBEConfig in org.jasypt.web.pbeconfig | +
|---|
+ +
| Methods in org.jasypt.web.pbeconfig with parameters of type WebPBEConfig | +|
|---|---|
+ void |
+WebPBEConfigRegistry.registerConfig(WebPBEConfig config)
+
++ |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +PBECleanablePasswordConfig + +PBEConfig + +StringPBEConfig |
+
|
+Classes
+
+ +EnvironmentPBEConfig + +EnvironmentStringPBEConfig + +SimplePBEConfig + +SimpleStringPBEConfig + +WebPBEConfig + +WebStringPBEConfig |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| PBECleanablePasswordConfig | ++ Common interface for all PBEConfig implementations that store passwords as char[] instead + of String and also allow this passwords to be set as char[] instead of Strings. | +
| PBEConfig | +
+ Common interface for config classes applicable to
+ StandardPBEByteEncryptor,
+ StandardPBEStringEncryptor,
+ StandardPBEBigIntegerEncryptor or
+ StandardPBEBigDecimalEncryptor objects. |
+
| StringPBEConfig | +
+ Common interface for config classes applicable to
+ StandardPBEStringEncryptor objects. |
+
+ +
| +Class Summary | +|
|---|---|
| EnvironmentPBEConfig | +
+ Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
| EnvironmentStringPBEConfig | +
+ Implementation for StringPBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+
| SimplePBEConfig | +
+ Bean implementation for PBEConfig. |
+
| SimpleStringPBEConfig | +
+ Bean implementation for StringPBEConfig. |
+
| WebPBEConfig | +
+ Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
| WebStringPBEConfig | +
+ Implementation for StringPBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.encryption.pbe.config | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.encryption.pbe.config | ++ |
| org.jasypt.web.pbeconfig | ++ |
| +Classes in org.jasypt.encryption.pbe.config used by org.jasypt.encryption.pbe | +|
|---|---|
| PBEConfig
+
+ + + Common interface for config classes applicable to + StandardPBEByteEncryptor,
+ StandardPBEStringEncryptor,
+ StandardPBEBigIntegerEncryptor or
+ StandardPBEBigDecimalEncryptor objects. |
+|
| +Classes in org.jasypt.encryption.pbe.config used by org.jasypt.encryption.pbe.config | +|
|---|---|
| EnvironmentPBEConfig
+
+ + + Implementation for PBEConfig which can retrieve configuration
+ values from environment variables or system properties. |
+|
| PBECleanablePasswordConfig
+
+ + + Common interface for all PBEConfig implementations that store passwords as char[] instead + of String and also allow this passwords to be set as char[] instead of Strings. |
+|
| PBEConfig
+
+ + + Common interface for config classes applicable to + StandardPBEByteEncryptor,
+ StandardPBEStringEncryptor,
+ StandardPBEBigIntegerEncryptor or
+ StandardPBEBigDecimalEncryptor objects. |
+|
| SimplePBEConfig
+
+ + + Bean implementation for PBEConfig. |
+|
| StringPBEConfig
+
+ + + Common interface for config classes applicable to + StandardPBEStringEncryptor objects. |
+|
| WebPBEConfig
+
+ + + Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+|
| +Classes in org.jasypt.encryption.pbe.config used by org.jasypt.web.pbeconfig | +|
|---|---|
| WebPBEConfig
+
+ + + Implementation for PBEConfig which can be used from the
+ Web PBE Config infrastructure (Filter + Servlet) to set the
+ password for an encryptor from the web at initialization time. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| CleanablePasswordBased | ++ Common interface for all entities which can be set a password in char[] shape, + which can be cleaned once the encryptor is initialized so that no immutable + Strings containing the password are left in memory. | +
| PasswordBased | ++ Common interface for all entities which can be set a password. | +
| PBEBigDecimalCleanablePasswordEncryptor | ++ Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). | +
| PBEBigDecimalEncryptor | ++ Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result. | +
| PBEBigIntegerCleanablePasswordEncryptor | ++ Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). | +
| PBEBigIntegerEncryptor | ++ Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result. | +
| PBEByteCleanablePasswordEncryptor | ++ Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). | +
| PBEByteEncryptor | ++ Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result. | +
| PBEStringCleanablePasswordEncryptor | ++ Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). | +
| PBEStringEncryptor | ++ Common interface for all Password Based Encryptors which receive a + String message and return a String result. | +
+ +
| +Class Summary | +|
|---|---|
| PooledPBEBigDecimalEncryptor | +
+ Pooled implementation of PBEBigDecimalEncryptor that in fact contains
+ an array of StandardPBEBigDecimalEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
| PooledPBEBigIntegerEncryptor | +
+ Pooled implementation of PBEBigIntegerEncryptor that in fact contains
+ an array of StandardPBEBigIntegerEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
| PooledPBEByteEncryptor | +
+ Pooled implementation of PBEByteEncryptor that in fact contains
+ an array of StandardPBEByteEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
| PooledPBEStringEncryptor | +
+ Pooled implementation of PBEStringEncryptor that in fact contains
+ an array of StandardPBEStringEncryptor objects which are used
+ to attend encrypt and decrypt requests in round-robin. |
+
| StandardPBEBigDecimalEncryptor | +
+ Standard implementation of the PBEBigDecimalEncryptor interface. |
+
| StandardPBEBigIntegerEncryptor | +
+ Standard implementation of the PBEBigIntegerEncryptor interface. |
+
| StandardPBEByteEncryptor | +
+ Standard implementation of the PBEByteEncryptor interface. |
+
| StandardPBEStringEncryptor | +
+ Standard implementation of the PBEStringEncryptor interface. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.encryption.pbe | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Classes in org.jasypt.encryption.pbe used by org.jasypt.encryption.pbe | +|
|---|---|
| CleanablePasswordBased
+
+ + + Common interface for all entities which can be set a password in char[] shape, + which can be cleaned once the encryptor is initialized so that no immutable + Strings containing the password are left in memory. |
+|
| PasswordBased
+
+ + + Common interface for all entities which can be set a password. |
+|
| PBEBigDecimalCleanablePasswordEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+|
| PBEBigDecimalEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + BigDecimal message and return a BigDecimal result. |
+|
| PBEBigIntegerCleanablePasswordEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+|
| PBEBigIntegerEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a BigInteger + message and return a BigInteger result. |
+|
| PBEByteCleanablePasswordEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+|
| PBEByteEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + byte array message and return a byte array result. |
+|
| PBEStringCleanablePasswordEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + String message and return a String result, and provide means + to set passwords as cleanable char[] objects (instead of + immutable Strings). |
+|
| PBEStringEncryptor
+
+ + + Common interface for all Password Based Encryptors which receive a + String message and return a String result. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++Throwable +
Exception +
RuntimeException +
org.jasypt.exceptions.AlreadyInitializedException +
public final class AlreadyInitializedException
+Exception thrown when an attempt is made to change the configuration + of an entity once it has been initialized. +
+ +
+
| +Constructor Summary | +|
|---|---|
AlreadyInitializedException()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public AlreadyInitializedException()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++Throwable +
Exception +
RuntimeException +
org.jasypt.exceptions.EncryptionInitializationException +
public final class EncryptionInitializationException
+Exception thrown when an error is raised during initialization of + an entity. +
+ +
+
| +Constructor Summary | +|
|---|---|
EncryptionInitializationException()
+
++ |
+|
EncryptionInitializationException(String msg)
+
++ |
+|
EncryptionInitializationException(String msg,
+ Throwable t)
+
++ |
+|
EncryptionInitializationException(Throwable t)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptionInitializationException()+
+public EncryptionInitializationException(Throwable t)+
+public EncryptionInitializationException(String msg, + Throwable t)+
+public EncryptionInitializationException(String msg)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++Throwable +
Exception +
RuntimeException +
org.jasypt.exceptions.EncryptionOperationNotPossibleException +
public final class EncryptionOperationNotPossibleException
+
+ General exception thrown when any errors are raised during encryption, + digesting, etc. +
++ It is intended to provide very little information (if any) of the error + causes, so that encryption internals are not revealed through error + messages. +
++ +
+
| +Constructor Summary | +|
|---|---|
EncryptionOperationNotPossibleException()
+
++ |
+|
EncryptionOperationNotPossibleException(String message)
+
++ |
+|
EncryptionOperationNotPossibleException(Throwable t)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptionOperationNotPossibleException()+
+public EncryptionOperationNotPossibleException(Throwable t)+
+public EncryptionOperationNotPossibleException(String message)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++Throwable +
Exception +
RuntimeException +
org.jasypt.exceptions.PasswordAlreadyCleanedException +
public final class PasswordAlreadyCleanedException
+Exception thrown when an attempt is made to access the configured + password of an encryptor when this password has already been + cleaned (so that it appears no more as an immutable String in memory). +
+ +
+
| +Constructor Summary | +|
|---|---|
PasswordAlreadyCleanedException()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public PasswordAlreadyCleanedException()+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EncryptionOperationNotPossibleException | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Uses of EncryptionOperationNotPossibleException in org.jasypt.encryption.pbe | +
|---|
+ +
| Methods in org.jasypt.encryption.pbe that throw EncryptionOperationNotPossibleException | +|
|---|---|
+ byte[] |
+PooledPBEByteEncryptor.decrypt(byte[] encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ byte[] |
+StandardPBEByteEncryptor.decrypt(byte[] encryptedMessage)
+
++ + Decrypts a message using the specified configuration. |
+
+ byte[] |
+PooledPBEByteEncryptor.encrypt(byte[] message)
+
++ + Encrypts a message using the specified configuration. |
+
+ byte[] |
+StandardPBEByteEncryptor.encrypt(byte[] message)
+
++ + Encrypts a message using the specified configuration. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Exceptions
+
+ +AlreadyInitializedException + +EncryptionInitializationException + +EncryptionOperationNotPossibleException + +PasswordAlreadyCleanedException |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Exception Summary | +|
|---|---|
| AlreadyInitializedException | +Exception thrown when an attempt is made to change the configuration + of an entity once it has been initialized. | +
| EncryptionInitializationException | +Exception thrown when an error is raised during initialization of + an entity. | +
| EncryptionOperationNotPossibleException | ++ General exception thrown when any errors are raised during encryption, + digesting, etc. | +
| PasswordAlreadyCleanedException | +Exception thrown when an attempt is made to access the configured + password of an encryptor when this password has already been + cleaned (so that it appears no more as an immutable String in memory). | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.exceptions | +|
|---|---|
| org.jasypt.encryption.pbe | ++ |
| +Classes in org.jasypt.exceptions used by org.jasypt.encryption.pbe | +|
|---|---|
| EncryptionOperationNotPossibleException
+
+ + + General exception thrown when any errors are raised during encryption, + digesting, etc. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.intf.cli.AlgorithmRegistryCLI +
public final class AlgorithmRegistryCLI
+
+ This class supports the CLI "listAlgorithms" operation. +
++ It should NEVER be used inside your code, only from the supplied + command-line tools. +
++ +
+
| +Method Summary | +|
|---|---|
+static void |
+main(String[] args)
+
++ + CLI execution method. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static void main(String[] args)+
+ CLI execution method. +
++
args - the command execution arguments
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI +
public final class JasyptPBEStringDecryptionCLI
+
+ This class supports the CLI "decrypt" operation. +
++ It should NEVER be used inside your code, only from the supplied + command-line tools. +
++ +
+
| +Method Summary | +|
|---|---|
+static void |
+main(String[] args)
+
++ + CLI execution method. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static void main(String[] args)+
+ CLI execution method. +
++
args - the command execution arguments
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI +
public final class JasyptPBEStringEncryptionCLI
+
+ This class supports the CLI "encrypt" operation. +
++ It should NEVER be used inside your code, only from the supplied + command-line tools. +
++ +
+
| +Method Summary | +|
|---|---|
+static void |
+main(String[] args)
+
++ + CLI execution method. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static void main(String[] args)+
+ CLI execution method. +
++
args - the command execution arguments
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.intf.cli.JasyptStringDigestCLI +
public final class JasyptStringDigestCLI
+
+ This class supports the CLI "digest" operation. +
++ It should NEVER be used inside your code, only from the supplied + command-line tools. +
++ +
+
| +Method Summary | +|
|---|---|
+static void |
+main(String[] args)
+
++ + CLI execution method. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static void main(String[] args)+
+ CLI execution method. +
++
args - the command execution arguments
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +AlgorithmRegistryCLI + +JasyptPBEStringDecryptionCLI + +JasyptPBEStringEncryptionCLI + +JasyptStringDigestCLI |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AlgorithmRegistryCLI | ++ This class supports the CLI "listAlgorithms" operation. | +
| JasyptPBEStringDecryptionCLI | ++ This class supports the CLI "decrypt" operation. | +
| JasyptPBEStringEncryptionCLI | ++ This class supports the CLI "encrypt" operation. | +
| JasyptStringDigestCLI | ++ This class supports the CLI "digest" operation. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.intf.service.JasyptStatelessService +
public final class JasyptStatelessService
+
+ This class acts as a stateless service for encryption, decryption and + digest operations, letting its clients configure all the jasypt environment + (algorithms, passwords, providers...) from Strings in a single call, be it + using direct values, environment variables or java vm properties. +
++ It is meant to service the CLI interfaces, but it can also be used for other + purposes. For instance, by subclassing or wrapping it with a JAX-WS web + service class, developers can easily create an encryption web service. +
++ +
+
| +Constructor Summary | +|
|---|---|
JasyptStatelessService()
+
++ Creates a new instance of JasyptStatelessService. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String input,
+ String password,
+ String passwordEnvName,
+ String passwordSysPropertyName,
+ String algorithm,
+ String algorithmEnvName,
+ String algorithmSysPropertyName,
+ String keyObtentionIterations,
+ String keyObtentionIterationsEnvName,
+ String keyObtentionIterationsSysPropertyName,
+ String saltGeneratorClassName,
+ String saltGeneratorClassNameEnvName,
+ String saltGeneratorClassNameSysPropertyName,
+ String providerName,
+ String providerNameEnvName,
+ String providerNameSysPropertyName,
+ String providerClassName,
+ String providerClassNameEnvName,
+ String providerClassNameSysPropertyName,
+ String stringOutputType,
+ String stringOutputTypeEnvName,
+ String stringOutputTypeSysPropertyName)
+
++ + Configure and perform a decryption operation. |
+
+ String |
+digest(String input,
+ String algorithm,
+ String algorithmEnvName,
+ String algorithmSysPropertyName,
+ String iterations,
+ String iterationsEnvName,
+ String iterationsSysPropertyName,
+ String saltSizeBytes,
+ String saltSizeBytesEnvName,
+ String saltSizeBytesSysPropertyName,
+ String saltGeneratorClassName,
+ String saltGeneratorClassNameEnvName,
+ String saltGeneratorClassNameSysPropertyName,
+ String providerName,
+ String providerNameEnvName,
+ String providerNameSysPropertyName,
+ String providerClassName,
+ String providerClassNameEnvName,
+ String providerClassNameSysPropertyName,
+ String invertPositionOfSaltInMessageBeforeDigesting,
+ String invertPositionOfSaltInMessageBeforeDigestingEnvName,
+ String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName,
+ String invertPositionOfPlainSaltInEncryptionResults,
+ String invertPositionOfPlainSaltInEncryptionResultsEnvName,
+ String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName,
+ String useLenientSaltSizeCheck,
+ String useLenientSaltSizeCheckEnvName,
+ String useLenientSaltSizeCheckSysPropertyName,
+ String unicodeNormalizationIgnored,
+ String unicodeNormalizationIgnoredEnvName,
+ String unicodeNormalizationIgnoredSysPropertyName,
+ String stringOutputType,
+ String stringOutputTypeEnvName,
+ String stringOutputTypeSysPropertyName,
+ String prefix,
+ String prefixEnvName,
+ String prefixSysPropertyName,
+ String suffix,
+ String suffixEnvName,
+ String suffixSysPropertyName)
+
++ + Configure and perform a digest operation. |
+
+ String |
+encrypt(String input,
+ String password,
+ String passwordEnvName,
+ String passwordSysPropertyName,
+ String algorithm,
+ String algorithmEnvName,
+ String algorithmSysPropertyName,
+ String keyObtentionIterations,
+ String keyObtentionIterationsEnvName,
+ String keyObtentionIterationsSysPropertyName,
+ String saltGeneratorClassName,
+ String saltGeneratorClassNameEnvName,
+ String saltGeneratorClassNameSysPropertyName,
+ String providerName,
+ String providerNameEnvName,
+ String providerNameSysPropertyName,
+ String providerClassName,
+ String providerClassNameEnvName,
+ String providerClassNameSysPropertyName,
+ String stringOutputType,
+ String stringOutputTypeEnvName,
+ String stringOutputTypeSysPropertyName)
+
++ + Configure and perform an encryption operation. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JasyptStatelessService()+
+
| +Method Detail | +
|---|
+public String digest(String input, + String algorithm, + String algorithmEnvName, + String algorithmSysPropertyName, + String iterations, + String iterationsEnvName, + String iterationsSysPropertyName, + String saltSizeBytes, + String saltSizeBytesEnvName, + String saltSizeBytesSysPropertyName, + String saltGeneratorClassName, + String saltGeneratorClassNameEnvName, + String saltGeneratorClassNameSysPropertyName, + String providerName, + String providerNameEnvName, + String providerNameSysPropertyName, + String providerClassName, + String providerClassNameEnvName, + String providerClassNameSysPropertyName, + String invertPositionOfSaltInMessageBeforeDigesting, + String invertPositionOfSaltInMessageBeforeDigestingEnvName, + String invertPositionOfSaltInMessageBeforeDigestingSysPropertyName, + String invertPositionOfPlainSaltInEncryptionResults, + String invertPositionOfPlainSaltInEncryptionResultsEnvName, + String invertPositionOfPlainSaltInEncryptionResultsSysPropertyName, + String useLenientSaltSizeCheck, + String useLenientSaltSizeCheckEnvName, + String useLenientSaltSizeCheckSysPropertyName, + String unicodeNormalizationIgnored, + String unicodeNormalizationIgnoredEnvName, + String unicodeNormalizationIgnoredSysPropertyName, + String stringOutputType, + String stringOutputTypeEnvName, + String stringOutputTypeSysPropertyName, + String prefix, + String prefixEnvName, + String prefixSysPropertyName, + String suffix, + String suffixEnvName, + String suffixSysPropertyName)+
+ Configure and perform a digest operation. +
++
input - algorithm - algorithmEnvName - algorithmSysPropertyName - iterations - iterationsEnvName - iterationsSysPropertyName - saltSizeBytes - saltSizeBytesEnvName - saltSizeBytesSysPropertyName - saltGeneratorClassName - saltGeneratorClassNameEnvName - saltGeneratorClassNameSysPropertyName - providerName - providerNameEnvName - providerNameSysPropertyName - providerClassName - providerClassNameEnvName - providerClassNameSysPropertyName - invertPositionOfSaltInMessageBeforeDigesting - invertPositionOfSaltInMessageBeforeDigestingEnvName - invertPositionOfSaltInMessageBeforeDigestingSysPropertyName - invertPositionOfPlainSaltInEncryptionResults - invertPositionOfPlainSaltInEncryptionResultsEnvName - invertPositionOfPlainSaltInEncryptionResultsSysPropertyName - useLenientSaltSizeCheck - useLenientSaltSizeCheckEnvName - useLenientSaltSizeCheckSysPropertyName - unicodeNormalizationIgnored - unicodeNormalizationIgnoredEnvName - unicodeNormalizationIgnoredSysPropertyName - stringOutputType - stringOutputTypeEnvName - stringOutputTypeSysPropertyName - prefix - prefixEnvName - prefixSysPropertyName - suffix - suffixEnvName - suffixSysPropertyName -
+EncryptionOperationNotPossibleException - if the operation could
+ not be performed (either because of wrong input or wrong
+ parametrization).+public String encrypt(String input, + String password, + String passwordEnvName, + String passwordSysPropertyName, + String algorithm, + String algorithmEnvName, + String algorithmSysPropertyName, + String keyObtentionIterations, + String keyObtentionIterationsEnvName, + String keyObtentionIterationsSysPropertyName, + String saltGeneratorClassName, + String saltGeneratorClassNameEnvName, + String saltGeneratorClassNameSysPropertyName, + String providerName, + String providerNameEnvName, + String providerNameSysPropertyName, + String providerClassName, + String providerClassNameEnvName, + String providerClassNameSysPropertyName, + String stringOutputType, + String stringOutputTypeEnvName, + String stringOutputTypeSysPropertyName)+
+ Configure and perform an encryption operation. +
++
input - password - passwordEnvName - passwordSysPropertyName - algorithm - algorithmEnvName - algorithmSysPropertyName - keyObtentionIterations - keyObtentionIterationsEnvName - keyObtentionIterationsSysPropertyName - saltGeneratorClassName - saltGeneratorClassNameEnvName - saltGeneratorClassNameSysPropertyName - providerName - providerNameEnvName - providerNameSysPropertyName - providerClassName - providerClassNameEnvName - providerClassNameSysPropertyName - stringOutputType - stringOutputTypeEnvName - stringOutputTypeSysPropertyName -
+EncryptionOperationNotPossibleException - if the operation could
+ not be performed (either because of wrong input or wrong
+ parametrization).+public String decrypt(String input, + String password, + String passwordEnvName, + String passwordSysPropertyName, + String algorithm, + String algorithmEnvName, + String algorithmSysPropertyName, + String keyObtentionIterations, + String keyObtentionIterationsEnvName, + String keyObtentionIterationsSysPropertyName, + String saltGeneratorClassName, + String saltGeneratorClassNameEnvName, + String saltGeneratorClassNameSysPropertyName, + String providerName, + String providerNameEnvName, + String providerNameSysPropertyName, + String providerClassName, + String providerClassNameEnvName, + String providerClassNameSysPropertyName, + String stringOutputType, + String stringOutputTypeEnvName, + String stringOutputTypeSysPropertyName)+
+ Configure and perform a decryption operation. +
++
input - password - passwordEnvName - passwordSysPropertyName - algorithm - algorithmEnvName - algorithmSysPropertyName - keyObtentionIterations - keyObtentionIterationsEnvName - keyObtentionIterationsSysPropertyName - saltGeneratorClassName - saltGeneratorClassNameEnvName - saltGeneratorClassNameSysPropertyName - providerName - providerNameEnvName - providerNameSysPropertyName - providerClassName - providerClassNameEnvName - providerClassNameSysPropertyName - stringOutputType - stringOutputTypeEnvName - stringOutputTypeSysPropertyName -
+EncryptionOperationNotPossibleException - if the operation could
+ not be performed (either because of wrong input or wrong
+ parametrization).
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +JasyptStatelessService |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| JasyptStatelessService | ++ This class acts as a stateless service for encryption, decryption and + digest operations, letting its clients configure all the jasypt environment + (algorithms, passwords, providers...) from Strings in a single call, be it + using direct values, environment variables or java vm properties. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.normalization.Normalizer +
public final class Normalizer
+
+ Utility for the normalization of Unicode Strings to NFC form. +
++ This class tries to use the java.text.Normalizer class in JDK 1.6 + first and, if it the class is not found (Java version < 6), then it will use + the ICU4J com.ibm.icu.text.Normalizer class (in this case, a + ClassNotFoundException will be thrown if ICU4J is not present). +
++ +
+
| +Method Summary | +|
|---|---|
+static char[] |
+normalizeToNfc(char[] message)
+
++ + Normalize Unicode-input message to NFC. |
+
+static String |
+normalizeToNfc(String message)
+
++ + Normalize Unicode-input message to NFC. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static String normalizeToNfc(String message)+
+ Normalize Unicode-input message to NFC. +
++ This algorithm will first try to normalize the input's UNICODE using icu4j's + com.ibm.icu.text.Normalizer and, if it is not present at the + classpath, will try to use java.text.Normalizer. If this is not present + either (this class appeared in JavaSE 6), it will raise an exception. +
++
message - the message to be normalized
++public static char[] normalizeToNfc(char[] message)+
+ Normalize Unicode-input message to NFC. +
++ This algorithm will first try to normalize the input's UNICODE using icu4j's + com.ibm.icu.text.Normalizer and, if it is not present at the + classpath, will try to use java.text.Normalizer. If this is not present + either (this class appeared in JavaSE 6), it will raise an exception. +
++
message - the message to be normalized
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +Normalizer |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| Normalizer | ++ Utility for the normalization of Unicode Strings to NFC form. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++java.util.Dictionary<K,V> +
java.util.Hashtable<Object,Object> +
java.util.Properties +
org.jasypt.properties.EncryptableProperties +
public final class EncryptableProperties
+
+ Subclass of java.util.Properties which can make use of a
+ StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the .properties file.
+
+ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ Decryption is performed on-the-fly when the getProperty(String) or
+ getProperty(String, String) methods are called, and only these two
+ methods perform decryption (note that neither get(Object) nor
+ Hashtable.toString() do). Load and store operations are not affected
+ by decryption in any manner.
+
+ Encrypted and unencrypted objects can be combined in the same + properties file. +
++ Please note that, altough objects of this class are Serializable, they + cannot be serialized and then de-serialized in different classloaders or + virtual machines. This is so because encryptors are not serializable themselves + (they cannot, as they contain sensitive information) and so they remain + in memory, and live for as long as the classloader lives. +
++ +
+
| +Field Summary | +
|---|
| Fields inherited from class java.util.Properties | +
|---|
defaults |
+
| +Constructor Summary | +|
|---|---|
EncryptableProperties(java.util.Properties defaults,
+ StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed StringEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values). |
+|
EncryptableProperties(java.util.Properties defaults,
+ TextEncryptor textEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed TextEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values). |
+|
EncryptableProperties(StringEncryptor stringEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed StringEncryptor object to decrypt encrypted values. |
+|
EncryptableProperties(TextEncryptor textEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed TextEncryptor object to decrypt encrypted values. |
+|
| +Method Summary | +|
|---|---|
+ Object |
+get(Object key)
+
++ + Obtains the property value for the specified key (see + Hashtable#get(Object)), decrypting it if needed. |
+
+ String |
+getProperty(String key)
+
++ + Obtains the property value for the specified key (see + Properties.getProperty(String)), decrypting it if needed. |
+
+ String |
+getProperty(String key,
+ String defaultValue)
+
++ + Obtains the property value for the specified key (see + Properties.getProperty(String)), decrypting it if needed. |
+
| Methods inherited from class java.util.Properties | +
|---|
list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
+
| Methods inherited from class java.util.Hashtable | +
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
+
| Methods inherited from class Object | +
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncryptableProperties(StringEncryptor stringEncryptor)+
+ Creates an EncryptableProperties instance which will use
+ the passed StringEncryptor object to decrypt encrypted values.
+
+
stringEncryptor - the StringEncryptor to be used do decrypt
+ values. It can not be null.+public EncryptableProperties(TextEncryptor textEncryptor)+
+ Creates an EncryptableProperties instance which will use
+ the passed TextEncryptor object to decrypt encrypted values.
+
+
textEncryptor - the TextEncryptor to be used do decrypt
+ values. It can not be null.+public EncryptableProperties(java.util.Properties defaults, + StringEncryptor stringEncryptor)+
+ Creates an EncryptableProperties instance which will use
+ the passed StringEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values).
+
+
defaults - default values for properties (may be encrypted).stringEncryptor - the StringEncryptor to be used do decrypt
+ values. It can not be null.+public EncryptableProperties(java.util.Properties defaults, + TextEncryptor textEncryptor)+
+ Creates an EncryptableProperties instance which will use
+ the passed TextEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values).
+
+
defaults - default values for properties (may be encrypted).textEncryptor - the TextEncryptor to be used do decrypt
+ values. It can not be null.| +Method Detail | +
|---|
+public String getProperty(String key)+
+ Obtains the property value for the specified key (see
+ Properties.getProperty(String)), decrypting it if needed.
+
+
getProperty in class java.util.Propertieskey - the property key
++public String getProperty(String key, + String defaultValue)+
+ Obtains the property value for the specified key (see
+ Properties.getProperty(String)), decrypting it if needed.
+
+ If no value is found for the specified key, the default value will + be returned (decrypted if needed). +
++
getProperty in class java.util.Propertieskey - the property keydefaultValue - the default value to return
++public Object get(Object key)+
+ Obtains the property value for the specified key (see
+ Hashtable#get(Object)), decrypting it if needed.
+
+
get in interface java.util.Map<Object,Object>get in class java.util.Hashtable<Object,Object>key - the property key
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.properties.PropertyValueEncryptionUtils +
public final class PropertyValueEncryptionUtils
+
+ Utility class to encrypt/decrypt values in properties files which could be + encrypted. +
++ A value is considered "encrypted" when it appears surrounded by + ENC(...), like: +
++
+ This class is meant for internal Jasypt use only. +
++ +
+
| +Method Summary | +|
|---|---|
+static String |
+decrypt(String encodedValue,
+ StringEncryptor encryptor)
+
++ |
+
+static String |
+decrypt(String encodedValue,
+ TextEncryptor encryptor)
+
++ |
+
+static String |
+encrypt(String decodedValue,
+ StringEncryptor encryptor)
+
++ |
+
+static String |
+encrypt(String decodedValue,
+ TextEncryptor encryptor)
+
++ |
+
+static boolean |
+isEncryptedValue(String value)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static boolean isEncryptedValue(String value)+
+public static String decrypt(String encodedValue, + StringEncryptor encryptor)+
+public static String decrypt(String encodedValue, + TextEncryptor encryptor)+
+public static String encrypt(String decodedValue, + StringEncryptor encryptor)+
+public static String encrypt(String decodedValue, + TextEncryptor encryptor)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +EncryptableProperties + +PropertyValueEncryptionUtils |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| EncryptableProperties | +
+ Subclass of java.util.Properties which can make use of a
+ StringEncryptor or
+ TextEncryptor object to decrypt property values
+ if they are encrypted in the .properties file. |
+
| PropertyValueEncryptionUtils | ++ Utility class to encrypt/decrypt values in properties files which could be + encrypted. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.registry.AlgorithmRegistry +
public final class AlgorithmRegistry
+
+ Utility class for retrieving the names of all the digest or encryption + algorithms available to Jasypt. +
++ This class is thread-safe. +
++ +
+
| +Method Summary | +|
|---|---|
+static java.util.Set |
+getAllDigestAlgorithms()
+
++ + Returns a set with the names of all the registered digest algorithms. |
+
+static java.util.Set |
+getAllPBEAlgorithms()
+
++ + Returns a set with the names of all the registered PBE (Password-Based + Encryption) algorithms. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static java.util.Set getAllDigestAlgorithms()+
+ Returns a set with the names of all the registered digest algorithms. + This set will also include algorithms from any third-party (non-JVM) registered + providers. +
++
+public static java.util.Set getAllPBEAlgorithms()+
+ Returns a set with the names of all the registered PBE (Password-Based + Encryption) algorithms. + This set will also include algorithms from any third-party (non-JVM) registered + providers. +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +AlgorithmRegistry |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AlgorithmRegistry | ++ Utility class for retrieving the names of all the digest or encryption + algorithms available to Jasypt. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.ByteArrayFixedSaltGenerator +
public class ByteArrayFixedSaltGenerator
+
+ Byte-array based implementation of FixedSaltGenerator, that will
+ always return the same salt.
+
+ If the requested salt has a size in bytes smaller than the specified salt, + the first n bytes are returned. If it is larger, an exception is thrown. +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
ByteArrayFixedSaltGenerator(byte[] salt)
+
++ Creates a new instance of FixedByteArraySaltGenerator |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Return salt with the specified byte length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ As this salt generator provides a fixed salt, its inclusion + unencrypted in encryption results + is not necessary, and in fact not desirable (so that it remains hidden). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ByteArrayFixedSaltGenerator(byte[] salt)+
+
salt - the specified salt.| +Method Detail | +
|---|
+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.FixedByteArraySaltGenerator +
ByteArrayFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0).
++
public class FixedByteArraySaltGenerator
+
+ This implementation of SaltGenerator always returns a fixed salt
+ set by the user.
+
+ If the requested salt has a size in bytes smaller than the specified salt, + the first n bytes are returned. If it is larger, an exception is thrown. +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
FixedByteArraySaltGenerator()
+
++ Deprecated. Creates a new instance of FixedByteArraySaltGenerator |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Deprecated. Return salt with the specified byte length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ Deprecated. As this salt generator provides a fixed salt, its inclusion + unencrypted in encryption results + is not necessary, and in fact not desirable (so that it remains hidden). |
+
+ void |
+setSalt(byte[] salt)
+
++ Deprecated. Sets the salt to be returned. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public FixedByteArraySaltGenerator()+
+
| +Method Detail | +
|---|
+public void setSalt(byte[] salt)+
+
salt - the specified salt.+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface FixedSaltGenerator
+
+ Marker interface for all implementations of SaltGenerator that
+ will always return the same salt (for the same amount of bytes asked).
+
+ Use of this interface in salt generators enables encryptors to perform + some performance optimizations whenever they are used. +
++ +
+
| +Method Summary | +
|---|
| Methods inherited from interface org.jasypt.salt.SaltGenerator | +
|---|
generateSalt, includePlainSaltInEncryptionResults |
+
+ +
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.FixedStringSaltGenerator +
StringFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0).
++
public class FixedStringSaltGenerator
+
+ This implementation of SaltGenerator always returns a fixed salt
+ set by the user as a String, which is returned as salt bytes using the
+ specified charset for conversion (UTF-8 by default).
+
+ If the requested salt has a size in bytes smaller than the specified salt, + the first n bytes are returned. If it is larger, an exception is thrown. +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
FixedStringSaltGenerator()
+
++ Deprecated. Creates a new instance of FixedStringSaltGenerator |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Deprecated. Return salt with the specified byte length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ Deprecated. As this salt generator provides a fixed salt, its inclusion + unencrypted in encryption results + is not necessary, and in fact not desirable (so that it remains hidden). |
+
+ void |
+setCharset(String charset)
+
++ Deprecated. Sets the charset to be applied to the salt for conversion into bytes. |
+
+ void |
+setSalt(String salt)
+
++ Deprecated. Sets the salt to be returned. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public FixedStringSaltGenerator()+
+
| +Method Detail | +
|---|
+public void setSalt(String salt)+
+
salt - the specified salt.+public void setCharset(String charset)+
+
charset - the specified charset+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.RandomSaltGenerator +
public class RandomSaltGenerator
+
+ This implementation of SaltGenerator holds a secure random
+ generator which can be used for generating random salts for encryption
+ or digesting.
+
+ The algorithm used for random number generation can be configured at + instantiation time. If not, the default algorithm will be used. +
++ This class is thread-safe. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_SECURE_RANDOM_ALGORITHM
+
++ The default algorithm to be used for secure random number + generation: set to SHA1PRNG. |
+
| +Constructor Summary | +|
|---|---|
RandomSaltGenerator()
+
++ Creates a new instance of RandomSaltGenerator using the + default secure random number generation algorithm. |
+|
RandomSaltGenerator(String secureRandomAlgorithm)
+
++ Creates a new instance of RandomSaltGenerator specifying a + secure random number generation algorithm. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Generate a random salt of the specified length in bytes. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ This salt generator needs the salt to be included unencrypted in + encryption results, because of its being random. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String DEFAULT_SECURE_RANDOM_ALGORITHM+
+
| +Constructor Detail | +
|---|
+public RandomSaltGenerator()+
+
+public RandomSaltGenerator(String secureRandomAlgorithm)+
+
| +Method Detail | +
|---|
+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface SaltGenerator
+
+ Common interface for all salt generators which can be applied in digest + or encryption operations. +
++ Every implementation of this interface must be thread-safe. +
++ +
+
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ + This method will be called for requesting the generation of a new + salt of the specified length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ + Determines if the digests and encrypted messages created with a + specific salt generator will include (prepended) the unencrypted + salt itself, so that it can be used for matching and decryption + operations. |
+
| +Method Detail | +
|---|
+byte[] generateSalt(int lengthBytes)+
+ This method will be called for requesting the generation of a new + salt of the specified length. +
++
lengthBytes - the requested length for the salt.
++boolean includePlainSaltInEncryptionResults()+
+ Determines if the digests and encrypted messages created with a + specific salt generator will include (prepended) the unencrypted + salt itself, so that it can be used for matching and decryption + operations. +
++ Generally, including the salt unencrypted in encryption results will + be mandatory for randomly generated salts, or for those generated in a + non-predictable manner. + Otherwise, digest matching and decryption operations will always fail. + For fixed salts, inclusion will be optional (and in fact undesirable + if we want to hide the salt value). +
++
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.StringFixedSaltGenerator +
public class StringFixedSaltGenerator
+
+ String based implementation of FixedSaltGenerator, that will
+ always return the same salt. This salt is returned as bytes using the
+ specified charset for conversion (UTF-8 by default).
+
+ If the requested salt has a size in bytes smaller than the specified salt, + the first n bytes are returned. If it is larger, an exception is thrown. +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
StringFixedSaltGenerator(String salt)
+
++ Creates a new instance of FixedStringSaltGenerator using + the default charset. |
+|
StringFixedSaltGenerator(String salt,
+ String charset)
+
++ Creates a new instance of FixedStringSaltGenerator |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Return salt with the specified byte length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ As this salt generator provides a fixed salt, its inclusion + unencrypted in encryption results + is not necessary, and in fact not desirable (so that it remains hidden). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StringFixedSaltGenerator(String salt)+
+
salt - the specified salt.+public StringFixedSaltGenerator(String salt, + String charset)+
+
salt - the specified salt.charset - the specified charset| +Method Detail | +
|---|
+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.salt.ZeroSaltGenerator +
public class ZeroSaltGenerator
+
+ This implementation of SaltGenerator always returns a salt
+ of the required length, filled with zero bytes.
+
+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
ZeroSaltGenerator()
+
++ Creates a new instance of ZeroSaltGenerator |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+generateSalt(int lengthBytes)
+
++ Return salt with the specified byte length. |
+
+ boolean |
+includePlainSaltInEncryptionResults()
+
++ As this salt generator provides a predictable salt, its inclusion + unencrypted in encryption results + is not necessary, and in fact not desirable (so that it remains hidden). |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ZeroSaltGenerator()+
+
| +Method Detail | +
|---|
+public byte[] generateSalt(int lengthBytes)+
+
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
++public boolean includePlainSaltInEncryptionResults()+
+
includePlainSaltInEncryptionResults in interface SaltGenerator
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use FixedSaltGenerator | +|
|---|---|
| org.jasypt.salt | ++ |
| +Uses of FixedSaltGenerator in org.jasypt.salt | +
|---|
+ +
| Classes in org.jasypt.salt that implement FixedSaltGenerator | +|
|---|---|
+ class |
+ByteArrayFixedSaltGenerator
+
++ + Byte-array based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
+ class |
+StringFixedSaltGenerator
+
++ + String based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SaltGenerator | +|
|---|---|
| org.jasypt.digest | ++ |
| org.jasypt.digest.config | ++ |
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.encryption.pbe.config | ++ |
| org.jasypt.salt | ++ |
| +Uses of SaltGenerator in org.jasypt.digest | +
|---|
+ +
| Methods in org.jasypt.digest with parameters of type SaltGenerator | +|
|---|---|
+ void |
+PooledByteDigester.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+StandardStringDigester.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+PooledStringDigester.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+StandardByteDigester.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| +Uses of SaltGenerator in org.jasypt.digest.config | +
|---|
+ +
| Methods in org.jasypt.digest.config that return SaltGenerator | +|
|---|---|
+ SaltGenerator |
+SimpleDigesterConfig.getSaltGenerator()
+
++ |
+
+ SaltGenerator |
+DigesterConfig.getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the digester. |
+
+ +
| Methods in org.jasypt.digest.config with parameters of type SaltGenerator | +|
|---|---|
+ void |
+SimpleDigesterConfig.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
+ void |
+EnvironmentDigesterConfig.setSaltGenerator(SaltGenerator saltGenerator)
+
++ |
+
| +Uses of SaltGenerator in org.jasypt.encryption.pbe | +
|---|
+ +
| Methods in org.jasypt.encryption.pbe with parameters of type SaltGenerator | +|
|---|---|
+ void |
+StandardPBEStringEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+PooledPBEStringEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+StandardPBEBigDecimalEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+PooledPBEBigIntegerEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+PooledPBEBigDecimalEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+PooledPBEByteEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+StandardPBEBigIntegerEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
+ void |
+StandardPBEByteEncryptor.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator to be used. |
+
| +Uses of SaltGenerator in org.jasypt.encryption.pbe.config | +
|---|
+ +
| Methods in org.jasypt.encryption.pbe.config that return SaltGenerator | +|
|---|---|
+ SaltGenerator |
+SimplePBEConfig.getSaltGenerator()
+
++ |
+
+ SaltGenerator |
+PBEConfig.getSaltGenerator()
+
++ + Returns a SaltGenerator implementation to be used by the
+ encryptor. |
+
+ +
| Methods in org.jasypt.encryption.pbe.config with parameters of type SaltGenerator | +|
|---|---|
+ void |
+EnvironmentPBEConfig.setSaltGenerator(SaltGenerator saltGenerator)
+
++ |
+
+ void |
+SimplePBEConfig.setSaltGenerator(SaltGenerator saltGenerator)
+
++ + Sets the salt generator. |
+
| +Uses of SaltGenerator in org.jasypt.salt | +
|---|
+ +
| Subinterfaces of SaltGenerator in org.jasypt.salt | +|
|---|---|
+ interface |
+FixedSaltGenerator
+
++ + Marker interface for all implementations of SaltGenerator that
+ will always return the same salt (for the same amount of bytes asked). |
+
+ +
| Classes in org.jasypt.salt that implement SaltGenerator | +|
|---|---|
+ class |
+ByteArrayFixedSaltGenerator
+
++ + Byte-array based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
+ class |
+FixedByteArraySaltGenerator
+
++ Deprecated. Deprecated in 1.9.2 in favour of ByteArrayFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0). |
+
+ class |
+FixedStringSaltGenerator
+
++ Deprecated. Deprecated in 1.9.2 in favour of StringFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. This class will be removed
+ in 1.10.0 (or 2.0.0). |
+
+ class |
+RandomSaltGenerator
+
++ + This implementation of SaltGenerator holds a secure random
+ generator which can be used for generating random salts for encryption
+ or digesting. |
+
+ class |
+StringFixedSaltGenerator
+
++ + String based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
+ class |
+ZeroSaltGenerator
+
++ + This implementation of SaltGenerator always returns a salt
+ of the required length, filled with zero bytes. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +FixedSaltGenerator + +SaltGenerator |
+
|
+Classes
+
+ +ByteArrayFixedSaltGenerator + +FixedByteArraySaltGenerator + +FixedStringSaltGenerator + +RandomSaltGenerator + +StringFixedSaltGenerator + +ZeroSaltGenerator |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| FixedSaltGenerator | +
+ Marker interface for all implementations of SaltGenerator that
+ will always return the same salt (for the same amount of bytes asked). |
+
| SaltGenerator | ++ Common interface for all salt generators which can be applied in digest + or encryption operations. | +
+ +
| +Class Summary | +|
|---|---|
| ByteArrayFixedSaltGenerator | +
+ Byte-array based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
| FixedByteArraySaltGenerator | +Deprecated. Deprecated in 1.9.2 in favour of ByteArrayFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. |
+
| FixedStringSaltGenerator | +Deprecated. Deprecated in 1.9.2 in favour of StringFixedSaltGenerator, which
+ implements the new FixedSaltGenerator interface and therefore is able to benefit
+ from the performance improvements associated with it. |
+
| RandomSaltGenerator | +
+ This implementation of SaltGenerator holds a secure random
+ generator which can be used for generating random salts for encryption
+ or digesting. |
+
| StringFixedSaltGenerator | +
+ String based implementation of FixedSaltGenerator, that will
+ always return the same salt. |
+
| ZeroSaltGenerator | +
+ This implementation of SaltGenerator always returns a salt
+ of the required length, filled with zero bytes. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.salt | +|
|---|---|
| org.jasypt.digest | ++ |
| org.jasypt.digest.config | ++ |
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.encryption.pbe.config | ++ |
| org.jasypt.salt | ++ |
| +Classes in org.jasypt.salt used by org.jasypt.digest | +|
|---|---|
| SaltGenerator
+
+ + + Common interface for all salt generators which can be applied in digest + or encryption operations. |
+|
| +Classes in org.jasypt.salt used by org.jasypt.digest.config | +|
|---|---|
| SaltGenerator
+
+ + + Common interface for all salt generators which can be applied in digest + or encryption operations. |
+|
| +Classes in org.jasypt.salt used by org.jasypt.encryption.pbe | +|
|---|---|
| SaltGenerator
+
+ + + Common interface for all salt generators which can be applied in digest + or encryption operations. |
+|
| +Classes in org.jasypt.salt used by org.jasypt.encryption.pbe.config | +|
|---|---|
| SaltGenerator
+
+ + + Common interface for all salt generators which can be applied in digest + or encryption operations. |
+|
| +Classes in org.jasypt.salt used by org.jasypt.salt | +|
|---|---|
| FixedSaltGenerator
+
+ + + Marker interface for all implementations of SaltGenerator that
+ will always return the same salt (for the same amount of bytes asked). |
+|
| SaltGenerator
+
+ + + Common interface for all salt generators which can be applied in digest + or encryption operations. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.binary.BasicBinaryEncryptor +
public final class BasicBinaryEncryptor
+
+ Utility class for easily performing normal-strength encryption of + binaries (byte arrays). +
+
+ This class internally holds a StandardPBEByteEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(byte[]) or
+ decrypt(byte[]) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
BasicBinaryEncryptor()
+
++ Creates a new instance of BasicBinaryEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedBinary)
+
++ Decrypts a byte array. |
+
+ byte[] |
+encrypt(byte[] binary)
+
++ Encrypts a byte array |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BasicBinaryEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public byte[] encrypt(byte[] binary)+
+
encrypt in interface BinaryEncryptorbinary - the byte array to be encrypted.StandardPBEByteEncryptor.encrypt(byte[])+public byte[] decrypt(byte[] encryptedBinary)+
+
decrypt in interface BinaryEncryptorencryptedBinary - the byte array to be decrypted.StandardPBEByteEncryptor.decrypt(byte[])
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface BinaryEncryptor
+
+ Common interface for all util classes aimed at binary encryption +
++ +
+
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedBinary)
+
++ Decrypts a byte array. |
+
+ byte[] |
+encrypt(byte[] binary)
+
++ Encrypts a byte array |
+
| +Method Detail | +
|---|
+byte[] encrypt(byte[] binary)+
+
binary - the byte array to be encrypted.+byte[] decrypt(byte[] encryptedBinary)+
+
encryptedBinary - the byte array to be decrypted.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.binary.StrongBinaryEncryptor +
public final class StrongBinaryEncryptor
+
+ Utility class for easily performing high-strength encryption of + binaries (byte arrays). +
+
+ This class internally holds a StandardPBEByteEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(byte[]) or
+ decrypt(byte[]) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
StrongBinaryEncryptor()
+
++ Creates a new instance of StrongBinaryEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+decrypt(byte[] encryptedBinary)
+
++ Decrypts a byte array. |
+
+ byte[] |
+encrypt(byte[] binary)
+
++ Encrypts a byte array |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StrongBinaryEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public byte[] encrypt(byte[] binary)+
+
encrypt in interface BinaryEncryptorbinary - the byte array to be encrypted.StandardPBEByteEncryptor.encrypt(byte[])+public byte[] decrypt(byte[] encryptedBinary)+
+
decrypt in interface BinaryEncryptorencryptedBinary - the byte array to be decrypted.StandardPBEByteEncryptor.decrypt(byte[])
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use BinaryEncryptor | +|
|---|---|
| org.jasypt.util.binary | ++ |
| +Uses of BinaryEncryptor in org.jasypt.util.binary | +
|---|
+ +
| Classes in org.jasypt.util.binary that implement BinaryEncryptor | +|
|---|---|
+ class |
+BasicBinaryEncryptor
+
++ + Utility class for easily performing normal-strength encryption of + binaries (byte arrays). |
+
+ class |
+StrongBinaryEncryptor
+
++ + Utility class for easily performing high-strength encryption of + binaries (byte arrays). |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +BinaryEncryptor |
+
|
+Classes
+
+ +BasicBinaryEncryptor + +StrongBinaryEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| BinaryEncryptor | ++ Common interface for all util classes aimed at binary encryption | +
+ +
| +Class Summary | +|
|---|---|
| BasicBinaryEncryptor | ++ Utility class for easily performing normal-strength encryption of + binaries (byte arrays). | +
| StrongBinaryEncryptor | ++ Utility class for easily performing high-strength encryption of + binaries (byte arrays). | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.util.binary | +|
|---|---|
| org.jasypt.util.binary | ++ |
| +Classes in org.jasypt.util.binary used by org.jasypt.util.binary | +|
|---|---|
| BinaryEncryptor
+
+ + + Common interface for all util classes aimed at binary encryption |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.digest.Digester +
public final class Digester
+
+ Utility class for creating digests without using a salt or iterating
+ the hash function. This means that digests created by this class will
+ be compatible (and equivalent) to the ones which could be created by
+ the user by directly using a MessageDigest object.
+
+ This class can be thought of as convenience wrapper for
+ MessageDigest, adding thread-safety and
+ a more javabean-like interface to it. These two features enable a more
+ adequate use from an IoC container like Spring.
+
+ This class internally holds a StandardByteDigester
+ configured this way:
+
+ This class is thread-safe +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+DEFAULT_ALGORITHM
+
++ MD5 will be the default algorithm to be used if none is specified. |
+
| +Constructor Summary | +|
|---|---|
Digester()
+
++ Creates a new instance of Digester. |
+|
Digester(String algorithm)
+
++ + Creates a new instance of Digester, specifying + the algorithm to be used. |
+|
Digester(String algorithm,
+ java.security.Provider provider)
+
++ + Creates a new instance of Digester, specifying + the algorithm to be used. |
+|
Digester(String algorithm,
+ String providerName)
+
++ + Creates a new instance of Digester, specifying + the algorithm to be used. |
+|
| +Method Summary | +|
|---|---|
+ byte[] |
+digest(byte[] binary)
+
++ Creates a digest. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String DEFAULT_ALGORITHM+
+
| +Constructor Detail | +
|---|
+public Digester()+
setAlgorithm(String).
++
+public Digester(String algorithm)+
+ Creates a new instance of Digester, specifying + the algorithm to be used. +
++
+public Digester(String algorithm, + String providerName)+
+ Creates a new instance of Digester, specifying + the algorithm to be used. +
++
+public Digester(String algorithm, + java.security.Provider provider)+
+ Creates a new instance of Digester, specifying + the algorithm to be used. +
++
| +Method Detail | +
|---|
+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.
+AlreadyInitializedException - if it has already been initialized,
+ this is, if digest(byte[]) has been called at least
+ once.+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.
+AlreadyInitializedException - if it has already been initialized,
+ this is, if digest(byte[]) has been called at least
+ once.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + it being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm
+AlreadyInitializedException - if it has already been initialized,
+ this is, if digest(byte[]) has been called at least
+ once.+public byte[] digest(byte[] binary)+
+
binary - the byte array to be digested.
+StandardByteDigester.digest(byte[])
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +Digester |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| Digester | ++ Utility class for creating digests without using a salt or iterating + the hash function. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.numeric.BasicDecimalNumberEncryptor +
public final class BasicDecimalNumberEncryptor
+
+ Utility class for easily performing normal-strength encryption of + BigDecimal objects. +
+
+ This class internally holds a StandardPBEBigDecimalEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(BigDecimal) or
+ decrypt(BigDecimal) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
BasicDecimalNumberEncryptor()
+
++ Creates a new instance of BasicDecimalNumberEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedNumber)
+
++ Decrypts a number. |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal number)
+
++ Encrypts a number |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BasicDecimalNumberEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public java.math.BigDecimal encrypt(java.math.BigDecimal number)+
+
encrypt in interface DecimalNumberEncryptornumber - the number to be encrypted.StandardPBEBigDecimalEncryptor.encrypt(BigDecimal)+public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedNumber)+
+
decrypt in interface DecimalNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigDecimalEncryptor.decrypt(BigDecimal)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.numeric.BasicIntegerNumberEncryptor +
public final class BasicIntegerNumberEncryptor
+
+ Utility class for easily performing normal-strength encryption of + BigInteger objects. +
+
+ This class internally holds a StandardPBEBigIntegerEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(BigInteger) or
+ decrypt(BigInteger) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
BasicIntegerNumberEncryptor()
+
++ Creates a new instance of BasicIntegerNumberEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedNumber)
+
++ Decrypts a number. |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger number)
+
++ Encrypts a number |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BasicIntegerNumberEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public java.math.BigInteger encrypt(java.math.BigInteger number)+
+
encrypt in interface IntegerNumberEncryptornumber - the number to be encrypted.StandardPBEBigIntegerEncryptor.encrypt(BigInteger)+public java.math.BigInteger decrypt(java.math.BigInteger encryptedNumber)+
+
decrypt in interface IntegerNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigIntegerEncryptor.decrypt(BigInteger)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface DecimalNumberEncryptor
+
+ Common interface for all util classes aimed at decimal number encryption. +
++ +
+
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedNumber)
+
++ Decrypts a BigDecimal. |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal number)
+
++ Encrypts a BigDecimal |
+
| +Method Detail | +
|---|
+java.math.BigDecimal encrypt(java.math.BigDecimal number)+
+
number - the number to be encrypted.+java.math.BigDecimal decrypt(java.math.BigDecimal encryptedNumber)+
+
encryptedNumber - the number to be decrypted.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IntegerNumberEncryptor
+
+ Common interface for all util classes aimed at integer number encryption. +
++ +
+
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedNumber)
+
++ Decrypts a BigInteger. |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger number)
+
++ Encrypts a BigInteger |
+
| +Method Detail | +
|---|
+java.math.BigInteger encrypt(java.math.BigInteger number)+
+
number - the number to be encrypted.+java.math.BigInteger decrypt(java.math.BigInteger encryptedNumber)+
+
encryptedNumber - the number to be decrypted.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.numeric.StrongDecimalNumberEncryptor +
public final class StrongDecimalNumberEncryptor
+
+ Utility class for easily performing normal-strength encryption of + BigDecimal objects. +
+
+ This class internally holds a StandardPBEBigDecimalEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(BigDecimal) or
+ decrypt(BigDecimal) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
StrongDecimalNumberEncryptor()
+
++ Creates a new instance of StrongDecimalNumberEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigDecimal |
+decrypt(java.math.BigDecimal encryptedNumber)
+
++ Decrypts a number. |
+
+ java.math.BigDecimal |
+encrypt(java.math.BigDecimal number)
+
++ Encrypts a number |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StrongDecimalNumberEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public java.math.BigDecimal encrypt(java.math.BigDecimal number)+
+
encrypt in interface DecimalNumberEncryptornumber - the number to be encrypted.StandardPBEBigDecimalEncryptor.encrypt(BigDecimal)+public java.math.BigDecimal decrypt(java.math.BigDecimal encryptedNumber)+
+
decrypt in interface DecimalNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigDecimalEncryptor.decrypt(BigDecimal)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.numeric.StrongIntegerNumberEncryptor +
public final class StrongIntegerNumberEncryptor
+
+ Utility class for easily performing normal-strength encryption of + BigInteger objects. +
+
+ This class internally holds a StandardPBEBigIntegerEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(BigInteger) or
+ decrypt(BigInteger) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
StrongIntegerNumberEncryptor()
+
++ Creates a new instance of StrongIntegerNumberEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ java.math.BigInteger |
+decrypt(java.math.BigInteger encryptedNumber)
+
++ Decrypts a number. |
+
+ java.math.BigInteger |
+encrypt(java.math.BigInteger number)
+
++ Encrypts a number |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StrongIntegerNumberEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public java.math.BigInteger encrypt(java.math.BigInteger number)+
+
encrypt in interface IntegerNumberEncryptornumber - the number to be encrypted.StandardPBEBigIntegerEncryptor.encrypt(BigInteger)+public java.math.BigInteger decrypt(java.math.BigInteger encryptedNumber)+
+
decrypt in interface IntegerNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigIntegerEncryptor.decrypt(BigInteger)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use DecimalNumberEncryptor | +|
|---|---|
| org.jasypt.util.numeric | ++ |
| +Uses of DecimalNumberEncryptor in org.jasypt.util.numeric | +
|---|
+ +
| Classes in org.jasypt.util.numeric that implement DecimalNumberEncryptor | +|
|---|---|
+ class |
+BasicDecimalNumberEncryptor
+
++ + Utility class for easily performing normal-strength encryption of + BigDecimal objects. |
+
+ class |
+StrongDecimalNumberEncryptor
+
++ + Utility class for easily performing normal-strength encryption of + BigDecimal objects. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IntegerNumberEncryptor | +|
|---|---|
| org.jasypt.util.numeric | ++ |
| +Uses of IntegerNumberEncryptor in org.jasypt.util.numeric | +
|---|
+ +
| Classes in org.jasypt.util.numeric that implement IntegerNumberEncryptor | +|
|---|---|
+ class |
+BasicIntegerNumberEncryptor
+
++ + Utility class for easily performing normal-strength encryption of + BigInteger objects. |
+
+ class |
+StrongIntegerNumberEncryptor
+
++ + Utility class for easily performing normal-strength encryption of + BigInteger objects. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +DecimalNumberEncryptor + +IntegerNumberEncryptor |
+
|
+Classes
+
+ +BasicDecimalNumberEncryptor + +BasicIntegerNumberEncryptor + +StrongDecimalNumberEncryptor + +StrongIntegerNumberEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| DecimalNumberEncryptor | ++ Common interface for all util classes aimed at decimal number encryption. | +
| IntegerNumberEncryptor | ++ Common interface for all util classes aimed at integer number encryption. | +
+ +
| +Class Summary | +|
|---|---|
| BasicDecimalNumberEncryptor | ++ Utility class for easily performing normal-strength encryption of + BigDecimal objects. | +
| BasicIntegerNumberEncryptor | ++ Utility class for easily performing normal-strength encryption of + BigInteger objects. | +
| StrongDecimalNumberEncryptor | ++ Utility class for easily performing normal-strength encryption of + BigDecimal objects. | +
| StrongIntegerNumberEncryptor | ++ Utility class for easily performing normal-strength encryption of + BigInteger objects. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.util.numeric | +|
|---|---|
| org.jasypt.util.numeric | ++ |
| +Classes in org.jasypt.util.numeric used by org.jasypt.util.numeric | +|
|---|---|
| DecimalNumberEncryptor
+
+ + + Common interface for all util classes aimed at decimal number encryption. |
+|
| IntegerNumberEncryptor
+
+ + + Common interface for all util classes aimed at integer number encryption. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.BasicPasswordEncryptor +
public final class BasicPasswordEncryptor
+
+ Utility class for easily performing password digesting and checking. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
+ The required steps to use it are: +
encryptPassword(String) or
+ checkPassword(String, String)
+ operations.+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
BasicPasswordEncryptor()
+
++ Creates a new instance of BasicPasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BasicPasswordEncryptor()+
+
| +Method Detail | +
|---|
+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.ConfigurablePasswordEncryptor +
public final class ConfigurablePasswordEncryptor
+
+ Utility class for easily performing password digesting and checking. +
+
+ This class internally holds a StandardStringDigester
+ which can be configured by the user by optionally choosing the algorithm
+ to be used, the output format (BASE64 or hexadecimal) the mechanism of
+ encryption (plain digests vs. use of random salt
+ and iteration count (default)) and even use a DigesterConfig object for
+ more advanced configuration.
+
+ The results obtained when encoding with this class are encoded in + BASE64 form. +
++ The required steps to use it are: +
encryptPassword(String) or
+ checkPassword(String, String)
+ operations.+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
ConfigurablePasswordEncryptor()
+
++ Creates a new instance of ConfigurablePasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
+ void |
+setAlgorithm(String algorithm)
+
++ + Sets the algorithm to be used for digesting, like MD5 + or SHA-1. |
+
+ void |
+setConfig(DigesterConfig config)
+
++ Lets the user configure this encryptor with a DigesterConfig
+ object, like if he/she were using a StandardStringDigester object
+ directly. |
+
+ void |
+setPlainDigest(boolean plainDigest)
+
++ Lets the user specify if he/she wants a plain digest used as an + encryption mechanism (no salt or iterations, as with + MessageDigest), or rather use the
+ jasypt's usual stronger mechanism for password encryption (based
+ on the use of a salt and the iteration of the hash function). |
+
+ void |
+setProvider(java.security.Provider provider)
+
++ + Sets the security provider to be asked for the digest algorithm. |
+
+ void |
+setProviderName(String providerName)
+
++ + Sets the name of the security provider to be asked for the + digest algorithm. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ConfigurablePasswordEncryptor()+
+
| +Method Detail | +
|---|
+public void setConfig(DigesterConfig config)+
DigesterConfig
+ object, like if he/she were using a StandardStringDigester object
+ directly.
++
config - the DigesterConfig object to be set for configuration.StandardStringDigester.setConfig(DigesterConfig)+public void setAlgorithm(String algorithm)+
+ Sets the algorithm to be used for digesting, like MD5 + or SHA-1. +
++ This algorithm has to be supported by your security infrastructure, and + it should be allowed as an algorithm for creating + java.security.MessageDigest instances. +
+
+ If you are specifying a security provider with setProvider(Provider) or
+ setProviderName(String), this algorithm should be
+ supported by your specified provider.
+
+ If you are not specifying a provider, you will be able to use those + algorithms provided by the default security provider of your JVM vendor. + For valid names in the Sun JVM, see Java + Cryptography Architecture API Specification & + Reference. +
++
algorithm - the name of the algorithm to be used.StandardStringDigester.setAlgorithm(String)+public void setProviderName(String providerName)+
+ Sets the name of the security provider to be asked for the + digest algorithm. This security provider has to be registered beforehand + at the JVM security framework. +
+
+ The provider can also be set with the setProvider(Provider)
+ method, in which case it will not be necessary neither registering
+ the provider beforehand,
+ nor calling this setProviderName(String) method to specify
+ a provider name.
+
+ Note that a call to setProvider(Provider) overrides any value
+ set by this method.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
providerName - the name of the security provider to be asked
+ for the digest algorithm.
+AlreadyInitializedException - if it has already been initialized,
+ this is, if encryptPassword(String) or
+ checkPassword(String, String) have been called at least
+ once.+public void setProvider(java.security.Provider provider)+
+ Sets the security provider to be asked for the digest algorithm. + The provider does not have to be registered at the security + infrastructure beforehand, and its being used here will not result in + it being registered. +
+
+ If this method is called, calling setProviderName(String)
+ becomes unnecessary.
+
+ If no provider name / provider is explicitly set, the default JVM + provider will be used. +
++
provider - the provider to be asked for the chosen algorithm
+AlreadyInitializedException - if it has already been initialized,
+ this is, if encryptPassword(String) or
+ checkPassword(String, String) have been called at least
+ once.+public void setPlainDigest(boolean plainDigest)+
MessageDigest), or rather use the
+ jasypt's usual stronger mechanism for password encryption (based
+ on the use of a salt and the iteration of the hash function).
++
plainDigest - true for using plain digests, false for the strong
+ salt and iteration count based mechanism.+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++
stringOutputType - the string output type.+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface PasswordEncryptor
+
+ Common interface for all util classes aimed at password encryption. +
++ +
+
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
| +Method Detail | +
|---|
+String encryptPassword(String password)+
+
password - the password to be encrypted.
++boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
plainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.StrongPasswordEncryptor +
public final class StrongPasswordEncryptor
+
+ Utility class for easily performing high-strength password + digesting and checking. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
+ The required steps to use it are: +
encryptPassword(String) or
+ checkPassword(String, String)
+ operations.+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
StrongPasswordEncryptor()
+
++ Creates a new instance of StrongPasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StrongPasswordEncryptor()+
+
| +Method Detail | +
|---|
+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use PasswordEncryptor | +|
|---|---|
| org.jasypt.util.password | ++ |
| org.jasypt.util.password.rfc2307 | ++ |
| +Uses of PasswordEncryptor in org.jasypt.util.password | +
|---|
+ +
| Classes in org.jasypt.util.password that implement PasswordEncryptor | +|
|---|---|
+ class |
+BasicPasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking. |
+
+ class |
+ConfigurablePasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking. |
+
+ class |
+StrongPasswordEncryptor
+
++ + Utility class for easily performing high-strength password + digesting and checking. |
+
| +Uses of PasswordEncryptor in org.jasypt.util.password.rfc2307 | +
|---|
+ +
| Classes in org.jasypt.util.password.rfc2307 that implement PasswordEncryptor | +|
|---|---|
+ class |
+RFC2307MD5PasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking + according to {MD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. |
+
+ class |
+RFC2307SHAPasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking + according to {SHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. |
+
+ class |
+RFC2307SMD5PasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking + according to {SMD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. |
+
+ class |
+RFC2307SSHAPasswordEncryptor
+
++ + Utility class for easily performing password digesting and checking + according to {SSHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +PasswordEncryptor |
+
|
+Classes
+
+ +BasicPasswordEncryptor + +ConfigurablePasswordEncryptor + +StrongPasswordEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| PasswordEncryptor | ++ Common interface for all util classes aimed at password encryption. | +
+ +
| +Class Summary | +|
|---|---|
| BasicPasswordEncryptor | ++ Utility class for easily performing password digesting and checking. | +
| ConfigurablePasswordEncryptor | ++ Utility class for easily performing password digesting and checking. | +
| StrongPasswordEncryptor | ++ Utility class for easily performing high-strength password + digesting and checking. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.util.password | +|
|---|---|
| org.jasypt.util.password | ++ |
| org.jasypt.util.password.rfc2307 | ++ |
| +Classes in org.jasypt.util.password used by org.jasypt.util.password | +|
|---|---|
| PasswordEncryptor
+
+ + + Common interface for all util classes aimed at password encryption. |
+|
| +Classes in org.jasypt.util.password used by org.jasypt.util.password.rfc2307 | +|
|---|---|
| PasswordEncryptor
+
+ + + Common interface for all util classes aimed at password encryption. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.rfc2307.RFC2307MD5PasswordEncryptor +
public final class RFC2307MD5PasswordEncryptor
+
+ Utility class for easily performing password digesting and checking + according to {MD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
RFC2307MD5PasswordEncryptor()
+
++ Creates a new instance of RFC2307MD5PasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RFC2307MD5PasswordEncryptor()+
+
| +Method Detail | +
|---|
+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++
stringOutputType - the string output type.+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.rfc2307.RFC2307SHAPasswordEncryptor +
public final class RFC2307SHAPasswordEncryptor
+
+ Utility class for easily performing password digesting and checking + according to {SHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
RFC2307SHAPasswordEncryptor()
+
++ Creates a new instance of RFC2307SHAPasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RFC2307SHAPasswordEncryptor()+
+
| +Method Detail | +
|---|
+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++
stringOutputType - the string output type.+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.rfc2307.RFC2307SMD5PasswordEncryptor +
public final class RFC2307SMD5PasswordEncryptor
+
+ Utility class for easily performing password digesting and checking + according to {SMD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
setSaltSizeBytes(int)).+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
RFC2307SMD5PasswordEncryptor()
+
++ Creates a new instance of RFC2307OpenLDAPSSHAPasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ + Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size (in bytes) of the salt to be used. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RFC2307SMD5PasswordEncryptor()+
+
| +Method Detail | +
|---|
+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size (in bytes) of the salt to be used. +
++ Default is 8. +
++
saltSizeBytes - the salt size in bytes+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++
stringOutputType - the string output type.+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. +
++ This password encryptor expects encrypted passwords being matched to + include the "{SMD5}" prefix, and will fail if not. +
++
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.password.rfc2307.RFC2307SSHAPasswordEncryptor +
public final class RFC2307SSHAPasswordEncryptor
+
+ Utility class for easily performing password digesting and checking + according to {SSHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. +
+
+ This class internally holds a StandardStringDigester
+ configured this way:
+
setSaltSizeBytes(int)).+ This class is thread-safe +
++ +
+
| +Constructor Summary | +|
|---|---|
RFC2307SSHAPasswordEncryptor()
+
++ Creates a new instance of RFC2307OpenLDAPSSHAPasswordEncryptor |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+checkPassword(String plainPassword,
+ String encryptedPassword)
+
++ + Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. |
+
+ String |
+encryptPassword(String password)
+
++ Encrypts (digests) a password. |
+
+ void |
+setSaltSizeBytes(int saltSizeBytes)
+
++ + Sets the size (in bytes) of the salt to be used. |
+
+ void |
+setStringOutputType(String stringOutputType)
+
++ + Sets the the form in which String output + will be encoded. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RFC2307SSHAPasswordEncryptor()+
+
| +Method Detail | +
|---|
+public void setSaltSizeBytes(int saltSizeBytes)+
+ Sets the size (in bytes) of the salt to be used. +
++ Default is 8. +
++
saltSizeBytes - the salt size in bytes+public void setStringOutputType(String stringOutputType)+
+ Sets the the form in which String output + will be encoded. Available encoding types are: +
++
stringOutputType - the string output type.+public String encryptPassword(String password)+
+
encryptPassword in interface PasswordEncryptorpassword - the password to be encrypted.
+StandardStringDigester.digest(String)+public boolean checkPassword(String plainPassword, + String encryptedPassword)+
+ Checks an unencrypted (plain) password against an encrypted one + (a digest) to see if they match. +
++ This password encryptor expects encrypted passwords being matched to + include the "{SSHA}" prefix, and will fail if not. +
++
checkPassword in interface PasswordEncryptorplainPassword - the plain password to check.encryptedPassword - the digest against which to check the password.
+StandardStringDigester.matches(String, String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +RFC2307MD5PasswordEncryptor + +RFC2307SHAPasswordEncryptor + +RFC2307SMD5PasswordEncryptor + +RFC2307SSHAPasswordEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| RFC2307MD5PasswordEncryptor | ++ Utility class for easily performing password digesting and checking + according to {MD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. | +
| RFC2307SHAPasswordEncryptor | ++ Utility class for easily performing password digesting and checking + according to {SHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. | +
| RFC2307SMD5PasswordEncryptor | ++ Utility class for easily performing password digesting and checking + according to {SMD5}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. | +
| RFC2307SSHAPasswordEncryptor | ++ Utility class for easily performing password digesting and checking + according to {SSHA}, a password encryption scheme defined in RFC2307 + and commonly found in LDAP systems. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.text.BasicTextEncryptor +
public final class BasicTextEncryptor
+
+ Utility class for easily performing normal-strength encryption of texts. +
+
+ This class internally holds a StandardPBEStringEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(String) or
+ decrypt(String) operations.+ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
BasicTextEncryptor()
+
++ Creates a new instance of BasicTextEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decrypts a message. |
+
+ String |
+encrypt(String message)
+
++ Encrypts a message. |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[] |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BasicTextEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public String encrypt(String message)+
+
encrypt in interface TextEncryptormessage - the message to be encrypted.StandardPBEStringEncryptor.encrypt(String)+public String decrypt(String encryptedMessage)+
+
decrypt in interface TextEncryptorencryptedMessage - the message to be decrypted.StandardPBEStringEncryptor.decrypt(String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.util.text.StrongTextEncryptor +
public final class StrongTextEncryptor
+
+ Utility class for easily performing high-strength encryption of texts. +
+
+ This class internally holds a StandardPBEStringEncryptor
+ configured this way:
+
+ The required steps to use it are: +
setPassword(String) or
+ setPasswordCharArray(char[])).encrypt(String) or
+ decrypt(String) operations.+ To use this class, you may need to download and install the + Java + Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy + Files. +
++ This class is thread-safe. +
++ +
+
| +Constructor Summary | +|
|---|---|
StrongTextEncryptor()
+
++ Creates a new instance of StrongTextEncryptor. |
+|
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decrypts a message. |
+
+ String |
+encrypt(String message)
+
++ Encrypts a message. |
+
+ void |
+setPassword(String password)
+
++ Sets a password. |
+
+ void |
+setPasswordCharArray(char[] password)
+
++ Sets a password, as a char[]. |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StrongTextEncryptor()+
+
| +Method Detail | +
|---|
+public void setPassword(String password)+
+
password - the password to be set.+public void setPasswordCharArray(char[] password)+
+
password - the password to be set.+public String encrypt(String message)+
+
encrypt in interface TextEncryptormessage - the message to be encrypted.StandardPBEStringEncryptor.encrypt(String)+public String decrypt(String encryptedMessage)+
+
decrypt in interface TextEncryptorencryptedMessage - the message to be decrypted.StandardPBEStringEncryptor.decrypt(String)
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface TextEncryptor
+
+ Common interface for all util classes aimed at text encryption +
++ +
+
| +Method Summary | +|
|---|---|
+ String |
+decrypt(String encryptedMessage)
+
++ Decrypts a message. |
+
+ String |
+encrypt(String message)
+
++ Encrypts a message. |
+
| +Method Detail | +
|---|
+String encrypt(String message)+
+
message - the message to be encrypted.+String decrypt(String encryptedMessage)+
+
encryptedMessage - the message to be decrypted.
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use TextEncryptor | +|
|---|---|
| org.jasypt.properties | ++ |
| org.jasypt.util.text | ++ |
| +Uses of TextEncryptor in org.jasypt.properties | +
|---|
+ +
| Methods in org.jasypt.properties with parameters of type TextEncryptor | +|
|---|---|
+static String |
+PropertyValueEncryptionUtils.decrypt(String encodedValue,
+ TextEncryptor encryptor)
+
++ |
+
+static String |
+PropertyValueEncryptionUtils.encrypt(String decodedValue,
+ TextEncryptor encryptor)
+
++ |
+
+ +
| Constructors in org.jasypt.properties with parameters of type TextEncryptor | +|
|---|---|
EncryptableProperties(java.util.Properties defaults,
+ TextEncryptor textEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed TextEncryptor object to decrypt encrypted values,
+ and the passed defaults as default values (may contain encrypted values). |
+|
EncryptableProperties(TextEncryptor textEncryptor)
+
++ + Creates an EncryptableProperties instance which will use + the passed TextEncryptor object to decrypt encrypted values. |
+|
| +Uses of TextEncryptor in org.jasypt.util.text | +
|---|
+ +
| Classes in org.jasypt.util.text that implement TextEncryptor | +|
|---|---|
+ class |
+BasicTextEncryptor
+
++ + Utility class for easily performing normal-strength encryption of texts. |
+
+ class |
+StrongTextEncryptor
+
++ + Utility class for easily performing high-strength encryption of texts. |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +TextEncryptor |
+
|
+Classes
+
+ +BasicTextEncryptor + +StrongTextEncryptor |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| TextEncryptor | ++ Common interface for all util classes aimed at text encryption | +
+ +
| +Class Summary | +|
|---|---|
| BasicTextEncryptor | ++ Utility class for easily performing normal-strength encryption of texts. | +
| StrongTextEncryptor | ++ Utility class for easily performing high-strength encryption of texts. | +
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.util.text | +|
|---|---|
| org.jasypt.properties | ++ |
| org.jasypt.util.text | ++ |
| +Classes in org.jasypt.util.text used by org.jasypt.properties | +|
|---|---|
| TextEncryptor
+
+ + + Common interface for all util classes aimed at text encryption |
+|
| +Classes in org.jasypt.util.text used by org.jasypt.util.text | +|
|---|---|
| TextEncryptor
+
+ + + Common interface for all util classes aimed at text encryption |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.web.pbeconfig.WebPBEConfigFilter +
public final class WebPBEConfigFilter
+
+ This filter is intended to avoid access to the web application until + an admin has set the encryption passwords. It will query the web PBE config + system to know whether passwords have been set and, if not, it will show the + user a plain Access Forbidden page. +
++ An example web.xml fragment (being applied on a Struts servlet): +
++ <filter> + <filter-name>webPBEConfigFilter</filter-name> + <filter-class>org.jasypt.web.pbeconfig.WebPBEConfigFilter</filter-class> + </filter> + + <filter-mapping> + <filter-name>webPBEConfigFilter</filter-name> + <servlet-name>strutsActionServlet</servlet-name> + </filter-mapping> ++
+ +
+
| +Constructor Summary | +|
|---|---|
WebPBEConfigFilter()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ |
+
+ void |
+doFilter(javax.servlet.ServletRequest request,
+ javax.servlet.ServletResponse response,
+ javax.servlet.FilterChain chain)
+
++ |
+
+ void |
+init(javax.servlet.FilterConfig filterConfig)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public WebPBEConfigFilter()+
| +Method Detail | +
|---|
+public void doFilter(javax.servlet.ServletRequest request, + javax.servlet.ServletResponse response, + javax.servlet.FilterChain chain) + throws java.io.IOException, + javax.servlet.ServletException+
doFilter in interface javax.servlet.Filterjava.io.IOException
+javax.servlet.ServletException+public void init(javax.servlet.FilterConfig filterConfig) + throws javax.servlet.ServletException+
init in interface javax.servlet.Filterjavax.servlet.ServletException+public void destroy()+
destroy in interface javax.servlet.Filter
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.web.pbeconfig.WebPBEConfigRegistry +
public final class WebPBEConfigRegistry
+
+ Registry for WebPBEConfig objects. This class is intended
+ for internal use only, and should not be accessed from the user's
+ code.
+
+ +
+
| +Method Summary | +|
|---|---|
+ java.util.List |
+getConfigs()
+
++ |
+
+static WebPBEConfigRegistry |
+getInstance()
+
++ |
+
+ boolean |
+isWebConfigurationDone()
+
++ |
+
+ void |
+registerConfig(WebPBEConfig config)
+
++ |
+
+ void |
+setWebConfigurationDone(boolean configurationDone)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static WebPBEConfigRegistry getInstance()+
+public void registerConfig(WebPBEConfig config)+
+public java.util.List getConfigs()+
+public boolean isWebConfigurationDone()+
+public void setWebConfigurationDone(boolean configurationDone)+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++javax.servlet.GenericServlet +
javax.servlet.http.HttpServlet +
org.jasypt.web.pbeconfig.WebPBEConfigServlet +
public final class WebPBEConfigServlet
+
+ Servlet for web PBE config processing. +
+
+ This servlet's URL should be called by the webapp administrator at deploy
+ time, for setting the passwords of all the PBE encryptors which have
+ been previously assigned a WebPBEConfig configuration object.
+
+ If web PBE configuration has not been done yet, it will show the user a + form containing two inputs for each encryptor: the validation word + and the password (retyped). +
+WebPBEConfig object with its setValidationWord(...)
+ method. This will ensure that only an authorized person will set
+ the encryption passwords.+ An example web.xml fragment: +
++ <servlet> + <servlet-name>webPBEConfigServlet</servlet-name> + <servlet-class> + org.jasypt.web.pbeconfig.WebPBEConfigServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + + <servlet-mapping> + <servlet-name>webPBEConfigServlet</servlet-name> + <url-pattern>/webPBEConfig.do</url-pattern> + </servlet-mapping> ++
+ If this servlet's context is set a logger, it will output messages for + both successful and failed attempts to set passwords, including + date, time and originating IP address. +
++ +
+
| +Constructor Summary | +|
|---|---|
WebPBEConfigServlet()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected void |
+doGet(javax.servlet.http.HttpServletRequest req,
+ javax.servlet.http.HttpServletResponse resp)
+
++ |
+
+protected void |
+doPost(javax.servlet.http.HttpServletRequest req,
+ javax.servlet.http.HttpServletResponse resp)
+
++ |
+
| Methods inherited from class javax.servlet.http.HttpServlet | +
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
+
| Methods inherited from class javax.servlet.GenericServlet | +
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public WebPBEConfigServlet()+
| +Method Detail | +
|---|
+protected void doGet(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse resp) + throws javax.servlet.ServletException, + java.io.IOException+
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
+java.io.IOException+protected void doPost(javax.servlet.http.HttpServletRequest req, + javax.servlet.http.HttpServletResponse resp) + throws javax.servlet.ServletException, + java.io.IOException+
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletException
+java.io.IOException
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+Object ++org.jasypt.web.pbeconfig.WebPBEInitializationContextListener +
public final class WebPBEInitializationContextListener
+
+ ContextListener which takes a WebPBEInitializer implementation
+ class name as a parameter (<context-param>) and calls its
+ initializeWebPBEConfigs() method to allow the webapp to
+ create its PBE encryptors and declare their associated WebPBEConfig
+ objects.
+
+ An example web.xml fragment: +
++ <context-param> + <param-name>webPBEInitializerClassName</param-name> + <param-value>myapp.MyWebPBEInitializer</param-value> + </context-param> + + <listener> + <listener-class> + org.jasypt.web.pbeconfig.WebPBEInitializationContextListener + </listener-class> + </listener> ++
+ Important: If the web application uses Spring Framework, WebPBEConfig + objects are declared as beans in the Spring context and this Spring context + is initialized at application deploy time + (with Spring's ContextLoaderListener), the use + of this context listener will become unnecessary. +
++ +
+
| +Field Summary | +|
|---|---|
+static String |
+INIT_PARAM_INITIALIZER_CLASS_NAME
+
++ |
+
| +Constructor Summary | +|
|---|---|
WebPBEInitializationContextListener()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+contextDestroyed(javax.servlet.ServletContextEvent sce)
+
++ |
+
+ void |
+contextInitialized(javax.servlet.ServletContextEvent sce)
+
++ |
+
| Methods inherited from class Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String INIT_PARAM_INITIALIZER_CLASS_NAME+
| +Constructor Detail | +
|---|
+public WebPBEInitializationContextListener()+
| +Method Detail | +
|---|
+public void contextDestroyed(javax.servlet.ServletContextEvent sce)+
contextDestroyed in interface javax.servlet.ServletContextListener+public void contextInitialized(javax.servlet.ServletContextEvent sce)+
contextInitialized in interface javax.servlet.ServletContextListener
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface WebPBEInitializer
+
+ Interface which must be implemented by the user-defined classes which + create and initialize webapp PBE encryptors for being configured through + the web pbe configuration servlet. +
+
+ This interface only has one method, initializeWebPBEConfigs(),
+ which the implementation class should use for creating encryptors and
+ setting WebPBEConfig objects to them, like:
+
+ package myapp;
+ ...
+ public class MyWebPBEInitializer implements WebPBEInitializer {
+
+ public void initializeWebPBEConfigs() {
+
+ StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
+ encryptor.setAlgorithm("PBEWithMD5AndDES");
+
+ WebPBEConfig webConfig = new WebPBEConfig();
+ webConfig.setValidationWord("jasypt");
+ webConfig.setName("Main Password");
+
+ encryptor.setConfig(webConfig);
+
+ // Get some user-defined singleton or similar, and register
+ // the encryptor with it so that it can be accessed from the
+ // rest of the application.
+
+ }
+
+ }
+
+ + All WebPBEConfig objects get internally registered at + instantiation time, and once assigned to an encryptor they will appear + in the web form for password setting. +
+
+ Important: If the web application uses Spring Framework, WebPBEConfig
+ objects are declared as beans in the Spring context and this Spring context
+ is initialized at application deploy time
+ (with Spring's ContextLoaderListener), it will NOT be necessary
+ to create
+ any classes implementing this WebPBEInitializer interface.
+ The use WebPBEInitializationContextListener will also become
+ unnecessary.
+
+ +
+
| +Method Summary | +|
|---|---|
+ void |
+initializeWebPBEConfigs()
+
++ + Method called by WebPBEInitializationContextListener at
+ application deploy time for initialization of jasypt encryptors. |
+
| +Method Detail | +
|---|
+void initializeWebPBEConfigs()+
+ Method called by WebPBEInitializationContextListener at
+ application deploy time for initialization of jasypt encryptors.
+
+
+
+
|
++ + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use WebPBEConfigRegistry | +|
|---|---|
| org.jasypt.web.pbeconfig | ++ |
| +Uses of WebPBEConfigRegistry in org.jasypt.web.pbeconfig | +
|---|
+ +
| Methods in org.jasypt.web.pbeconfig that return WebPBEConfigRegistry | +|
|---|---|
+static WebPBEConfigRegistry |
+WebPBEConfigRegistry.getInstance()
+
++ |
+
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +WebPBEInitializer |
+
|
+Classes
+
+ +WebPBEConfigFilter + +WebPBEConfigRegistry + +WebPBEConfigServlet + +WebPBEInitializationContextListener |
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| WebPBEInitializer | ++ Interface which must be implemented by the user-defined classes which + create and initialize webapp PBE encryptors for being configured through + the web pbe configuration servlet. | +
+ +
| +Class Summary | +|
|---|---|
| WebPBEConfigFilter | ++ This filter is intended to avoid access to the web application until + an admin has set the encryption passwords. | +
| WebPBEConfigRegistry | +
+ Registry for WebPBEConfig objects. |
+
| WebPBEConfigServlet | ++ Servlet for web PBE config processing. | +
| WebPBEInitializationContextListener | +
+ ContextListener which takes a WebPBEInitializer implementation
+ class name as a parameter (<context-param>) and calls its
+ initializeWebPBEConfigs() method to allow the webapp to
+ create its PBE encryptors and declare their associated WebPBEConfig
+ objects. |
+
+
+
+
|
++ + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use org.jasypt.web.pbeconfig | +|
|---|---|
| org.jasypt.web.pbeconfig | ++ |
| +Classes in org.jasypt.web.pbeconfig used by org.jasypt.web.pbeconfig | +|
|---|---|
| WebPBEConfigRegistry
+
+ + + Registry for WebPBEConfig objects. |
+|
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + | +
|---|
+ + + diff --git a/utils/jasypt-1.9.2/apidocs/jasypt/overview-summary.html b/utils/jasypt-1.9.2/apidocs/jasypt/overview-summary.html new file mode 100644 index 00000000..896ecae4 --- /dev/null +++ b/utils/jasypt-1.9.2/apidocs/jasypt/overview-summary.html @@ -0,0 +1,233 @@ + + + +
+ + +
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| org.jasypt.commons | ++ |
| org.jasypt.digest | ++ |
| org.jasypt.digest.config | ++ |
| org.jasypt.encryption | ++ |
| org.jasypt.encryption.pbe | ++ |
| org.jasypt.encryption.pbe.config | ++ |
| org.jasypt.exceptions | ++ |
| org.jasypt.intf.cli | ++ |
| org.jasypt.intf.service | ++ |
| org.jasypt.normalization | ++ |
| org.jasypt.properties | ++ |
| org.jasypt.registry | ++ |
| org.jasypt.salt | ++ |
| org.jasypt.util.binary | ++ |
| org.jasypt.util.digest | ++ |
| org.jasypt.util.numeric | ++ |
| org.jasypt.util.password | ++ |
| org.jasypt.util.password.rfc2307 | ++ |
| org.jasypt.util.text | ++ |
| org.jasypt.web.pbeconfig | ++ |
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Package org.jasypt.exceptions | +
|---|
| +Class org.jasypt.exceptions.AlreadyInitializedException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 4592515503937873874L + +
+ +
| +Class org.jasypt.exceptions.EncryptionInitializationException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 8929638240023639778L + +
+ +
| +Class org.jasypt.exceptions.EncryptionOperationNotPossibleException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 6304674109588715145L + +
+ +
| +Class org.jasypt.exceptions.PasswordAlreadyCleanedException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 7988484935273871733L + +
+
| +Package org.jasypt.properties | +
|---|
| +Class org.jasypt.properties.EncryptableProperties extends java.util.Properties implements Serializable | +
|---|
+serialVersionUID: 6479795856725500639L + +
| +Serialization Methods | +
|---|
+private void readObject(java.io.ObjectInputStream in) + throws java.io.IOException, + ClassNotFoundException+
java.io.IOException
+ClassNotFoundException+private void writeObject(java.io.ObjectOutputStream outputStream) + throws java.io.IOException+
java.io.IOException| +Serialized Fields | +
|---|
+Integer ident+
| +Package org.jasypt.web.pbeconfig | +
|---|
| +Class org.jasypt.web.pbeconfig.WebPBEConfigServlet extends javax.servlet.http.HttpServlet implements Serializable | +
|---|
+serialVersionUID: -7201635392816652667L + +
+ +
+
+
+
|
++ + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
Q(lhq<|cHM&!lAV_n>
zd?rO$-da%lE0#NbVmzzC2>$O^54s;{ic3LrMm_YKt ZmMUy|;B|%1I|7j#s
z@xZn|+TZ-LLj6Ri=x1|%ByGY4k}C@JLpRg4&4c!P+RIGFyg+q>z%|ez$Ye7Gx-96N
z&6?~Hw3|N`NHs(d4|(Roe
}=0EO-WR&s3K~d(ZIP1E)_vr}vDtdr8;HGg~RRpF7q4=tG@b^|bxK2Tiys
zT=t|4>G9Au+=Nrzlo3yHpvNIi9^n}Wx&QL|_mJml4>Aak2T9ZcCW-Nf`IvIIWD~yz
z$=QCLH_CAj^qXb5`AN)h-Z0tT8X&Qxn60|)W)<#&<-eG&5`t$8F>M~YAk}M#L+20_
z)$~;~PC*`KT4JoT77Y