com.sun.jersey.oauth.server.api.providers
Class DefaultOAuthProvider.Consumer

java.lang.Object
  extended by com.sun.jersey.oauth.server.api.providers.DefaultOAuthProvider.Consumer
All Implemented Interfaces:
OAuthConsumer
Enclosing class:
DefaultOAuthProvider

public static class DefaultOAuthProvider.Consumer
extends Object
implements OAuthConsumer

Simple read-only implementation of OAuthConsumer.


Method Summary
 MultivaluedMap<String,String> getAttributes()
          Returns additional attributes associated with the consumer (e.g.
 String getKey()
          Returns consumer key.
 String getOwner()
          Returns identifier of owner of this consumer - i.e.
 String getSecret()
          Returns consumer secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKey

public String getKey()
Description copied from interface: OAuthConsumer
Returns consumer key.

Specified by:
getKey in interface OAuthConsumer
Returns:
consumer key

getSecret

public String getSecret()
Description copied from interface: OAuthConsumer
Returns consumer secret.

Specified by:
getSecret in interface OAuthConsumer
Returns:
consumer secret

getOwner

public String getOwner()
Returns identifier of owner of this consumer - i.e. who registered the consumer.

Returns:
consumer owner

getAttributes

public MultivaluedMap<String,String> getAttributes()
Returns additional attributes associated with the consumer (e.g. name, URI, description, etc.)

Returns:
name-values pairs of additional attributes


Copyright © 2013 Oracle Corporation. All Rights Reserved.