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_KEYThe Constant ADMIN_KEY.static StringADMIN_ORGThe Constant ADMIN_ORG.static StringAMIN_HOOKThe Constant AMIN_HOOK.static StringDELETE_REPOThe Constant DELETE_REPO.static StringGISTThe Constant GIST.static StringNOTIFICATIONSThe Constant NOTIFICATIONS.static StringPUBLIC_REPOThe Constant PUBLIC_REPO.static StringREAD_HOOKThe Constant READ_HOOK.static StringREAD_KEYThe Constant READ_KEY.static StringREAD_ORGThe Constant READ_ORG.static StringREPOThe Constant REPO.static StringREPO_STATUSThe Constant REPO_STATUS.static StringUSERThe Constant USER.static StringUSER_EMAILThe Constant USER_EMAIL.static StringUSER_FOLLOWThe Constant USER_FOLLOW.static StringWRITE_HOOKThe Constant WRITE_HOOK.static StringWRITE_KEYThe Constant WRITE_KEY.static StringWRITE_ORGThe Constant WRITE_ORG.-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URLgetApiURL()Deprecated.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()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.List<String>getScopes()Gets scopes.StringgetToken()Gets token.StringgetTokenLastEight()Gets token last eight.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Field Detail
-
USER
public static final String USER
The Constant USER.- See Also:
- Constant Field Values
-
USER_EMAIL
public static final String USER_EMAIL
The Constant USER_EMAIL.- See Also:
- Constant Field Values
-
USER_FOLLOW
public static final String USER_FOLLOW
The Constant USER_FOLLOW.- See Also:
- Constant Field Values
-
PUBLIC_REPO
public static final String PUBLIC_REPO
The Constant PUBLIC_REPO.- See Also:
- Constant Field Values
-
REPO
public static final String REPO
The Constant REPO.- See Also:
- Constant Field Values
-
REPO_STATUS
public static final String REPO_STATUS
The Constant REPO_STATUS.- See Also:
- Constant Field Values
-
DELETE_REPO
public static final String DELETE_REPO
The Constant DELETE_REPO.- See Also:
- Constant Field Values
-
NOTIFICATIONS
public static final String NOTIFICATIONS
The Constant NOTIFICATIONS.- See Also:
- Constant Field Values
-
GIST
public static final String GIST
The Constant GIST.- See Also:
- Constant Field Values
-
READ_HOOK
public static final String READ_HOOK
The Constant READ_HOOK.- See Also:
- Constant Field Values
-
WRITE_HOOK
public static final String WRITE_HOOK
The Constant WRITE_HOOK.- See Also:
- Constant Field Values
-
AMIN_HOOK
public static final String AMIN_HOOK
The Constant AMIN_HOOK.- See Also:
- Constant Field Values
-
READ_ORG
public static final String READ_ORG
The Constant READ_ORG.- See Also:
- Constant Field Values
-
WRITE_ORG
public static final String WRITE_ORG
The Constant WRITE_ORG.- See Also:
- Constant Field Values
-
ADMIN_ORG
public static final String ADMIN_ORG
The Constant ADMIN_ORG.- See Also:
- Constant Field Values
-
READ_KEY
public static final String READ_KEY
The Constant READ_KEY.- See Also:
- Constant Field Values
-
WRITE_KEY
public static final String WRITE_KEY
The Constant WRITE_KEY.- See Also:
- Constant Field Values
-
ADMIN_KEY
public static final String ADMIN_KEY
The Constant ADMIN_KEY.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Deprecated public URL getApiURL()
Deprecated.Gets api url.- Returns:
- the api url
-
getHtmlUrl
public URL getHtmlUrl()
Deprecated.This object has no HTML URL.Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
-
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
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-