Class RawJwt


  • @Immutable
    public final class RawJwt
    extends java.lang.Object
    An 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 class  RawJwt.Builder
      Builder for RawJwt
    • 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:
        toString in class java.lang.Object