public interface OAuthHandler
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
authorize(RootServices rootServices,
URI authorizationUri)
Requests the end user to authorize the connection.
|
URI |
createCallback(RootServices rootServices,
String verifierId)
Returns a callback URL to use when an OAuth token is requested.
|
URI createCallback(RootServices rootServices, String verifierId)
rootServices
- the root services of the target application.verifierId
- the verifier ID used to approve the connection. This verifier is typically to inject in the callback URI.null
if no callback is to use.void authorize(RootServices rootServices, URI authorizationUri) throws net.oauth.OAuthException
rootServices
- the root services of the target application.authorizationUri
- the URL to display in a web browser for the user to approve the connection.net.oauth.OAuthException
- if the connection is not approved.