/** * Returns the token value. * * @return the token value */ public String getToken() { return get(TOKEN); }
/** * Returns the token secret. * * @return the token secret */ public String getTokenSecret() { return get(TOKEN_SECRET); }
/** * Returns the key of the consumer this token was created for. * * @return the key of the consumer this token was created for */ public String getConsumerKey() { return get(CONSUMER_KEY); }
private TokenType getTokenType() { return TokenType.valueOf(get(TYPE)); }
/** * Returns the properties associated with the token. * * @return the properties associated with the token */ public Map<String, String> getProperties() { String propStr = get(PROPERTIES); if (propStr == null) { return ImmutableMap.of(); } return Maps.fromProperties(PropertiesHelper.fromString(propStr)); }