Package io.vertigo.vega.token
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 Summary
Modifier and TypeMethodDescription<D extends Serializable>
Optional<D>Get object by key.<D extends Serializable>
Optional<D>getAndRemove(String key) Get and remove object by key.<D extends Serializable>
Stringput(D data) Store object and return unique key.
-
Method Details
-
put
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
Get object by key.- Parameters:
key- key of this object- Returns:
- Object store
-
getAndRemove
Get and remove object by key.- Parameters:
key- key of this object- Returns:
- Object store or null if unknown
-