public static final class JwtConstants.Claims extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_HASH
Instructions for computing the query hash parameter ("qsh") from a HTTP request.
|
static String |
SUBJECT |
| Constructor and Description |
|---|
Claims() |
public static final String QUERY_HASH
JwtConstants.JWT_PARAM_NAME parameter, if present.
Some particular values to be aware of: "+" is encoded as "%20",
"*" as "%2A" and
"~" as "~".
(These values used for consistency with OAuth1.)
An example: for a GET request to the not-yet-percent-encoded URL "http://localhost:2990/path/to/service?zee_last=param&repeated=parameter 1&first=param&repeated=parameter 2"
the canonical request is "GET&/path/to/service&first=param&repeated=parameter%201,parameter%202&zee_last=param".
6. Convert the canonical request string to bytes.
The encoding used to represent characters as bytes is UTF-8.
7. Hash the canonical request bytes using the SHA-256 algorithm.
E.g. The SHA-256 hash of "foo" is "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae".public static final String SUBJECT
Copyright © 2023 Atlassian. All rights reserved.