Package com.google.crypto.tink.jwt
Class RawJwt
- java.lang.Object
-
- com.google.crypto.tink.jwt.RawJwt
-
@Immutable public final class RawJwt extends java.lang.ObjectAn unencoded and unsigned JSON Web Token (JWT).It contains all payload claims and a subset of the headers. It does not contain any headers that depend on the key, such as "alg" or "kid", because these headers are chosen when the token is signed and encoded, and should not be chosen by the user. This ensures that the key can be changed without any changes to the user code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRawJwt.BuilderBuilder for RawJwt
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetJsonPayload()static RawJwt.BuildernewBuilder()Returns a new RawJwt.Builder.java.lang.StringtoString()Returns a brief description of a RawJwt object.
-
-
-
Method Detail
-
newBuilder
public static RawJwt.Builder newBuilder()
Returns a new RawJwt.Builder.
-
getJsonPayload
public java.lang.String getJsonPayload()
-
toString
public java.lang.String toString()
Returns a brief description of a RawJwt object. The exact details of the representation are unspecified and subject to change.- Overrides:
toStringin classjava.lang.Object
-
-