throws IOException, ClassNotFoundException
{
String datatype = "encryptedSerializable";
String sd = SerializableMarshaller.DATATYPE;
String sud = SerializableUnMarshaller.DATATYPE;
EncryptingMarshaller em =
new EncryptingMarshaller(MarshalFactory.getMarshaller(sd));
EncryptingUnMarshaller um =
new EncryptingUnMarshaller(MarshalFactory.getUnMarshaller(sud));
if(algo != null)
{
em.setCipherAlgorithm(algo);
um.setCipherAlgorithm(algo);
}
MarshalFactory.addMarshaller(datatype,em, um);
marshaller = MarshalFactory.getMarshaller(datatype);