This content has been marked as final.
Show 3 replies
-
1. Re: Seam Pros: Need help with jasypt
keithnaas Mar 18, 2008 8:57 PM (in response to indyjones2)Not sure if you are or aren't. Can you provide the exception details including the stack trace so we can see what is happening?
Thanks,
-
2. Re: Seam Pros: Need help with jasypt
indyjones2 Mar 18, 2008 9:31 PM (in response to indyjones2)my bean:
@TypeDef( name="encryptedString", typeClass=EncryptedStringType.class, parameters= {@Parameter(name="encryptorRegisteredName", value="myHibernateStringEncryptor")} ) @Entity @Name("question") @Table(name="QUESTION") public class Question implements Serializable{ private String question; @NotNull(message = "Question is required") @Column(length=1000) @Type(type="encryptedString") public String getQuestion() { return this.question; } public void setQuestion(String question) { this.question = question; } }
Error:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
Thats it....
I get this only when trying to retrieve and display the question attribute...
I can create a new record and encrypt the field just fine...
It looks like my problem is in the decryption...
thanks
indy
-
3. Re: Seam Pros: Need help with jasypt
indyjones2 Mar 19, 2008 2:12 PM (in response to indyjones2)Found the problem...
I had records in the database that didn't have the question (encrypted field) encrypted.
When it tried to pull back these records, I got the error...
Everything works great now...