Package com.rabbitmq.client.amqp.oauth2
Class GsonTokenParser
java.lang.Object
com.rabbitmq.client.amqp.oauth2.GsonTokenParser
- All Implemented Interfaces:
TokenParser
Token parser for JSON OAuth 2 Access
tokens.
Uses GSON for the JSON parsing.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GsonTokenParser
public GsonTokenParser()
-
-
Method Details
-
parse
Description copied from interface:TokenParser
Parse the token.- Specified by:
parse
in interfaceTokenParser
- Parameters:
tokenAsString
- token as a string- Returns:
- the token
-