public class GithubAuthenticationToken extends 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
|
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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfromSpring, toSpringpublic 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 GrantedAuthority[] getAuthorities()
getAuthorities in interface AuthenticationgetAuthorities in class AbstractAuthenticationTokenpublic Object getCredentials()
public String getPrincipal()
public org.kohsuke.github.GHMyself getMyself()
throws IOException
IOExceptionCopyright © 2016–2022. All rights reserved.