Class Credential

    • Field Detail

      • username

        public final transient String username
        Deprecated.
      • apiUrl

        public final transient String apiUrl
        Deprecated.
      • oauthAccessToken

        public final transient String oauthAccessToken
        Deprecated.
    • Constructor Detail

      • Credential

        @DataBoundConstructor
        public Credential​(String username,
                          String apiUrl,
                          String oauthAccessToken)
        Deprecated.
    • Method Detail

      • getUsername

        public String getUsername()
        Deprecated.
      • getApiUrl

        public String getApiUrl()
        Deprecated.
      • getOauthAccessToken

        public String getOauthAccessToken()
        Deprecated.
      • login

        @CheckForNull
        @Deprecated
        public org.kohsuke.github.GitHub login()
                                        throws IOException
        Deprecated.
        see class javadoc. Now any instance return same GH. Please use new api to fetch another
        Returns:
        authorized first GitHub from global config or null if no any
        Throws:
        IOException - never thrown, but in signature for backward compatibility