Package io.jans.as.model.jwt
Class Jwt
java.lang.Object
io.jans.as.model.token.JsonWebResponse
io.jans.as.model.jwt.Jwt
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DPoP
JSON Web Token (JWT) is a compact token format intended for space constrained
environments such as HTTP Authorization headers and URI query parameters.
JWTs encode claims to be transmitted as a JSON object (as defined in RFC 4627)
that is base64url encoded and digitally signed. Signing is accomplished using
a JSON Web Signature (JWS). JWTs may also be optionally encrypted using JSON
Web Encryption (JWE).
- Version:
- May 3, 2017
- Author:
- Javier Rojas Blum
- See Also:
-
Field Summary
Fields inherited from class io.jans.as.model.token.JsonWebResponse
claims, header
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Jwt
static Jwt
parseOrThrow
(String encodedJwt) static Jwt
parseSilently
(String encodedJwt) void
setEncodedSignature
(String encodedSignature) toString()
-
Constructor Details
-
Jwt
public Jwt()
-
-
Method Details
-
getEncodedSignature
-
setEncodedSignature
-
getSigningInput
- Throws:
InvalidJwtException
-
parseOrThrow
- Throws:
InvalidJwtException
-
parseSilently
-
parse
- Throws:
InvalidJwtException
-
toString
- Overrides:
toString
in classJsonWebResponse
-