[identity] Move token definitions out of token cache to generify token cache interface
This refactors the token cache interface to separate token definitions and cache logic. Token and key definitions are pulled out of the token cache and moved to token manager. The cache provides traits that should be implemented by anything stored in the cache. This also adds test configuration to token manager to support tests migrated from token cache. Next changes: Enforce maximum cache size. Change-Id: I63b403a2192e1cdd6b8f1f36d7cb8b334f9a9829
Showing
- src/identity/lib/BUILD.gn 5 additions, 0 deletionssrc/identity/lib/BUILD.gn
- src/identity/lib/meta/token_manager_lib_test.cmx 8 additions, 0 deletionssrc/identity/lib/meta/token_manager_lib_test.cmx
- src/identity/lib/token_cache/src/lib.rs 262 additions, 477 deletionssrc/identity/lib/token_cache/src/lib.rs
- src/identity/lib/token_manager/BUILD.gn 1 addition, 0 deletionssrc/identity/lib/token_manager/BUILD.gn
- src/identity/lib/token_manager/src/lib.rs 1 addition, 0 deletionssrc/identity/lib/token_manager/src/lib.rs
- src/identity/lib/token_manager/src/token_manager.rs 37 additions, 31 deletionssrc/identity/lib/token_manager/src/token_manager.rs
- src/identity/lib/token_manager/src/tokens.rs 444 additions, 0 deletionssrc/identity/lib/token_manager/src/tokens.rs
Loading
Please register or sign in to comment