Principal api.
| Modifier and Type | Method and Description |
|---|---|
| public default < - the type of the claim value to return T> Optional | |
| public default < - the type of the claim value to return T> Optional | |
| public default boolean | Returns: true if the JsonWebToken contains the claim, false otherwise- the name of the claim claimName)Verify is a given claim exists |
| public default Set | Returns: the aud claim or null if the claim is not presentThe aud(Audience) claim identifies the recipients that the JWT is intended for. |
| public < The claim type T> T | |
| public default < The claim type T> T | |
| public Set | Returns: non-standard claim names in the tokenAccess the names of all claims are associated with this token. |
| public default long | Returns: the exp claim.The exp (Expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing in seconds since 1970-01-01T00:00:00Z UTC |
| public default Set | Returns: a possibly empty set of group names.The groups claim provides the group names the JWT principal has been granted. |
| public default long | Returns: the iat claimThe iat(Issued at time) claim identifies the time at which the JWT was issued in seconds since 1970-01-01T00:00:00Z UTC |
| public default String | Returns: the iss claim.The iss(Issuer) claim identifies the principal that issued the JWT |
| public String | Returns: the unique name of this principal.Redeclares java. Returns the unique name of this principal. |
| public default String | Returns: raw bear token stringGet the raw bearer token string originally passed in the authentication header |
| public default String | Returns: the sub claim.The sub(Subject) claim identifies the principal that is the subject of the JWT. |
| public default String |
| claim | back to summary |
|---|---|
| public default <T> Optional A utility method to access a claim value in an Optional wrapper | |
| claim | back to summary |
|---|---|
| public default <T> Optional A utility method to access a claim value in an Optional wrapper | |
| containsClaim | back to summary |
|---|---|
| public default boolean containsClaim(String claimName) Verify is a given claim exists
| |
| getAudience | back to summary |
|---|---|
| public default Set The aud(Audience) claim identifies the recipients that the JWT is intended for. | |
| getClaim | back to summary |
|---|---|
| public <T> T getClaim(String claimName) Access the value of the indicated claim.
| |
| getClaim | back to summary |
|---|---|
| public default <T> T getClaim(Claims claim) Access the value of the indicated claim.
| |
| getClaimNames | back to summary |
|---|---|
| public Set Access the names of all claims are associated with this token. | |
| getExpirationTime | back to summary |
|---|---|
| public default long getExpirationTime() The exp (Expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing in seconds since 1970-01-01T00:00:00Z UTC
| |
| getGroups | back to summary |
|---|---|
| public default Set The groups claim provides the group names the JWT principal has been granted. This is a MicroProfile specific claim. | |
| getIssuedAtTime | back to summary |
|---|---|
| public default long getIssuedAtTime() The iat(Issued at time) claim identifies the time at which the JWT was issued in seconds since 1970-01-01T00:00:00Z UTC
| |
| getIssuer | back to summary |
|---|---|
| public default String getIssuer() The iss(Issuer) claim identifies the principal that issued the JWT
| |
| getName | back to summary |
|---|---|
| public String getName() Redeclares java. Returns the unique name of this principal. This either comes from the upn claim, or if that is missing, the preferred_username claim. Note that for guaranteed interoperability a upn claim should be used. | |
| getRawToken | back to summary |
|---|---|
| public default String getRawToken() Get the raw bearer token string originally passed in the authentication header
| |
| getSubject | back to summary |
|---|---|
| public default String getSubject() The sub(Subject) claim identifies the principal that is the subject of the JWT. This is the token issuing IDP subject.
| |
| getTokenID | back to summary |
|---|---|
| public default String getTokenID() The jti(JWT ID) claim provides a unique identifier for the JWT. The identifier value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object; if the application uses multiple issuers, collisions MUST be prevented among values produced by different issuers as well. The "jti" claim can be used to prevent the JWT from being replayed.
| |