|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.BaseClientDetails
public class BaseClientDetails
Base implementation of ClientDetails.
| 嵌套类摘要 | |
|---|---|
static class |
BaseClientDetails.ArrayOrStringDeserializer
|
| 构造方法摘要 | |
|---|---|
BaseClientDetails()
|
|
BaseClientDetails(ClientDetails prototype)
|
|
BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities)
|
|
BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities,
String redirectUris)
|
|
| 方法摘要 | |
|---|---|
void |
addAdditionalInformation(String key,
Object value)
|
boolean |
equals(Object obj)
|
Integer |
getAccessTokenValiditySeconds()
The access token validity period for this client. |
Map<String,Object> |
getAdditionalInformation()
Additional information for this client, not neeed by the vanilla OAuth protocol but might be useful, for example, for storing descriptive information. |
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Get the authorities that are granted to the OAuth client. |
Set<String> |
getAuthorizedGrantTypes()
The grant types for which this client is authorized. |
String |
getClientId()
The client id. |
String |
getClientSecret()
The client secret. |
Integer |
getRefreshTokenValiditySeconds()
The refresh token validity period for this client. |
Set<String> |
getRegisteredRedirectUri()
The pre-defined redirect URI for this client to use during the "authorization_code" access grant. |
Set<String> |
getResourceIds()
The resources that this client can access. |
Set<String> |
getScope()
The scope of this client. |
int |
hashCode()
|
boolean |
isScoped()
Whether this client is limited to a specific scope. |
boolean |
isSecretRequired()
Whether a secret is required to authenticate this client. |
void |
setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
|
void |
setAdditionalInformation(Map<String,?> additionalInformation)
|
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
|
void |
setAuthorizedGrantTypes(Collection<String> authorizedGrantTypes)
|
void |
setClientId(String clientId)
|
void |
setClientSecret(String clientSecret)
|
void |
setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
|
void |
setRegisteredRedirectUri(Set<String> registeredRedirectUris)
|
void |
setResourceIds(Collection<String> resourceIds)
|
void |
setScope(Collection<String> scope)
|
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public BaseClientDetails()
public BaseClientDetails(ClientDetails prototype)
public BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities)
public BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities,
String redirectUris)
| 方法详细信息 |
|---|
public String getClientId()
ClientDetails 复制的描述
ClientDetails 中的 getClientIdpublic void setClientId(String clientId)
public boolean isSecretRequired()
ClientDetails 复制的描述
ClientDetails 中的 isSecretRequiredpublic String getClientSecret()
ClientDetails 复制的描述secret isn't required.
ClientDetails 中的 getClientSecretpublic void setClientSecret(String clientSecret)
public boolean isScoped()
ClientDetails 复制的描述
ClientDetails 中的 isScopedpublic Set<String> getScope()
ClientDetails 复制的描述
ClientDetails 中的 getScopepublic void setScope(Collection<String> scope)
public Set<String> getResourceIds()
ClientDetails 复制的描述
ClientDetails 中的 getResourceIdspublic void setResourceIds(Collection<String> resourceIds)
public Set<String> getAuthorizedGrantTypes()
ClientDetails 复制的描述
ClientDetails 中的 getAuthorizedGrantTypespublic void setAuthorizedGrantTypes(Collection<String> authorizedGrantTypes)
public Set<String> getRegisteredRedirectUri()
ClientDetails 复制的描述
ClientDetails 中的 getRegisteredRedirectUripublic void setRegisteredRedirectUri(Set<String> registeredRedirectUris)
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
ClientDetails 复制的描述
ClientDetails 中的 getAuthoritiespublic void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public Integer getAccessTokenValiditySeconds()
ClientDetails 复制的描述
ClientDetails 中的 getAccessTokenValiditySecondspublic void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
public Integer getRefreshTokenValiditySeconds()
ClientDetails 复制的描述
ClientDetails 中的 getRefreshTokenValiditySecondspublic void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
public void setAdditionalInformation(Map<String,?> additionalInformation)
public Map<String,Object> getAdditionalInformation()
ClientDetails 复制的描述
ClientDetails 中的 getAdditionalInformation
public void addAdditionalInformation(String key,
Object value)
public int hashCode()
Object 中的 hashCodepublic boolean equals(Object obj)
Object 中的 equalspublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||