security: In MemoryPrivateKeyStorage, added separate setPublicKeyForKeyName and setPrivateKeyForKeyName.