|
| | IdToken (std::string serialized, const std::map< std::string, std::string > &claims, const std::map< std::string, std::string > &headerParameters={}, const std::map< std::string, std::map< std::string, std::string > > &mapClaims={}) |
| | Constructs new IdToken.
|
| |
| | IdToken (std::string serialized, const tenduke::jwt::JWT &jwt) |
| | Constructs new IdToken.
|
| |
| const std::string & | getNonce () const |
| | Returns nonce.
|
| |
| const std::string & | getSerialized () const |
| | Returns serialized representation of the ID-token.
|
| |
| bool | isNullToken () const |
| | Returns true, if token is a "null" token, i.e.
|
| |
| | JWT (std::map< std::string, std::string > claims) |
| | Constructs new JWT instance from given claims.
|
| |
| | JWT (const std::map< std::string, std::string > &claims, const std::map< std::string, std::string > &headerParameters, const std::map< std::string, std::map< std::string, std::string > > &mapClaims={}, const std::map< std::string, std::vector< std::string > > &arrayClaims={}) |
| | Constructs new JWT instance from given claims and header parameters.
|
| |
| | JWT (const JWT ©)=default |
| | Copy-constructs new JWT instance.
|
| |
| bool | hasClaim (const std::string &name) const |
| | Checks if the JWT has given claim.
|
| |
| const std::string * | claim (const std::string &name) const |
| | Returns a JWT-claim by given name.
|
| |
| const std::map< std::string, std::string > & | getClaims () const |
| | Returns all claims as a map.
|
| |
| const std::string & | getStringClaim (const std::string &claimName) const |
| | Returns a claim value as string.
|
| |
| std::int64_t | getIntClaim (const std::string &claimName) const |
| | Returns claim value as std::int64_t.
|
| |
| const std::string & | getJWTID () const |
| | Returns "JWT ID", "jti"-claim.
|
| |
| const std::string & | getIssuer () const |
| | Returns "Issuer", "iss"-claim.
|
| |
| const std::string & | getSubject () const |
| | Returns "Subject", "sub"-claim.
|
| |
| const std::string & | getAudience () const |
| | Returns "Audience", "aud"-claim.
|
| |
| std::int64_t | getExpirationTime () const |
| | Returns "Expiration time", "exp"-claim.
|
| |
| std::int64_t | getIssuedAt () const |
| | Returns "Issued at", "iat"-claim.
|
| |
| std::string | getHeaderParameterKID () const |
| | Returns header-parameter KeyId ("kid"-parameter).
|
| |
| std::map< std::string, std::string > | getHeaderParameters () const |
| | Returns header parameters.
|
| |
| std::map< std::string, std::string > | getMapClaim (const std::string &name) const |
| | Returns a claim, which is a map.
|
| |
| std::vector< std::string > | getArrayClaim (const std::string &name) const |
| | Returns a claim, which is a JSON array, as vector of strings.
|
| |
| bool | isInfinite () const |
| | Returns true if token does expire.
|
| |
|
|
static const std::int64_t | NUMBER_NOT_PRESENT = INT64_MIN |
| | Magic value to indicate that numeric claim is not present.
|
| |
|
std::map< std::string, std::string > | claims |
| | Claims.
|
| |
|
std::map< std::string, std::string > | headerParameters |
| | Header parameters.
|
| |
| std::map< std::string, std::map< std::string, std::string > > | mapClaims |
| | Claims with values of maps.
|
| |
| std::map< std::string, std::vector< std::string > > | arrayClaims |
| | Claims with values of arrays.
|
| |