AuthTokenManager Class

Manager for custom user authorization token

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.0
C#
public sealed class AuthTokenManager : IDisposable
Inheritance
Object    AuthTokenManager
Implements
IDisposable

Remarks

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.

Constructors

AuthTokenManagerInitializes a new instance of the AuthTokenManager class

Properties

Methods

DisposeReleases 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 

See Also