public interface PersistentIdStore extends IPersistentIdStore
This interface is deprecated and is no longer used within the IdP. It is "racy" in that the operations are too granular to ensure transactional behavior for multiple requests from the same user for the same service, which is supported now, and was much less common in V2.
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate(String persistentId,
org.joda.time.DateTime deactivation)
Deprecated.
Deactivate a persistent ID.
|
PersistentIdEntry |
getActiveEntry(String persistentId)
Deprecated.
Get the active persistent ID entry for a given ID.
|
PersistentIdEntry |
getActiveEntry(String issuer,
String recipient,
String sourceId)
Deprecated.
Get the active persistent ID entry for an (issuer, recipient, source ID) tuple.
|
int |
getCount(String issuer,
String recipient,
String sourceId)
Deprecated.
Get the count of persistent ID entries for a (principal, issuer, source ID) tuple.
|
boolean |
isAvailable(String persistentId)
Deprecated.
Get whether a persistent ID is not in use, active or otherwise.
|
void |
store(PersistentIdEntry entry)
Deprecated.
Store a persistent ID.
|
boolean isAvailable(@Nonnull@NotEmpty String persistentId) throws IOException
persistentId - the ID to checkIOException - if an error occurs accessing the storevoid store(@Nonnull PersistentIdEntry entry) throws IOException
entry - entry to storeIOException - if there is an error updating the storeint getCount(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
issuer - entityID of the ID issuerrecipient - entityID of the recipient the ID is forsourceId - source ID underlying the persistent IDIOException - if an error occurs accessing the store@Nullable PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String persistentId) throws IOException
persistentId - the persistent ID to lookupIOException - if an error occurs accessing the store@Nullable PersistentIdEntry getActiveEntry(@Nonnull@NotEmpty String issuer, @Nonnull@NotEmpty String recipient, @Nonnull@NotEmpty String sourceId) throws IOException
issuer - entityID of the ID issuerrecipient - entityID of the recipient the ID is forsourceId - source ID underlying the persistent IDIOException - if an error occurs accessing the storevoid deactivate(@NotEmpty String persistentId, @Nullable org.joda.time.DateTime deactivation) throws IOException
persistentId - ID to deactivatedeactivation - deactivation time, if null the current time is usedIOException - if there is an error updating the storeCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.