Package net.shibboleth.oidc.metadata
Class MetadataManagementData<MetadataIdentifier>
java.lang.Object
net.shibboleth.oidc.metadata.MetadataManagementData<MetadataIdentifier>
- Type Parameters:
MetadataIdentifier- the key to the stored object.
Class that holds management data about an entities metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InstantExpiration time of the associated metadata.private final MetadataIdentifierThe identifier of the entity managed by this instance.private InstantThe last time at which the entity's backing store data was accessed.private InstantLast update time of the associated metadata.private InstantTime at which should start attempting to refresh the metadata.private final StampedLockRead-write stamped lock which governs access to the metadata's backing store data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the expiration time of the metadata.getID()Get the entity ID managed by this instance.Get the last time at which the entity's backing store data was accessed.Get the last update time of the metadata.Get the refresh trigger time of the metadata.Get the read-write lock instance which governs access to the metadata's backing store data.voidRecord access of the entity's backing store data.voidsetExpirationTime(Instant dateTime) Set the expiration time of the metadata.voidsetLastUpdateTime(Instant dateTime) Set the last update time of the metadata.voidsetRefreshTriggerTime(Instant dateTime) Set the refresh trigger time of the metadata.
-
Field Details
-
id
The identifier of the entity managed by this instance. -
lastUpdateTime
Last update time of the associated metadata. -
expirationTime
Expiration time of the associated metadata. -
refreshTriggerTime
Time at which should start attempting to refresh the metadata. -
lastAccessedTime
The last time at which the entity's backing store data was accessed. -
stmpLock
Read-write stamped lock which governs access to the metadata's backing store data.
-
-
Constructor Details
-
MetadataManagementData
Constructor.- Parameters:
identifier- the entity ID managed by this instance
-
-
Method Details
-
getID
Get the entity ID managed by this instance.- Returns:
- the entity ID
-
getLastUpdateTime
Get the last update time of the metadata.- Returns:
- the last update time, or null if no metadata is yet loaded for the entity
-
setLastUpdateTime
Set the last update time of the metadata.- Parameters:
dateTime- the last update time
-
getExpirationTime
Get the expiration time of the metadata.- Returns:
- the expiration time
-
setExpirationTime
Set the expiration time of the metadata.- Parameters:
dateTime- the new expiration time
-
getRefreshTriggerTime
Get the refresh trigger time of the metadata.- Returns:
- the refresh trigger time
-
setRefreshTriggerTime
Set the refresh trigger time of the metadata.- Parameters:
dateTime- the new refresh trigger time
-
getLastAccessedTime
Get the last time at which the entity's backing store data was accessed.- Returns:
- last access time
-
recordEntityAccess
public void recordEntityAccess()Record access of the entity's backing store data. -
getStampLock
Get the read-write lock instance which governs access to the metadata's backing store data.- Returns:
- the lock instance
-