Class InMemoryOneTimeTokenService

java.lang.Object
org.springframework.security.authentication.ott.InMemoryOneTimeTokenService
All Implemented Interfaces:
OneTimeTokenService

public final class InMemoryOneTimeTokenService extends Object implements OneTimeTokenService
Provides an in-memory implementation of the OneTimeTokenService interface that uses a ConcurrentHashMap to store the generated OneTimeToken. A random UUID is used as the token value. A clean-up of the expired tokens is made if there is more or equal than 100 tokens stored in the map.
Since:
6.4
  • Constructor Details

    • InMemoryOneTimeTokenService

      public InMemoryOneTimeTokenService()
  • Method Details