org.springframework.security.oauth2.client.token.grant.client
Class ClientCredentialsResourceDetails

java.lang.Object
  extended by org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails
      extended by org.springframework.security.oauth2.client.token.grant.client.ClientCredentialsResourceDetails
All Implemented Interfaces:
OAuth2ProtectedResourceDetails
Direct Known Subclasses:
OAuth2ContextConfiguration.ClientCredentials

public class ClientCredentialsResourceDetails
extends BaseOAuth2ProtectedResourceDetails

Author:
Dave Syer

Constructor Summary
ClientCredentialsResourceDetails()
           
 
Method Summary
 boolean isClientOnly()
          A flag to indicate that this resource is only to be used with client credentials, thus allowing access tokens to be cached independent of a user's session.
 
Methods inherited from class org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails
equals, getAccessTokenUri, getAuthenticationScheme, getClientAuthenticationScheme, getClientId, getClientSecret, getGrantType, getId, getScope, getTokenName, hashCode, isAuthenticationRequired, isScoped, setAccessTokenUri, setAuthenticationScheme, setClientAuthenticationScheme, setClientId, setClientSecret, setGrantType, setId, setScope, setTokenName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCredentialsResourceDetails

public ClientCredentialsResourceDetails()
Method Detail

isClientOnly

public boolean isClientOnly()
Description copied from interface: OAuth2ProtectedResourceDetails
A flag to indicate that this resource is only to be used with client credentials, thus allowing access tokens to be cached independent of a user's session.

Specified by:
isClientOnly in interface OAuth2ProtectedResourceDetails
Overrides:
isClientOnly in class BaseOAuth2ProtectedResourceDetails
Returns:
true if this resource is only used with client credentials grant


Copyright © 2012. All Rights Reserved.