Class OAuthConverter

  • public class OAuthConverter
    extends Object
    Underlying net.oauth library is not test friendly and relies on properties. It is assumed that the client of library knows about keys for these properties. Classes like Consumer fixes this by encapsulating these details. This class acts as a bridge between the library and local classes.
    • Constructor Detail

      • OAuthConverter

        public OAuthConverter()
    • Method Detail

      • createOAuthAccessor

        public static net.oauth.OAuthAccessor createOAuthAccessor​(ServiceProviderToken token)
        Creates an OAuth Accessor based on input token
        token - input token
        Oauth accessor
      • toOAuthConsumer

        public static net.oauth.OAuthConsumer toOAuthConsumer​(Consumer consumer)
        Converts our consumer to OAuthConsumer
        consumer - the consumer
        the OAuthConsumer