Class TokenDetails


  • public class TokenDetails
    extends Object
    TokenDetails
    • Constructor Detail

      • TokenDetails

        public TokenDetails()
    • Method Detail

      • getTokenData

        public Map<String,​String> getTokenData()
        Get tokenData
        Returns:
        tokenData
      • setTokenData

        public void setTokenData​(Map<String,​String> tokenData)
      • getTokenDataType

        public String getTokenDataType()
        Get tokenDataType
        Returns:
        tokenDataType
      • setTokenDataType

        public void setTokenDataType​(String tokenDataType)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to TokenDetails
      • fromJson

        public static TokenDetails fromJson​(String jsonString)
                                     throws IOException
        Create an instance of TokenDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TokenDetails
        Throws:
        IOException - if the JSON string is invalid with respect to TokenDetails
      • toJson

        public String toJson()
        Convert an instance of TokenDetails to an JSON string
        Returns:
        JSON string