Class GithubAuthenticationToken

    • Field Detail

      • CACHE_EXPIRY

        public static final TimeUnit CACHE_EXPIRY
    • Method Detail

      • clearCaches

        public static void clearCaches()
        Necessary for testing
      • clearCacheForUser

        public static void clearCacheForUser​(String userName)
        Clear caches by username for use in new logins
      • getCredentials

        public Object getCredentials()
      • getPrincipal

        public String getPrincipal()
        Returns the login name in GitHub.
        Returns:
        principal
      • getMyself

        public org.kohsuke.github.GHMyself getMyself()
                                              throws IOException
        Returns the GHMyself object from this instance.
        Returns:
        myself
        Throws:
        IOException