public class GithubAuthenticationToken extends AbstractAuthenticationToken
| Modifier and Type | Field and Description |
|---|---|
static TimeUnit |
CACHE_EXPIRY |
| Constructor and Description |
|---|
GithubAuthenticationToken(String accessToken,
String githubServer) |
| Modifier and Type | Method and Description |
|---|---|
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 static void clearCaches()
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.