I\'m implementing a factory pattern for 3 different cryptography classes. The factory will determine which one to create and then get a serialized instance of the correct cl
Are PgpPublicKey and PgpPrivateKey classes defined by you? Simply add parameterless constructors to them.
PgpPublicKey
PgpPrivateKey
They can be private if you don't want to make them accessible from outside. The deserializer can still access them.