protected String internalSerializeToString(final Object obj) {
        return Base64.getEncoder().encodeToString(internalSerializeToBytes(obj));
    }
<p>internalSerializeToString.</p>

@param obj a {@link Object} object
@return a {@link String} object
pac4j-core/src/main/java/org/pac4j/core/util/serializer/AbstractSerializer.java