Class OAuthConverter
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.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 likeConsumer
fixes this by encapsulating these details. This class acts as a bridge between the library and local classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OAuthConverter.ConsumerProperty
-
Constructor Summary
Constructors Constructor Description OAuthConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.oauth.OAuthAccessor
createOAuthAccessor(ServiceProviderToken token)
Creates an OAuth Accessor based on input tokenstatic net.oauth.OAuthConsumer
toOAuthConsumer(Consumer consumer)
Converts ourconsumer
to OAuthConsumer
-
-
-
Method Detail
-
createOAuthAccessor
public static net.oauth.OAuthAccessor createOAuthAccessor(ServiceProviderToken token)
Creates an OAuth Accessor based on input token- Parameters:
token
- input token- Returns:
- Oauth accessor
-
toOAuthConsumer
public static net.oauth.OAuthConsumer toOAuthConsumer(Consumer consumer)
Converts ourconsumer
to OAuthConsumer- Parameters:
consumer
- the consumer- Returns:
- the OAuthConsumer
-
-