本文整理匯總了Java中org.springframework.security.oauth.provider.OAuthProviderSupport類的典型用法代碼示例。如果您正苦於以下問題:Java OAuthProviderSupport類的具體用法?Java OAuthProviderSupport怎麽用?Java OAuthProviderSupport使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OAuthProviderSupport類屬於org.springframework.security.oauth.provider包,在下文中一共展示了OAuthProviderSupport類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setUp
import org.springframework.security.oauth.provider.OAuthProviderSupport; //導入依賴的package包/類
@Before
public void setUp() throws Exception {
oauthProviderSupport = mock(OAuthProviderSupport.class);
when(oauthProviderSupport.parseParameters(any())).thenReturn(someParams("some-key"));
keyExtractor = new OAuthKeyExtractor(oauthProviderSupport);
}
示例2: oauthProviderSupport
import org.springframework.security.oauth.provider.OAuthProviderSupport; //導入依賴的package包/類
@Bean
public OAuthProviderSupport oauthProviderSupport() {
return new CoreOAuthProviderSupport();
}
示例3: OAuthKeyExtractor
import org.springframework.security.oauth.provider.OAuthProviderSupport; //導入依賴的package包/類
OAuthKeyExtractor(OAuthProviderSupport oauthProviderSupport) {
this.oauthProviderSupport = oauthProviderSupport;
}
示例4: getProviderSupport
import org.springframework.security.oauth.provider.OAuthProviderSupport; //導入依賴的package包/類
/**
* The OAuth provider support.
*
* @return The OAuth provider support.
*/
public OAuthProviderSupport getProviderSupport() {
return providerSupport;
}
示例5: setProviderSupport
import org.springframework.security.oauth.provider.OAuthProviderSupport; //導入依賴的package包/類
/**
* The OAuth provider support.
*
* @param providerSupport The OAuth provider support.
*/
@Autowired (required = false)
public void setProviderSupport(OAuthProviderSupport providerSupport) {
this.providerSupport = providerSupport;
}