Class OAuthConverter
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.applink.oauth.OAuthConverter
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.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.oauth.OAuthAccessorCreates an OAuth Accessor based on input tokenstatic net.oauth.OAuthConsumertoOAuthConsumer(Consumer consumer) Converts ourconsumerto OAuthConsumer
-
Constructor Details
-
OAuthConverter
public OAuthConverter()
-
-
Method Details
-
createOAuthAccessor
Creates an OAuth Accessor based on input token- Parameters:
token- input token- Returns:
- Oauth accessor
-
toOAuthConsumer
Converts ourconsumerto OAuthConsumer- Parameters:
consumer- the consumer- Returns:
- the OAuthConsumer
-