org.springframework.security.oauth2.client.resource
类 BaseOAuth2ProtectedResourceDetails

java.lang.Object
  继承者 org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails
所有已实现的接口:
OAuth2ProtectedResourceDetails
直接已知子类:
AbstractRedirectResourceDetails, ClientCredentialsResourceDetails, ResourceOwnerPasswordResourceDetails

public class BaseOAuth2ProtectedResourceDetails
extends Object
implements OAuth2ProtectedResourceDetails

作者:
Ryan Heaton, Dave Syer

构造方法摘要
BaseOAuth2ProtectedResourceDetails()
           
 
方法摘要
 boolean equals(Object o)
           
 String getAccessTokenUri()
          The URL to use to obtain an OAuth2 access token.
 AuthenticationScheme getAuthenticationScheme()
          Get the bearer token method for this resource.
 AuthenticationScheme getClientAuthenticationScheme()
          The scheme to use to authenticate the client.
 String getClientId()
          The client identifier to use for this protected resource.
 String getClientSecret()
          The client secret.
 String getGrantType()
          The grant type for obtaining an acces token for this resource.
 String getId()
          Get a unique identifier for these protected resource details.
 List<String> getScope()
          The scope of this resource.
 String getTokenName()
          The name of the bearer token.
 int hashCode()
           
 boolean isAuthenticationRequired()
          Whether a secret is required to obtain an access token to this resource.
 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.
 boolean isScoped()
          Whether this resource is limited to a specific scope.
 void setAccessTokenUri(String accessTokenUri)
           
 void setAuthenticationScheme(AuthenticationScheme authorizationScheme)
           
 void setClientAuthenticationScheme(AuthenticationScheme clientAuthenticationScheme)
           
 void setClientId(String clientId)
           
 void setClientSecret(String clientSecret)
           
 void setGrantType(String grantType)
           
 void setId(String id)
           
 void setScope(List<String> scope)
           
 void setTokenName(String tokenName)
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BaseOAuth2ProtectedResourceDetails

public BaseOAuth2ProtectedResourceDetails()
方法详细信息

getId

public String getId()
从接口 OAuth2ProtectedResourceDetails 复制的描述
Get a unique identifier for these protected resource details.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getId
返回:
A unique identifier for these protected resource details.

setId

public void setId(String id)

getClientId

public String getClientId()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The client identifier to use for this protected resource.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getClientId
返回:
The client identifier to use for this protected resource.

setClientId

public void setClientId(String clientId)

getAccessTokenUri

public String getAccessTokenUri()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The URL to use to obtain an OAuth2 access token.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getAccessTokenUri
返回:
The URL to use to obtain an OAuth2 access token.

setAccessTokenUri

public void setAccessTokenUri(String accessTokenUri)

isScoped

public boolean isScoped()
从接口 OAuth2ProtectedResourceDetails 复制的描述
Whether this resource is limited to a specific scope. If false, the scope of the authentication request will be ignored.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 isScoped
返回:
Whether this resource is limited to a specific scope.

getScope

public List<String> getScope()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The scope of this resource. Ignored if the resource isn't scoped.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getScope
返回:
The scope of this resource.

setScope

public void setScope(List<String> scope)

isAuthenticationRequired

public boolean isAuthenticationRequired()
从接口 OAuth2ProtectedResourceDetails 复制的描述
Whether a secret is required to obtain an access token to this resource.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 isAuthenticationRequired
返回:
Whether a secret is required to obtain an access token to this resource.

getClientSecret

public String getClientSecret()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The client secret. Ignored if the secret isn't required.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getClientSecret
返回:
The client secret.

setClientSecret

public void setClientSecret(String clientSecret)

getClientAuthenticationScheme

public AuthenticationScheme getClientAuthenticationScheme()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The scheme to use to authenticate the client. E.g. "header" or "query".

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getClientAuthenticationScheme
返回:
The scheme used to authenticate the client.

setClientAuthenticationScheme

public void setClientAuthenticationScheme(AuthenticationScheme clientAuthenticationScheme)

isClientOnly

public boolean isClientOnly()
从接口 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.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 isClientOnly
返回:
true if this resource is only used with client credentials grant

getAuthenticationScheme

public AuthenticationScheme getAuthenticationScheme()
从接口 OAuth2ProtectedResourceDetails 复制的描述
Get the bearer token method for this resource.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getAuthenticationScheme
返回:
The bearer token method for this resource.

setAuthenticationScheme

public void setAuthenticationScheme(AuthenticationScheme authorizationScheme)

getTokenName

public String getTokenName()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The name of the bearer token. The default is "access_token", which is according to the spec, but some providers (e.g. Facebook) don't conform to the spec.)

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getTokenName
返回:
The name of the bearer token.

setTokenName

public void setTokenName(String tokenName)

getGrantType

public String getGrantType()
从接口 OAuth2ProtectedResourceDetails 复制的描述
The grant type for obtaining an acces token for this resource.

指定者:
接口 OAuth2ProtectedResourceDetails 中的 getGrantType
返回:
The grant type for obtaining an acces token for this resource.

setGrantType

public void setGrantType(String grantType)

equals

public boolean equals(Object o)
覆盖:
Object 中的 equals

hashCode

public int hashCode()
覆盖:
Object 中的 hashCode


Copyright © 2013. All rights reserved.