@ThreadSafe public class StorageBackedIdPSessionSerializer extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements org.opensaml.storage.StorageSerializer<StorageBackedIdPSession>
StorageBackedIdPSession designed in conjunction with the
StorageService-backed SessionManager implementation.| Modifier and Type | Field and Description |
|---|---|
private static String |
CREATION_INSTANT_FIELD
Field name of creation instant.
|
private static String |
FLOW_ID_ARRAY_FIELD
Field name of flow ID array.
|
private static String |
IPV4_ADDRESS_FIELD
Field name of IPv4 address.
|
private static String |
IPV6_ADDRESS_FIELD
Field name of IPv6 address.
|
private Logger |
log
Class logger.
|
private static String |
PRINCIPAL_NAME_FIELD
Field name of principal name.
|
private static String |
SERVICE_ID_ARRAY_FIELD
Field name of service ID array.
|
private StorageBackedSessionManager |
sessionManager
Back-reference to parent instance.
|
private StorageBackedIdPSession |
targetObject
Object instance to overwrite with deserialization method.
|
| Constructor and Description |
|---|
StorageBackedIdPSessionSerializer(StorageBackedSessionManager manager,
StorageBackedIdPSession target)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StorageBackedIdPSession |
deserialize(int version,
String context,
String key,
String value,
Long expiration) |
String |
serialize(StorageBackedIdPSession instance) |
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull @NotEmpty private static final String CREATION_INSTANT_FIELD
@Nonnull @NotEmpty private static final String PRINCIPAL_NAME_FIELD
@Nonnull @NotEmpty private static final String IPV4_ADDRESS_FIELD
@Nonnull @NotEmpty private static final String IPV6_ADDRESS_FIELD
@Nonnull @NotEmpty private static final String FLOW_ID_ARRAY_FIELD
@Nonnull @NotEmpty private static final String SERVICE_ID_ARRAY_FIELD
@Nonnull private final StorageBackedSessionManager sessionManager
@Nullable private final StorageBackedIdPSession targetObject
public StorageBackedIdPSessionSerializer(@Nonnull StorageBackedSessionManager manager, @Nullable StorageBackedIdPSession target)
manager - parent SessionManager instancetarget - object to overwrite when deseralizing instead of creating a new instance@Nonnull @NotEmpty public String serialize(@Nonnull StorageBackedIdPSession instance) throws IOException
serialize in interface org.opensaml.storage.StorageSerializer<StorageBackedIdPSession>IOException@Nonnull public StorageBackedIdPSession deserialize(int version, @Nonnull@NotEmpty String context, @Nonnull@NotEmpty String key, @Nonnull@NotEmpty String value, @Nullable Long expiration) throws IOException
deserialize in interface org.opensaml.storage.StorageSerializer<StorageBackedIdPSession>IOExceptionCopyright © 1999–2014. All rights reserved.