org.springframework.security.oauth.provider
Interface ConsumerDetails

All Superinterfaces:
Serializable
All Known Subinterfaces:
ExtraTrustConsumerDetails, ResourceSpecificConsumerDetails
All Known Implementing Classes:
BaseConsumerDetails, SparklrConsumerDetails

public interface ConsumerDetails
extends Serializable

Provides core OAuth consumer information.

Author:
Ryan Heaton

Method Summary
 List<org.springframework.security.core.GrantedAuthority> getAuthorities()
          Get the authorities that are granted to the OAuth consumer.
 String getConsumerKey()
          The consumer key.
 String getConsumerName()
          The name of the consumer (for display purposes).
 SignatureSecret getSignatureSecret()
          The signature secret.
 

Method Detail

getConsumerKey

String getConsumerKey()
The consumer key.

Returns:
The consumer key.

getConsumerName

String getConsumerName()
The name of the consumer (for display purposes).

Returns:
The name of the consumer (for display purposes).

getSignatureSecret

SignatureSecret getSignatureSecret()
The signature secret.

Returns:
The signature secret.

getAuthorities

List<org.springframework.security.core.GrantedAuthority> getAuthorities()
Get the authorities that are granted to the OAuth consumer. Not the these are NOT the authorities that are granted to the consumer with a user-authorized access token. Instead, these authorities are inherent to the consumer itself.

Returns:
The authorities.


Copyright © 2012. All Rights Reserved.