Class SAML1SPSessionSerializer
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.session.AbstractSPSessionSerializer
-
- net.shibboleth.idp.saml.session.impl.SAML1SPSessionSerializer
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,StorageSerializer<SPSession>
@ThreadSafe public class SAML1SPSessionSerializer extends AbstractSPSessionSerializer
A serializer forSAML1SPSessionobjects.
-
-
Constructor Summary
Constructors Constructor Description SAML1SPSessionSerializer(Duration offset)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SPSessiondoDeserialize(javax.json.JsonObject obj, String id, Instant creation, Instant expiration)Implement this method to return the appropriate type of object, populated with the basic information supplied.-
Methods inherited from class net.shibboleth.idp.session.AbstractSPSessionSerializer
deserialize, doSerializeAdditional, serialize
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Constructor Detail
-
SAML1SPSessionSerializer
public SAML1SPSessionSerializer(@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(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:
doDeserializein classAbstractSPSessionSerializer- Parameters:
obj- JSON structure to parseid- the identifier of the service associated with this sessioncreation- creation time of sessionexpiration- expiration time of session- Returns:
- the newly constructed object
- Throws:
IOException- if an error occurs during deserialization
-
-