Package org.kohsuke.github
Class GHAuthorization
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHAuthorization
-
public class GHAuthorization extends GHObject
Generated OAuth token- Author:
- janinko
- See Also:
GitHub#createToken(Collection, String, String), API documentation
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_KEYstatic StringADMIN_ORGstatic StringAMIN_HOOKstatic StringDELETE_REPOstatic StringGISTstatic StringNOTIFICATIONSstatic StringPUBLIC_REPOstatic StringREAD_HOOKstatic StringREAD_KEYstatic StringREAD_ORGstatic StringREPOstatic StringREPO_STATUSstatic StringUSERstatic StringUSER_EMAILstatic StringUSER_FOLLOWstatic StringWRITE_HOOKstatic StringWRITE_KEYstatic StringWRITE_ORG-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URLgetApiURL()Gets api url.StringgetAppName()Gets app name.URLgetAppUrl()Gets app url.StringgetFingerprint()Gets fingerprint.StringgetHashedToken()Gets hashed token.URLgetHtmlUrl()Deprecated.This object has no HTML URL.StringgetNote()Gets note.URLgetNoteUrl()Gets note url.GitHubgetRoot()Gets root.List<String>getScopes()Gets scopes.StringgetToken()Gets token.StringgetTokenLastEight()Gets token last eight.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Field Detail
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
USER_EMAIL
public static final String USER_EMAIL
- See Also:
- Constant Field Values
-
USER_FOLLOW
public static final String USER_FOLLOW
- See Also:
- Constant Field Values
-
PUBLIC_REPO
public static final String PUBLIC_REPO
- See Also:
- Constant Field Values
-
REPO
public static final String REPO
- See Also:
- Constant Field Values
-
REPO_STATUS
public static final String REPO_STATUS
- See Also:
- Constant Field Values
-
DELETE_REPO
public static final String DELETE_REPO
- See Also:
- Constant Field Values
-
NOTIFICATIONS
public static final String NOTIFICATIONS
- See Also:
- Constant Field Values
-
GIST
public static final String GIST
- See Also:
- Constant Field Values
-
READ_HOOK
public static final String READ_HOOK
- See Also:
- Constant Field Values
-
WRITE_HOOK
public static final String WRITE_HOOK
- See Also:
- Constant Field Values
-
AMIN_HOOK
public static final String AMIN_HOOK
- See Also:
- Constant Field Values
-
READ_ORG
public static final String READ_ORG
- See Also:
- Constant Field Values
-
WRITE_ORG
public static final String WRITE_ORG
- See Also:
- Constant Field Values
-
ADMIN_ORG
public static final String ADMIN_ORG
- See Also:
- Constant Field Values
-
READ_KEY
public static final String READ_KEY
- See Also:
- Constant Field Values
-
WRITE_KEY
public static final String WRITE_KEY
- See Also:
- Constant Field Values
-
ADMIN_KEY
public static final String ADMIN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRoot
public GitHub getRoot()
Gets root.- Returns:
- the root
-
getToken
public String getToken()
Gets token.- Returns:
- the token
-
getTokenLastEight
public String getTokenLastEight()
Gets token last eight.- Returns:
- the token last eight
-
getHashedToken
public String getHashedToken()
Gets hashed token.- Returns:
- the hashed token
-
getAppUrl
public URL getAppUrl()
Gets app url.- Returns:
- the app url
-
getAppName
public String getAppName()
Gets app name.- Returns:
- the app name
-
getApiURL
public URL getApiURL()
Gets api url.- Returns:
- the api url
-
getHtmlUrl
public URL getHtmlUrl()
Deprecated.This object has no HTML URL.Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getNote
public String getNote()
Gets note.- Returns:
- the note
-
getNoteUrl
public URL getNoteUrl()
Gets note url.- Returns:
- the note url
-
getFingerprint
public String getFingerprint()
Gets fingerprint.- Returns:
- the fingerprint
-
-