public interface OAuth20ViewListener
OAuth20View
.Modifier and Type | Method and Description |
---|---|
void |
onCodeIssued(OAuth20View view,
AuthorizationRequest request,
String code,
String state)
Called when an authorization code was issued by the authorization server.
|
void |
onError(OAuth20View view,
AuthorizationRequest request,
OAuth20Error error,
String description,
String uri,
String state)
Called when the authorization server notified this client an error.
|
void |
onTokenIssued(OAuth20View view,
AuthorizationRequest request,
AccessToken accessToken,
String state)
Called when an access token was issued by the authorization server.
|
void onCodeIssued(OAuth20View view, AuthorizationRequest request, String code, String state)
This happens only when the value of response_type
in the
original authorization request was "code"
.
view
- The OAuth20View
with which this listener is associated.request
- The authorization request.code
- An authorization code issued by the authorization server.state
- The value of state
parameter which was contained
in the original authorization request sent from this client.void onTokenIssued(OAuth20View view, AuthorizationRequest request, AccessToken accessToken, String state)
This happens only when the value of response_type
in the
original authorization request was "token"
.
view
- The OAuth20View
with which this listener is associated.request
- The authorization request.accessToken
- An access token issued by the authorization server.state
- The value of state
parameter which was contained
in the original authorization request sent from this client.void onError(OAuth20View view, AuthorizationRequest request, OAuth20Error error, String description, String uri, String state)
view
- The OAuth20View
with which this listener is associated.request
- The authorization request.error
- An error ID.description
- The description of the error. May be null
.uri
- The URL where the detail of the error is described.
May be null
.state
- The value of state
parameter which was contained
in the original authorization request sent from this client.Copyright © 2016. All rights reserved.