public void setSerializer(Serializer<PrincipalCollection> serializer) {
        this.serializer = serializer;
    }
Sets the {@code Serializer} used to serialize and deserialize {@link PrincipalCollection} instances for
persistent remember me storage.
<p/>
Unless overridden by this method, the default instance is a {@link DefaultSerializer}.

@param serializer the {@code Serializer} used to serialize and deserialize {@link PrincipalCollection} instances
                  for persistent remember me storage.
core/src/main/java/org/apache/shiro/mgt/AbstractRememberMeManager.java