org.springframework.security.oauth.provider
Class BaseConsumerDetails

java.lang.Object
  extended by org.springframework.security.oauth.provider.BaseConsumerDetails
All Implemented Interfaces:
java.io.Serializable, ConsumerDetails, ResourceSpecificConsumerDetails

public class BaseConsumerDetails
extends java.lang.Object
implements ResourceSpecificConsumerDetails

Base implementation for consumer details.

Author:
Ryan Heaton
See Also:
Serialized Form

Constructor Summary
BaseConsumerDetails()
           
 
Method Summary
 org.springframework.security.GrantedAuthority[] getAuthorities()
          The base authorities for this consumer.
 java.lang.String getConsumerKey()
          The consumer key.
 java.lang.String getConsumerName()
          The name of the consumer.
 java.lang.String getResourceDescription()
          The description of the resource.
 java.lang.String getResourceName()
          The name of the resource.
 SignatureSecret getSignatureSecret()
          The signature secret.
 void setAuthorities(org.springframework.security.GrantedAuthority[] authorities)
          The base authorities for this consumer.
 void setConsumerKey(java.lang.String consumerKey)
          The consumer key.
 void setConsumerName(java.lang.String consumerName)
          The name of the consumer.
 void setResourceDescription(java.lang.String resourceDescription)
          The description of the resource.
 void setResourceName(java.lang.String resourceName)
          The name of the resource.
 void setSignatureSecret(SignatureSecret signatureSecret)
          The signature secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseConsumerDetails

public BaseConsumerDetails()
Method Detail

getConsumerKey

public java.lang.String getConsumerKey()
The consumer key.

Specified by:
getConsumerKey in interface ConsumerDetails
Returns:
The consumer key.

setConsumerKey

public void setConsumerKey(java.lang.String consumerKey)
The consumer key.

Parameters:
consumerKey - The consumer key.

getConsumerName

public java.lang.String getConsumerName()
The name of the consumer.

Specified by:
getConsumerName in interface ConsumerDetails
Returns:
The name of the consumer.

setConsumerName

public void setConsumerName(java.lang.String consumerName)
The name of the consumer.

Parameters:
consumerName - The name of the consumer.

getSignatureSecret

public SignatureSecret getSignatureSecret()
The signature secret.

Specified by:
getSignatureSecret in interface ConsumerDetails
Returns:
The signature secret.

setSignatureSecret

public void setSignatureSecret(SignatureSecret signatureSecret)
The signature secret.

Parameters:
signatureSecret - The signature secret.

getAuthorities

public org.springframework.security.GrantedAuthority[] getAuthorities()
The base authorities for this consumer.

Specified by:
getAuthorities in interface ConsumerDetails
Returns:
The base authorities for this consumer.

setAuthorities

public void setAuthorities(org.springframework.security.GrantedAuthority[] authorities)
The base authorities for this consumer.

Parameters:
authorities - The base authorities for this consumer.

getResourceName

public java.lang.String getResourceName()
The name of the resource.

Specified by:
getResourceName in interface ResourceSpecificConsumerDetails
Returns:
The name of the resource.

setResourceName

public void setResourceName(java.lang.String resourceName)
The name of the resource.

Parameters:
resourceName - The name of the resource.

getResourceDescription

public java.lang.String getResourceDescription()
The description of the resource.

Specified by:
getResourceDescription in interface ResourceSpecificConsumerDetails
Returns:
The description of the resource.

setResourceDescription

public void setResourceDescription(java.lang.String resourceDescription)
The description of the resource.

Parameters:
resourceDescription - The description of the resource.


Copyright © 2008. All Rights Reserved.