jwtd.jwt

Undocumented in source.

Public Imports

jwtd.jwt_openssl
public import jwtd.jwt_openssl;
Undocumented in source.
jwtd.jwt_botan
public import jwtd.jwt_botan;
Undocumented in source.
jwtd.jwt_phobos
public import jwtd.jwt_phobos;
Undocumented in source.

Members

Classes

SignException
class SignException
Undocumented in source.
VerifyException
class VerifyException
Undocumented in source.

Enums

JWTAlgorithm
enum JWTAlgorithm
Undocumented in source.

Functions

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.

Meta