public interface Jwt
JSON Web Token (JWT) is a means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is digitally signed or MACed using JSON Web Signature (JWS) and/or encrypted using JSON Web Encryption (JWE).
Modifier and Type | Method and Description |
---|---|
String |
build()
Builds the JWT into a
String by following the steps specified in the relevant specification
according to whether the JWT is being signed and/or encrypted. |
JwtClaimsSet |
getClaimsSet()
Gets the claims set object for the Jwt, which contains all of the claims (name value pairs) conveyed by the JWT.
|
JwtHeader |
getHeader()
Gets the header object for the JWT, which contains properties which describe the cryptographic operations
applied to the JWT, among other properties.
|
JwtHeader getHeader()
When the JWT is digitally signed or MACed, the JWT Header is a JWS Header. When the JWT is encrypted, the JWT Header is a JWE Header.
JwtClaimsSet getClaimsSet()
String build()
String
by following the steps specified in the relevant specification
according to whether the JWT is being signed and/or encrypted.
Copyright © 2010-2018, ForgeRock All Rights Reserved.