org.jboss.resteasy.auth.oauth
Interface OAuthConsumerRegistration

All Known Subinterfaces:
OAuthProvider
All Known Implementing Classes:
MyProvider, OAuthDBProvider, OAuthMemoryProvider, OAuthProviderChecker

public interface OAuthConsumerRegistration

Registration of OAuth consumers


Method Summary
 OAuthConsumer registerConsumer(java.lang.String consumerKey, java.lang.String displayName, java.lang.String connectURI)
          Creates a new OAuth Consumer
 void registerConsumerPermissions(java.lang.String consumerKey, OAuthPermissions permissions)
          Registers Consumer Permissions
 void registerConsumerScopes(java.lang.String consumerKey, java.lang.String[] scopes)
          Registers Consumer Scopes
 

Method Detail

registerConsumer

OAuthConsumer registerConsumer(java.lang.String consumerKey,
                               java.lang.String displayName,
                               java.lang.String connectURI)
                               throws OAuthException
Creates a new OAuth Consumer

Parameters:
consumerKey - the Consumer key.
Returns:
consumer secret.
Throws:
OAuthException - thrown if Consumer can not be registered.

registerConsumerScopes

void registerConsumerScopes(java.lang.String consumerKey,
                            java.lang.String[] scopes)
                            throws OAuthException
Registers Consumer Scopes

Parameters:
consumerKey - the Consumer key.
Throws:
OAuthException - thrown if scopes can not be registered.

registerConsumerPermissions

void registerConsumerPermissions(java.lang.String consumerKey,
                                 OAuthPermissions permissions)
                                 throws OAuthException
Registers Consumer Permissions

Parameters:
consumerKey - the Consumer key.
Throws:
OAuthException - thrown if permissions can not be registered.


Copyright © 2010. All Rights Reserved.