T
- the type of the object being stored in the CorrelationMap (e.g. a request).public interface CorrelationMap<T>
It can be used to represent a transaction between the ServiceProvider and the eIDAS Connector.
This interface can be used to correlate incoming requests sent by the ServiceProvider to asynchronous responses received from eIDAS ProxyServices.
The implementations should typically be based on a thread-safe map where the keys are the IDs of the SAML requests generated by the eIDAS connector from the ServiceProvider requests and the values are these ServiceProvider requests themselves.
Modifier and Type | Method and Description |
---|---|
T |
get(String id)
Retrieves the object stored under the given id.
|
T |
put(String id,
T value)
Stores the given value under the given id in the CorrelationMap.
|
T |
remove(String id)
Deletes the mapping for the given id if one existed.
|
@Nullable T get(@Nonnull String id)
id
- the idnull
if the id was not present or
expired.@Nullable T put(@Nonnull String id, @Nonnull T value)
id
- the idvalue
- the object to store in the CorrelationMap for the given id, cannot be null
.null
otherwise.Copyright © 2020. All Rights Reserved.