Package | Description |
---|---|
com.neovisionaries.android.oauth20 |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<AuthorizationRequest> |
AuthorizationRequest.CREATOR
CREATER required by
Parcelable interface. |
Modifier and Type | Method and Description |
---|---|
AuthorizationRequest |
AuthorizationRequest.addParameter(String name,
String value)
Add an extra parameter to the authorization request.
|
AuthorizationRequest |
AuthorizationRequest.addScopes(String... scopes)
Add scopes, which are elements in the value of
scope parameter (OPTIONAL parameter). |
AuthorizationRequest |
AuthorizationRequest.removeParameter(String name)
Remove an extra parameter from the authorization request.
|
AuthorizationRequest |
AuthorizationRequest.removeScopes(String... scopes)
Remove scopes, which are elements in the value of
scope parameter (OPTIONAL parameter). |
AuthorizationRequest |
AuthorizationRequest.setClientId(String clientId)
Set the client ID (= the value of
client_id parameter
(REQUIRED parameter)). |
AuthorizationRequest |
AuthorizationRequest.setEndpoint(String endpoint)
Set the authorization endpoint.
|
AuthorizationRequest |
AuthorizationRequest.setEndpoint(URL endpoint)
Set the authorization endpoint.
|
AuthorizationRequest |
AuthorizationRequest.setExtraParameters(Map<String,String> parameters)
Set extra parameters added to the authorization request.
|
AuthorizationRequest |
AuthorizationRequest.setRedirectUri(String redirectUri)
Set the redirect URI (= the value of
redirect_uri parameter
(OPTIONAL parameter)). |
AuthorizationRequest |
AuthorizationRequest.setRedirectUri(URL redirectUri)
Set the redirect URI (= the value of
redirect_uri parameter
(OPTIONAL parameter)). |
AuthorizationRequest |
AuthorizationRequest.setResponseType(ResponseType responseType)
Set the response type (= the value of
response_type
parameter (REQUIRED parameter)). |
AuthorizationRequest |
AuthorizationRequest.setScopeDelimiter(char delimiter)
Set the delimiter for scopes.
|
AuthorizationRequest |
AuthorizationRequest.setScopeSet(Set<String> scopeSet)
Set the scopes, which are elements in the value of
scope parameter (OPTIONAL parameter). |
AuthorizationRequest |
AuthorizationRequest.setState(String state)
Set the state (= the value of
state parameter
(RECOMMENDED parameter)). |
Modifier and Type | Method and Description |
---|---|
void |
OAuth20View.load(AuthorizationRequest request,
OAuth20ViewListener listener)
Access to OAuth 2.0 authorization endpoint.
|
void |
OAuth20ViewListener.onCodeIssued(OAuth20View view,
AuthorizationRequest request,
String code,
String state)
Called when an authorization code was issued by the authorization server.
|
void |
OAuth20ViewListener.onError(OAuth20View view,
AuthorizationRequest request,
OAuth20Error error,
String description,
String uri,
String state)
Called when the authorization server notified this client an error.
|
void |
OAuth20ViewListener.onTokenIssued(OAuth20View view,
AuthorizationRequest request,
AccessToken accessToken,
String state)
Called when an access token was issued by the authorization server.
|
Copyright © 2016. All rights reserved.