| Package | Description |
|---|---|
| javastrava.api.v3.auth |
Interface definitions for authorisation services which deal with access tokens
|
| javastrava.api.v3.auth.impl.retrofit | |
| javastrava.api.v3.auth.model | |
| javastrava.api.v3.auth.ref | |
| javastrava.api.v3.service | |
| javastrava.json.impl.gson.serializer |
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenManager.retrieveTokenWithExactScope(String username,
AuthorisationScope... requiredScopes)
Retrieve a cached token which has exactly the given set
of scopes
|
Token |
TokenManager.retrieveTokenWithScope(String username,
AuthorisationScope... scopes)
Retrieve a token which has at least the given set of
scopes.
|
Token |
AuthorisationService.tokenExchange(Integer clientId,
String clientSecret,
String code,
AuthorisationScope... scopes)
Strava will respond to the authorization request by redirecting the user/browser to the redirect_uri provided.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenManager.retrieveTokenWithExactScope(String username,
List<AuthorisationScope> scopes)
Retrieve a cached token which has exactly the given set
of scopes
|
Token |
TokenManager.retrieveTokenWithScope(String username,
List<AuthorisationScope> scopes)
Retrieve a token which has at least the given set of
scopes.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
AuthorisationServiceImpl.tokenExchange(Integer clientId,
String clientSecret,
String code,
AuthorisationScope... scopes) |
| Modifier and Type | Method and Description |
|---|---|
List<AuthorisationScope> |
Token.getScopes() |
| Modifier and Type | Method and Description |
|---|---|
void |
Token.setScopes(List<AuthorisationScope> scopes) |
| Constructor and Description |
|---|
Token(TokenResponse tokenResponse,
AuthorisationScope... scopes)
Default constructor is based on the
TokenResponse structure received from
AuthorisationService.tokenExchange(Integer, String, String, AuthorisationScope...) |
| Modifier and Type | Method and Description |
|---|---|
static AuthorisationScope |
AuthorisationScope.create(String id)
Used when deserialising JSON returned by the Strava API
|
static AuthorisationScope |
AuthorisationScope.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorisationScope[] |
AuthorisationScope.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Strava.hasAuthorisationScopes(AuthorisationScope... scopes) |
boolean |
Strava.hasExactAuthorisationScopes(AuthorisationScope... scopes) |
| Modifier and Type | Method and Description |
|---|---|
AuthorisationScope |
AuthorisationScopeSerializer.deserialize(com.google.gson.JsonElement json,
Type type,
com.google.gson.JsonDeserializationContext context) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
AuthorisationScopeSerializer.serialize(AuthorisationScope authorisationScope,
Type type,
com.google.gson.JsonSerializationContext context) |
Copyright © 2016 Dan Shannon. All rights reserved.