Class RemoteAuthenticationContextManagement<T extends RelayedAuthnState>
java.lang.Object
pl.edu.icm.unity.engine.api.authn.remote.RemoteAuthenticationContextManagement<T>
- Direct Known Subclasses:
SharedRemoteAuthenticationContextStore
Maintains a map of remote authentication contexts matched by some string key.
The contexts are matched by the random relay state. The in-memory store of contexts is purged, so the stale
contexts are automatically removed after a timeout.
This class is not anyhow persisted, so after restart all information is lost. This is intended.
Naturally this class is thread safe.
- Author:
- K. Benedyczak
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionRemoteAuthenticationContextManagement
(Duration maxTTL, Duration cleanupInterval) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthnContext
(T context) getAndRemoveAuthnContext
(String relayState)
-
Constructor Details
-
RemoteAuthenticationContextManagement
-
RemoteAuthenticationContextManagement
-
-
Method Details
-
addAuthnContext
-
getAndRemoveAuthnContext
-