public interface OAuthApi extends Closeable
OAuthAsyncApi| Modifier and Type | Method and Description |
|---|---|
Token |
authenticate(TokenRequest tokenRequest)
Authenticates/Authorizes access to a resource defined in TokenRequest
against an OAuth v2 authentication/authorization server.
|
@Named(value="authenticate") Token authenticate(TokenRequest tokenRequest) throws org.jclouds.rest.AuthorizationException
tokenRequest - specified the principal and the required permissionsorg.jclouds.rest.AuthorizationException - if the principal cannot be authenticated or has no permissions
for the specifed resources.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.