org.springframework.security.oauth2.config
类 OAuth2ClientContextFactoryBean

java.lang.Object
  继承者 org.springframework.security.oauth2.config.OAuth2ClientContextFactoryBean
所有已实现的接口:
org.springframework.beans.factory.FactoryBean<OAuth2ClientContext>

public class OAuth2ClientContextFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<OAuth2ClientContext>

Convenience factory for OAuth2ClientContext that is aware of the need for a different context if the resource is for a client credentials grant. Client credentials grants will always have the same credentials for all requests, so there's no point protecting the context with session and request scopes.

作者:
Dave Syer

构造方法摘要
OAuth2ClientContextFactoryBean()
           
 
方法摘要
 OAuth2ClientContext getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBareContext(OAuth2ClientContext bareContext)
           
 void setResource(OAuth2ProtectedResourceDetails resource)
           
 void setScopedContext(OAuth2ClientContext scopedContext)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

OAuth2ClientContextFactoryBean

public OAuth2ClientContextFactoryBean()
方法详细信息

setResource

public void setResource(OAuth2ProtectedResourceDetails resource)
参数:
resource - the resource to set

setScopedContext

public void setScopedContext(OAuth2ClientContext scopedContext)
参数:
scopedContext - the scopedContext to set

setBareContext

public void setBareContext(OAuth2ClientContext bareContext)
参数:
bareContext - the bareContext to set

getObject

public OAuth2ClientContext getObject()
                              throws Exception
指定者:
接口 org.springframework.beans.factory.FactoryBean<OAuth2ClientContext> 中的 getObject
抛出:
Exception

getObjectType

public Class<?> getObjectType()
指定者:
接口 org.springframework.beans.factory.FactoryBean<OAuth2ClientContext> 中的 getObjectType

isSingleton

public boolean isSingleton()
指定者:
接口 org.springframework.beans.factory.FactoryBean<OAuth2ClientContext> 中的 isSingleton


Copyright © 2013. All rights reserved.