Class SAML1SPSessionSerializer

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, StorageSerializer<SPSession>

@ThreadSafe public class SAML1SPSessionSerializer extends AbstractSPSessionSerializer
A serializer for SAML1SPSession objects.
  • Constructor Details

    • SAML1SPSessionSerializer

      public SAML1SPSessionSerializer(@Nonnull @ParameterName(name="offset") Duration offset)
      offset - time to subtract from record expiration to establish session expiration value
  • Method Details

    • doDeserialize

      @Nonnull protected SPSession doDeserialize(javax.json.JsonObject obj, 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
      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
      the newly constructed object
      IOException - if an error occurs during deserialization