public class GithubAuthenticationToken
extends org.acegisecurity.providers.AbstractAuthenticationToken
| Constructor and Description |
|---|
GithubAuthenticationToken(String accessToken,
String githubServer) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Gets the OAuth access token, so that it can be persisted and used elsewhere.
|
org.acegisecurity.GrantedAuthority[] |
getAuthorities() |
Object |
getCredentials() |
org.kohsuke.github.GitHub |
getGitHub() |
String |
getPrincipal()
Returns the login name in GitHub.
|
boolean |
hasOrganizationPermission(String candidateName,
String organization)
For some reason I can't get the github api to tell me for the current
user the groups to which he belongs.
|
org.kohsuke.github.GHOrganization |
loadOrganization(String organization) |
org.kohsuke.github.GHTeam |
loadTeam(String organization,
String team) |
org.kohsuke.github.GHUser |
loadUser(String username) |
public GithubAuthenticationToken(String accessToken, String githubServer) throws IOException
IOExceptionpublic String getAccessToken()
public org.kohsuke.github.GitHub getGitHub()
public org.acegisecurity.GrantedAuthority[] getAuthorities()
getAuthorities in interface org.acegisecurity.AuthenticationgetAuthorities in class org.acegisecurity.providers.AbstractAuthenticationTokenpublic Object getCredentials()
public String getPrincipal()
public boolean hasOrganizationPermission(String candidateName, String organization)
candidateName - organization - public org.kohsuke.github.GHUser loadUser(String username) throws IOException
IOExceptionpublic org.kohsuke.github.GHOrganization loadOrganization(String organization) throws IOException
IOExceptionpublic org.kohsuke.github.GHTeam loadTeam(String organization, String team) throws IOException
IOExceptionCopyright © 2004-2014. All Rights Reserved.