- corruptEncodedString
string corruptEncodedString(size_t part, string field, string badValue)
Undocumented in source. Be warned that the author may not have intended to support it.
- decode
JSONValue decode(string token, string key)
simple version that knows which key was used to encode the token
- decode
JSONValue decode(string token, string delegate(ref JSONValue jose) lazyKey)
full version where the key is provided after decoding the JOSE header
- encode
string encode(string[string] payload, string key, JWTAlgorithm algo, string[string] header_fields)
simple version that accepts only strings as values for payload and header fields
- encode
string encode(JSONValue payload, string key, JWTAlgorithm algo, JSONValue header_fields)
full version that accepts JSONValue tree as payload and header fields
- encode
string encode(ubyte[] payload, string key, JWTAlgorithm algo, JSONValue header_fields)
full version that accepts ubyte[] as payload and JSONValue tree as header fields
- urlsafeB64Decode
string urlsafeB64Decode(string inp)
Decode a string with URL-safe Base64.
- urlsafeB64Encode
string urlsafeB64Encode(string inp)
Encode a string with URL-safe Base64.
- verify
bool verify(string token, string key)
Undocumented in source. Be warned that the author may not have intended to support it.