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:
java.io.Serializable
- Direct Known Subclasses:
DPoP
public class Jwt extends JsonWebResponse
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.jans.as.model.token.JsonWebResponse
claims, header
-
-
Constructor Summary
Constructors Constructor Description Jwt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEncodedSignature()
java.lang.String
getSigningInput()
static @NotNull Jwt
parse(java.lang.String encodedJwt)
static Jwt
parseOrThrow(java.lang.String encodedJwt)
static Jwt
parseSilently(java.lang.String encodedJwt)
void
setEncodedSignature(java.lang.String encodedSignature)
java.lang.String
toString()
-
-
-
Method Detail
-
getEncodedSignature
public java.lang.String getEncodedSignature()
-
setEncodedSignature
public void setEncodedSignature(java.lang.String encodedSignature)
-
getSigningInput
public java.lang.String getSigningInput() throws InvalidJwtException
- Throws:
InvalidJwtException
-
parseOrThrow
public static Jwt parseOrThrow(java.lang.String encodedJwt) throws InvalidJwtException
- Throws:
InvalidJwtException
-
parseSilently
public static Jwt parseSilently(java.lang.String encodedJwt)
-
parse
@NotNull public static @NotNull Jwt parse(java.lang.String encodedJwt) throws InvalidJwtException
- Throws:
InvalidJwtException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classJsonWebResponse
-
-