Class GsonTokenParser

java.lang.Object
com.rabbitmq.client.amqp.oauth2.GsonTokenParser
All Implemented Interfaces:
TokenParser

public class GsonTokenParser extends Object implements TokenParser
Token parser for JSON OAuth 2 Access tokens.

Uses GSON for the JSON parsing.

  • Constructor Details

    • GsonTokenParser

      public GsonTokenParser()
  • Method Details

    • parse

      public Token parse(String tokenAsString)
      Description copied from interface: TokenParser
      Parse the token.
      Specified by:
      parse in interface TokenParser
      Parameters:
      tokenAsString - token as a string
      Returns:
      the token