Class ServiceProviderTokenFactoryImpl
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.token.ServiceProviderTokenFactoryImpl
- All Implemented Interfaces:
ServiceProviderTokenFactory
@Singleton
public class ServiceProviderTokenFactoryImpl
extends Object
implements ServiceProviderTokenFactory
Implementation of
ServiceProviderTokenFactory
that uses randomly generated values
to
generate request and access tokens.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAccessToken
(ServiceProviderToken requestToken) Returns a newly generated access token for the authorized request token.generateRequestToken
(Consumer consumer) Generate an unauthorized request token.generateRequestToken
(Consumer consumer, URI callback) Generate an unauthorized request token.
-
Constructor Details
-
ServiceProviderTokenFactoryImpl
-
-
Method Details
-
generateAccessToken
Description copied from interface:ServiceProviderTokenFactory
Returns a newly generated access token for the authorized request token.- Specified by:
generateAccessToken
in interfaceServiceProviderTokenFactory
- Parameters:
requestToken
- an authorized request token
-
generateRequestToken
Description copied from interface:ServiceProviderTokenFactory
Generate an unauthorized request token.- Specified by:
generateRequestToken
in interfaceServiceProviderTokenFactory
- Parameters:
consumer
- Consumer information for generating the request token
-
generateRequestToken
Description copied from interface:ServiceProviderTokenFactory
Generate an unauthorized request token.- Specified by:
generateRequestToken
in interfaceServiceProviderTokenFactory
- Parameters:
consumer
- Consumer information for generating the request token, cannot be nullcallback
- parsed and validated OAuth callbackURI
, cannot be null (useServiceProviderTokenFactory.generateRequestToken(Consumer)
if not providing acallback
)
-