Class StorageServiceClientInformationManager
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.oidc.metadata.impl.BaseStorageServiceClientInformationComponent
net.shibboleth.oidc.metadata.impl.StorageServiceClientInformationManager
- All Implemented Interfaces:
ClientInformationManager,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class StorageServiceClientInformationManager
extends BaseStorageServiceClientInformationComponent
implements ClientInformationManager
A
ClientInformationManager exploiting StorageService for storing the data.-
Field Summary
FieldsFields inherited from class net.shibboleth.oidc.metadata.impl.BaseStorageServiceClientInformationComponent
CONTEXT_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroyClientInformation(ClientID clientId) Invalidates or otherwise removes aClientInformationfrom persistent storage.voidstoreClientInformation(OIDCClientInformation clientInformation, Instant expiration) Deprecated.voidstoreClientInformation(OIDCClientInformation clientInformation, Instant expiration, boolean replace) Store aClientInformationobject.Methods inherited from class net.shibboleth.oidc.metadata.impl.BaseStorageServiceClientInformationComponent
doInitialize, getStorageService, setStorageServiceMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
StorageServiceClientInformationManager
public StorageServiceClientInformationManager()
-
-
Method Details
-
storeClientInformation
public void storeClientInformation(@Nonnull OIDCClientInformation clientInformation, @Nullable Instant expiration, boolean replace) throws ClientInformationManagerException Store aClientInformationobject.- Specified by:
storeClientInformationin interfaceClientInformationManager- Parameters:
clientInformation- The client information to be storedexpiration- The expiration for record, or nullreplace- whether to replace an existing entry- Throws:
ClientInformationManagerException- If the client information cannot be stored.
-
storeClientInformation
@Deprecated public void storeClientInformation(@Nonnull OIDCClientInformation clientInformation, @Nullable Instant expiration) throws ClientInformationManagerException Deprecated.Store aClientInformationobject.This method is deprecated, and is equivalent to calling the replacement method with replace set to false.
- Specified by:
storeClientInformationin interfaceClientInformationManager- Parameters:
clientInformation- The client information to be storedexpiration- The expiration for record, or null- Throws:
ClientInformationManagerException- If the client information cannot be stored.
-
destroyClientInformation
Invalidates or otherwise removes aClientInformationfrom persistent storage.- Specified by:
destroyClientInformationin interfaceClientInformationManager- Parameters:
clientId- the unique ID of the client information to destroy.
-