public class GithubAuthenticationToken
extends org.acegisecurity.providers.AbstractAuthenticationToken
| Modifier and Type | Field and Description |
|---|---|
static TimeUnit |
CACHE_EXPIRY |
| Constructor and Description |
|---|
GithubAuthenticationToken(String accessToken,
String githubServer) |
GithubAuthenticationToken(String accessToken,
String githubServer,
boolean clearUserCache) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCacheForUser(String userName)
Clear caches by username for use in new logins
|
static void |
clearCaches()
Necessary for testing
|
org.acegisecurity.GrantedAuthority[] |
getAuthorities() |
Object |
getCredentials() |
org.kohsuke.github.GHMyself |
getMyself()
Returns the GHMyself object from this instance.
|
String |
getPrincipal()
Returns the login name in GitHub.
|
equals, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic static final TimeUnit CACHE_EXPIRY
public GithubAuthenticationToken(String accessToken, String githubServer) throws IOException
IOExceptionpublic GithubAuthenticationToken(String accessToken, String githubServer, boolean clearUserCache) throws IOException
IOExceptionpublic static void clearCaches()
public static void clearCacheForUser(String userName)
public org.acegisecurity.GrantedAuthority[] getAuthorities()
getAuthorities in interface org.acegisecurity.AuthenticationgetAuthorities in class org.acegisecurity.providers.AbstractAuthenticationTokenpublic Object getCredentials()
public String getPrincipal()
public org.kohsuke.github.GHMyself getMyself()
throws IOException
IOExceptionCopyright © 2016–2022. All rights reserved.