Creates a new instance of Jwt
from the given string. The string
must be in the following format:
base64UrlEncode(header).base64UrlEncode(body).base64UrlEncode(signature)
Creates a new instance of Jwt
with the given header, body and
optional signature.
The data used to calculate the JWT Signature
base64UrlEncode(header) + "." + base64UrlEncode(body)
Retrieves the application ID that is the issuer of this JWT.
Retrieves the identity that is the subject of this JWT.
Returns a boolean indicating whether this JWT is (or will be) expired at the given date or not.
The date to check. Defaults to new Date()
.
true
if token is expired, otherwise false
.Returns the string representation of this JWT.
Parses the string representation of the JWT into an object representation.
The JWT string. Must have the following format:
base64UrlEncode(Header) + "." + base64UrlEncode(Body) + "." + base64UrlEncode(Signature)
See the Introduction to JWT for more details.
Class representing the JWT providing access to the Virgil Security APIs. Implements IAccessToken interface.