AuthTokenManager Class
Manager for custom user authorization token
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.0
public sealed class AuthTokenManager : IDisposable
- Inheritance
- Object AuthTokenManager
- Implements
- IDisposable
For token reauthorization to work properly the driver code would need to be re-factored to allow for Unauthorized exceptions to be retried.
Also support for OAuth2 tokens or JWT would greatly help instead of this custom token being provided.
Dispose | Releases all resources used by the AuthTokenManager |
GetToken |
Returns a token if one is required.
If the token is being updated, the call is blocked waiting for the token to be reauthorized.
If the token is current, it is returned.
|
IsTokenRequired |
Determines if a Token is required
|
SetChannel | |