Package org.jclouds.oauth.v2
Interface AuthorizationApi
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface AuthorizationApi extends Closeable
Binds to an OAuth2 authorization endpoint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Token
authorize(String client_id, ClientCredentialsClaims claim, String resource, String scope)
Token
authorize(Claims claims)
Token
authorizeClientSecret(String client_id, String client_secret, String resource, String scope)
-
-
-
Method Detail
-
authorize
@Named("oauth2:authorize") @POST @Consumes("application/json") Token authorize(@FormParam("assertion") Claims claims)
-
authorizeClientSecret
@Named("oauth2:authorize_client_secret") @POST @Consumes("application/json") Token authorizeClientSecret(@FormParam("client_id") String client_id, @FormParam("client_secret") String client_secret, @FormParam("resource") String resource, @FormParam("scope") @Nullable String scope)
-
-