virgil_sdk.jwt.jwt_generator module¶
-
class
virgil_sdk.jwt.jwt_generator.
JwtGenerator
(app_id, api_key, api_public_key_id, lifetime, access_token_signer)[source]¶ Bases:
object
The JwtGenerator class implements Jwt generation.
- Parameters
app_id – Application id. Take it on https://dashboard.virgilsecurity.com
api_key – Private Key which will be used for signing generated access tokens. Take it on https://dashboard.virgilsecurity.com/api-keys
api_public_key_id – Key Id of take it on https://dashboard.virgilsecurity.com/api-keys
lifetime – Lifetime of generated tokens.
access_token_signer – An instance of AccessTokenSigner that is used to generate token signature using api_key.