Class BasicSPSessionSerializer

    • Constructor Detail

      • BasicSPSessionSerializer

        public BasicSPSessionSerializer​(@Nonnull @ParameterName(name="offset")
                                        Duration offset)
        Constructor.
        Parameters:
        offset - time to subtract from record expiration to establish session expiration value
    • Method Detail

      • doDeserialize

        @Nonnull
        protected SPSession doDeserialize​(@Nonnull
                                          javax.json.JsonObject obj,
                                          @Nonnull @NotEmpty
                                          String id,
                                          @Nonnull
                                          Instant creation,
                                          @Nonnull
                                          Instant expiration)
                                   throws IOException
        Implement this method to return the appropriate type of object, populated with the basic information supplied.

        The JSON object supplied is a structure that may contain additional data created by the concrete subclass during serialization.

        Specified by:
        doDeserialize in class AbstractSPSessionSerializer
        Parameters:
        obj - JSON structure to parse
        id - the identifier of the service associated with this session
        creation - creation time of session
        expiration - expiration time of session
        Returns:
        the newly constructed object
        Throws:
        IOException - if an error occurs during deserialization