| Package | Description |
|---|---|
| com.cloudbees.api | |
| com.cloudbees.api.cr | |
| com.cloudbees.api.oauth |
| Modifier and Type | Method and Description |
|---|---|
OauthToken |
OauthClientImpl.createOAuthClientToken(Collection<String> scopes) |
OauthToken |
OauthClientImpl.createOAuthClientToken(String... scopes) |
OauthToken |
OauthClientImpl.createOAuthClientToken(TokenRequest tokenRequest) |
OauthToken |
OauthClientImpl.createToken(TokenRequest tokenRequest) |
OauthToken |
OauthClientImpl.exchangeToAccessToken(String refreshToken,
String... scopes) |
OauthToken |
OauthClientImpl.exchangeToAccessToken(String authorizationCode,
String redirectUri) |
OauthToken |
OauthClientImpl.validateToken(String token) |
OauthToken |
OauthClientImpl.validateToken(String token,
String... scopes) |
| Modifier and Type | Method and Description |
|---|---|
static CloudResource |
CloudResource.fromOAuthToken(URL url,
OauthToken token) |
static Credential |
Credential.oauth(OauthToken token)
Creates a
Credential implementation that always put the specified OAuth token. |
| Modifier and Type | Method and Description |
|---|---|
OauthToken |
OauthToken.clone() |
OauthToken |
OauthClient.createOAuthClientToken(Collection<String> scopes)
OAuth client application can use this method to create an OAuth token with arbitrary scopes
that belongs to the user who registered the application.
|
OauthToken |
OauthClient.createOAuthClientToken(String... scopes)
Overloaded version of
OauthClient.createOAuthClientToken(Collection) |
OauthToken |
OauthClient.createOAuthClientToken(TokenRequest tokenRequest)
Overloaded version of
OauthClient.createOAuthClientToken(Collection) |
OauthToken |
OauthClient.createToken(TokenRequest tokenRequest)
Creates a OAuth token for the current user (used to create
BeesClient) |
OauthToken |
OauthClient.exchangeToAccessToken(String refreshToken,
String... scopes)
Exchange refresh_token to an access token.
|
OauthToken |
OauthClient.exchangeToAccessToken(String authorizationCode,
String redirectUri)
OAuth client application can use this method to exchange the authorization code
(which it gets from the browser after GC authenticates the user and redirects him back to you)
to the OAuth access token.
|
OauthToken |
OauthClient.validateToken(String token)
Obtains the details of the token and performs minimal validation (such as expiration.)
Returns null if the given access token is invalid, otherwise OauthToken is returned.
|
OauthToken |
OauthClient.validateToken(String token,
String... scopes)
Validates token with the given scopes.
|
Copyright © 2011-2015. All Rights Reserved.