@ThreadSafeAfterInit public class SAML2SPSessionSerializer extends net.shibboleth.idp.session.AbstractSPSessionSerializer
SAML2SPSession objects.| Modifier and Type | Field and Description |
|---|---|
private static String |
NAMEID_FIELD
Field name of NameID.
|
private static Map<String,Object> |
NO_XML_DECL_PARAMS
DOM configuration parameters used by LSSerializer to exclude XML declaration.
|
private ParserPool |
parserPool
Parser for NameID fields.
|
private static String |
SESSION_INDEX_FIELD
Field name of SessionIndex.
|
| Constructor and Description |
|---|
SAML2SPSessionSerializer(long offset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected net.shibboleth.idp.session.SPSession |
doDeserialize(javax.json.JsonObject obj,
String id,
long creation,
long expiration) |
protected void |
doSerializeAdditional(net.shibboleth.idp.session.SPSession instance,
javax.json.stream.JsonGenerator generator) |
void |
setParserPool(ParserPool pool)
Set the
ParserPool to use. |
deserialize, serializedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull @NotEmpty private static final String NAMEID_FIELD
@Nonnull @NotEmpty private static final String SESSION_INDEX_FIELD
@Nonnull private static final Map<String,Object> NO_XML_DECL_PARAMS
@Nonnull private ParserPool parserPool
public SAML2SPSessionSerializer(@Duration@NonNegative long offset)
offset - milliseconds to subtract from record expiration to establish session expiration valuepublic void setParserPool(@Nonnull ParserPool pool)
ParserPool to use.pool - parser sourceprotected void doSerializeAdditional(@Nonnull net.shibboleth.idp.session.SPSession instance, @Nonnull javax.json.stream.JsonGenerator generator)
doSerializeAdditional in class net.shibboleth.idp.session.AbstractSPSessionSerializer@Nonnull protected net.shibboleth.idp.session.SPSession doDeserialize(@Nonnull javax.json.JsonObject obj, @Nonnull@NotEmpty String id, @Duration@Positive long creation, @Duration@Positive long expiration) throws IOException
doDeserialize in class net.shibboleth.idp.session.AbstractSPSessionSerializerIOExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.