Class H2TokenStore

java.lang.Object
org.opendaylight.aaa.datastore.h2.H2TokenStore
All Implemented Interfaces:
AutoCloseable, org.opendaylight.aaa.api.TokenStore

public class H2TokenStore extends Object implements AutoCloseable, org.opendaylight.aaa.api.TokenStore
  • Constructor Details

    • H2TokenStore

      public H2TokenStore(long secondsToLive, long secondsToIdle)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • get

      public org.opendaylight.aaa.api.Authentication get(String token)
      Specified by:
      get in interface org.opendaylight.aaa.api.TokenStore
    • put

      public void put(String token, org.opendaylight.aaa.api.Authentication auth)
      Specified by:
      put in interface org.opendaylight.aaa.api.TokenStore
    • delete

      public boolean delete(String token)
      Specified by:
      delete in interface org.opendaylight.aaa.api.TokenStore
    • tokenExpiration

      public long tokenExpiration()
      Specified by:
      tokenExpiration in interface org.opendaylight.aaa.api.TokenStore