Package org.faceless.publisher.type
Class OAuth2Callback
java.lang.Object
org.faceless.publisher.type.OAuth2Callback
- All Implemented Interfaces:
Callback
The callback which must be populated to complete an OAuth2 transaction.
This callback is created when the
access_token is required and
cannot be created by renewal.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theauth_uriwhich the CallbackHandler must load for authorizationgetCode()Return the code set by theCallbackHandlerReturn the OAuth2 object that created this callbackReturn a map of properties which apply to the session.Return theredirect_urivoidSet the code that was given by the authorization process.
-
Constructor Details
-
OAuth2Callback
Create a new OAuth2Callback- Parameters:
auth- the OAuth2 objectredirecturi- the initial "redirect_uri" valueuri- the initial "uri" valueprops- a map of any additional properties
-
-
Method Details
-
getOAuth2
Return the OAuth2 object that created this callback -
getRedirectURI
Return theredirect_uri -
getAuthURI
Return theauth_uriwhich the CallbackHandler must load for authorization -
getProperties
Return a map of properties which apply to the session. The list of keys is undefined but may includescope -
getCode
Return the code set by theCallbackHandler -
setCode
Set the code that was given by the authorization process. This method must be called by theCallbackHandler
-