|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.OAuthService
public class OAuthService
Service for interacting with a user's OAUth authorizations
| Field Summary |
|---|
| Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
client |
| Constructor Summary | |
|---|---|
OAuthService()
Create OAuth service |
|
OAuthService(GitHubClient client)
Create OAuth service |
|
| Method Summary | |
|---|---|
Authorization |
addScopes(int id,
Collection<String> scopes)
Add scopes to authorization |
Authorization |
createAuthorization(Authorization authorization)
Create authorization |
void |
deleteAuthorization(int id)
Delete authorization with given id |
Authorization |
getAuthorization(int id)
Get authorization with given id |
List<Authorization> |
getAuthorizations()
Get all authorizations for currently authenticated user |
Authorization |
removeScopes(int id,
Collection<String> scopes)
Remove scopes from authorization |
Authorization |
setScopes(int id,
Collection<String> scopes)
Set scopes for authorization |
| Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuthService()
public OAuthService(GitHubClient client)
client - | Method Detail |
|---|
public List<Authorization> getAuthorizations()
throws IOException
IOException
public Authorization getAuthorization(int id)
throws IOException
id -
IOException
public void deleteAuthorization(int id)
throws IOException
id -
IOException
public Authorization createAuthorization(Authorization authorization)
throws IOException
authorization -
IOException
public Authorization addScopes(int id,
Collection<String> scopes)
throws IOException
id - scopes -
IOException
public Authorization removeScopes(int id,
Collection<String> scopes)
throws IOException
id - scopes -
IOException
public Authorization setScopes(int id,
Collection<String> scopes)
throws IOException
id - scopes -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||