Interface TokenManager

All Superinterfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager
All Known Implementing Classes:
TokenManagerImpl

public interface TokenManager extends io.vertigo.core.node.component.Manager
Manager of Security Access Token.
Author:
npiedeloup (16 juil. 2014 12:49:49)
  • Method Details

    • put

      <D extends Serializable> String put(D data)
      Store object and return unique key. Same object can be put multiple times, always return a new unique key.
      Parameters:
      data - Object to store
      Returns:
      unique key of this object
    • get

      <D extends Serializable> Optional<D> get(String key)
      Get object by key.
      Parameters:
      key - key of this object
      Returns:
      Object store
    • getAndRemove

      <D extends Serializable> Optional<D> getAndRemove(String key)
      Get and remove object by key.
      Parameters:
      key - key of this object
      Returns:
      Object store or null if unknown