Class JsonWebToken

java.lang.Object
com.google.api.client.json.webtoken.JsonWebToken
Direct Known Subclasses:
JsonWebSignature

public class JsonWebToken extends Object
JSON Web Token (JWT).

Implementation is not thread-safe.

Since:
1.14 (since 1.7 as com.google.api.client.auth.jsontoken.JsonWebToken)
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHeader

      public JsonWebToken.Header getHeader()
      Returns the header.

      Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

    • getPayload

      public JsonWebToken.Payload getPayload()
      Returns the payload.

      Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.