Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes SealedObjects and unsealing them Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SealedObjects and unsealing them" Watch "SealedObjects and unsealing them" New topic
Author

SealedObjects and unsealing them

Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Hi there,

I have this object called UserDetail. It has two private Strings called username and passwd.

This UserDetail object I seal up into a SealedObject and it gets put into a file.

Now when I try to take the UserDetail out of the file and out of the SealedObject, the username comes out fine but the passwd come out as a bizarre String of characters.

I don't understand why this is happening as they are both plain strings. Please could someone give me some advice.

Many kind regards,
Rachel
 
 
subject: SealedObjects and unsealing them
 
Similar Threads
Servlet Sessions Coding
Changing file
Security Patterns example code ?
Class of an object
Obfuscated Transfer Object Pattern ?