public class AuthzConfig extends Object
| Constructor and Description |
|---|
AuthzConfig(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.
|
List<String> |
getScopes()
Scopes are a list of permissions the application will request at
Authorization.
|
AuthzType |
getType()
The Type of module this config will become.
|
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 |
setScopes(List<String> scopes)
Scopes are a list of permissions the application will request at
Authorization.
|
void |
setType(AuthzType type)
The Type of module this config will become.
|
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 AuthzType getType()
AuthzTypes.OAUTH2public void setType(AuthzType type)
AuthzTypes.OAUTH2type - a new type.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()
Copyright © 2014 JBoss by Red Hat. All rights reserved.