private Object writeReplace() throws ObjectStreamException {
  return new KeyRep(KeyRep.Type.SECRET,getAlgorithm(),getFormat(),getEncoded());
}

private Object writeReplace ( ) throws ObjectStreamException { return new KeyRep ( KeyRep . Type . SECRET , getAlgorithm ( ) , getFormat ( ) , getEncoded ( ) ) ; }
replace the pbe key to be serialized .
