aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SealedObjects and unsealing them