Package org.opensaml.storage.impl.client
Class JSONClientStorageServiceStore
java.lang.Object
org.opensaml.storage.impl.client.AbstractClientStorageServiceStore
org.opensaml.storage.impl.client.JSONClientStorageServiceStore
- All Implemented Interfaces:
ClientStorageServiceStore
JSON-based storage for
ClientStorageService.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory for JSON-backed store.Nested classes/interfaces inherited from interface org.opensaml.storage.impl.client.ClientStorageServiceStore
ClientStorageServiceStore.Factory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReconstitute stored data.save(ClientStorageService storageService) Serialize current state of stored data into a storage operation.Methods inherited from class org.opensaml.storage.impl.client.AbstractClientStorageServiceStore
getContextMap, getSource, isDirty, load, setDirty
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
JSONClientStorageServiceStore
public JSONClientStorageServiceStore()
-
-
Method Details
-
doLoad
Reconstitute stored data.- Specified by:
doLoadin classAbstractClientStorageServiceStore- Parameters:
raw- serialized data to load- Throws:
IOException- if an error occurs
-
save
@Nullable public ClientStorageServiceOperation save(@Nonnull ClientStorageService storageService) throws IOException Serialize current state of stored data into a storage operation.- Specified by:
savein interfaceClientStorageServiceStore- Specified by:
savein classAbstractClientStorageServiceStore- Parameters:
storageService- storage service- Returns:
- the operation, or a null if the data has not been modified since loading or saving
- Throws:
IOException- if an error occurs
-