public final class OAuth2Properties extends Object
| Constructor and Description |
|---|
OAuth2Properties(URL baseURL,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessTokenEndpoint()
The accessTokenEndpoint is responsible for generating an accesstoken for
an authorized user.
|
String |
getAccountId()
The account ID parameter is to identify it ID of the
OAuth2AuthzSession which will be used to store the information. |
Set<android.util.Pair<String,String>> |
getAdditionalAccessParams()
Sometimes a implementation will need additional parameters when access is
performed.
|
Set<android.util.Pair<String,String>> |
getAdditionalAuthorizationParams()
Sometimes a implementation will need additional parameters when
authorization is performed.
|
String |
getAuthzEndpoint()
The authzEnpoint defines the endpoint which the Authorization module will
use to obtain an authorization token.
|
URL |
getBaseURL()
The baseURL is the url which endpoints will be appended to.
|
String |
getClientId()
The client ID is the ID assigned to the application by the service
provider.
|
String |
getClientSecret()
The client secret is assigned to the application by the service provider.
|
String |
getName()
Name refers to the name of the module this config will become
|
String |
getRedirectURL()
The redirect URL is the url which handles consuming a response from the
authorization server.
|
String |
getRefreshEndpoint()
The refresh endpoint is the path to the location of the refresh token.
|
List<String> |
getScopes()
Scopes are a list of permissions the application will request at
Authorization.
|
void |
setAccessTokenEndpoint(String accessTokenEndpoint)
The accessTokenEndpoint is responsible for generating an accesstoken for
an authorized user.
|
void |
setAccountId(String accountId)
The account ID parameter is to identify it ID of the
OAuth2AuthzSession which will be used to store the information. |
void |
setAuthzEndpoint(String authzEndpoint)
The authzEnpoint defines the endpoint which the Authorization module will
use to obtain an authorization token.
|
void |
setClientId(String clientId)
The client ID is the ID assigned to the application by the service
provider.
|
void |
setClientSecret(String clientSecret)
The client secret is assigned to the application by the service provider.
|
void |
setRedirectURL(String redirectURL)
The redirect URL is the url which handles consuming a response from the
authorization server.
|
void |
setRefreshEndpoint(String refreshEndpoint)
The refresh endpoint is the path to the location of the refresh token.
|
void |
setScopes(List<String> scopes)
Scopes are a list of permissions the application will request at
Authorization.
|
public URL getBaseURL()
public String getAuthzEndpoint()
public void setAuthzEndpoint(String authzEndpoint)
authzEndpoint - a new authzEndpointpublic String getRedirectURL()
public void setRedirectURL(String redirectURL)
redirectURL - a new redirectURLpublic String getAccessTokenEndpoint()
public void setAccessTokenEndpoint(String accessTokenEndpoint)
accessTokenEndpoint - a new accessTokenEndpointpublic List<String> getScopes()
public void setScopes(List<String> scopes)
scopes - a new list of scopes to replace the current onepublic String getClientId()
public void setClientId(String clientId)
clientId - a new client IDpublic String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret - a new client secretpublic String getName()
public String getAccountId()
OAuth2AuthzSession which will be used to store the information.
It is unique per app and generated by you, the developer.public void setAccountId(String accountId)
OAuth2AuthzSession which will be used to store the information.
It is unique per app and generated by you, the developer.accountId - a new accountIdpublic Set<android.util.Pair<String,String>> getAdditionalAuthorizationParams()
public Set<android.util.Pair<String,String>> getAdditionalAccessParams()
public String getRefreshEndpoint()
public void setRefreshEndpoint(String refreshEndpoint)
refreshEndpoint - a new endpoint.Copyright © 2015 JBoss by Red Hat. All rights reserved.