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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.oauth.OAuthAccessor
Creates an OAuth Accessor based on input tokenstatic net.oauth.OAuthConsumer
toOAuthConsumer
(Consumer consumer) Converts ourconsumer
to 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 ourconsumer
to OAuthConsumer- Parameters:
consumer
- the consumer- Returns:
- the OAuthConsumer
-