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
public class JSONClientStorageServiceStore extends AbstractClientStorageServiceStore
JSON-based storage forClientStorageService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONClientStorageServiceStore.JSONClientStorageServiceStoreFactoryFactory for JSON-backed store.-
Nested classes/interfaces inherited from interface org.opensaml.storage.impl.client.ClientStorageServiceStore
ClientStorageServiceStore.Factory
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description JSONClientStorageServiceStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoLoad(String raw)Reconstitute stored data.ClientStorageServiceOperationsave(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
-
-
-
-
Method Detail
-
doLoad
public void doLoad(@Nullable @NotEmpty String raw) throws IOException
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
-
-