virgil_sdk.jwt.jwt module¶
-
class
virgil_sdk.jwt.jwt.
Jwt
(jwt_header_content=None, jwt_body_content=None, signature_data=None)[source]¶ Bases:
virgil_sdk.jwt.abstractions.access_token.AccessToken
The Jwt class implements abstract AccessToken in terms of Virgil JWT.
-
property
body_content
¶ Gets representation of jwt body
-
classmethod
from_string
(jwt_string)[source]¶ Initializes a new instance of the Jwt class using its string representation.
- Parameters
jwt_string – String representation of signed jwt. It must be equal to: base64UrlEncode(JWT Header) + “.” + base64UrlEncode(JWT Body) “.” + base64UrlEncode(Jwt Signature).
- Returns
Initialized instance of Jwt.
- Raises
ValueError – Wrong jwt format.
-
property
header_content
¶ Gets representation of jwt header
-
property
identity
¶ Jwt identity.
-
property
signature_data
¶ Gets a digital signature of jwt.
-
property
unsigned_data
¶ String representation of jwt without signature. It equals to: base64UrlEncode(JWT Header) + “.” + base64UrlEncode(JWT Body)
-
property