Class RemoteAuthenticationContextManagement<T extends RelayedAuthnState>

  • Direct Known Subclasses:
    SharedRemoteAuthenticationContextStore

    public class RemoteAuthenticationContextManagement<T extends RelayedAuthnState>
    extends Object
    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
    • Constructor Detail

      • RemoteAuthenticationContextManagement

        public RemoteAuthenticationContextManagement​(Duration maxTTL)
      • RemoteAuthenticationContextManagement

        public RemoteAuthenticationContextManagement​(Duration maxTTL,
                                                     Duration cleanupInterval)
    • Method Detail

      • addAuthnContext

        public void addAuthnContext​(T context)
      • getAndRemoveAuthnContext

        public T getAndRemoveAuthnContext​(String relayState)