|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.BaseClientDetails
public class BaseClientDetails
Base implementation of ClientDetails.
| Nested Class Summary | |
|---|---|
static class |
BaseClientDetails.ArrayOrStringDeserializer
|
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 needed 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 |
isAutoApprove(String scope)
Test whether client needs user approval for a particular scope. |
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 |
setAutoApproveScopes(Set<String> autoApproveScopes)
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public String getClientId()
ClientDetails
getClientId in interface ClientDetailspublic void setClientId(String clientId)
public void setAutoApproveScopes(Set<String> autoApproveScopes)
public boolean isAutoApprove(String scope)
ClientDetails
isAutoApprove in interface ClientDetailsscope - the scope to consider
public boolean isSecretRequired()
ClientDetails
isSecretRequired in interface ClientDetailspublic String getClientSecret()
ClientDetailssecret isn't required.
getClientSecret in interface ClientDetailspublic void setClientSecret(String clientSecret)
public boolean isScoped()
ClientDetails
isScoped in interface ClientDetailspublic Set<String> getScope()
ClientDetails
getScope in interface ClientDetailspublic void setScope(Collection<String> scope)
public Set<String> getResourceIds()
ClientDetails
getResourceIds in interface ClientDetailspublic void setResourceIds(Collection<String> resourceIds)
public Set<String> getAuthorizedGrantTypes()
ClientDetails
getAuthorizedGrantTypes in interface ClientDetailspublic void setAuthorizedGrantTypes(Collection<String> authorizedGrantTypes)
public Set<String> getRegisteredRedirectUri()
ClientDetails
getRegisteredRedirectUri in interface ClientDetailspublic void setRegisteredRedirectUri(Set<String> registeredRedirectUris)
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
ClientDetails
getAuthorities in interface ClientDetailspublic void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public Integer getAccessTokenValiditySeconds()
ClientDetails
getAccessTokenValiditySeconds in interface ClientDetailspublic void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
public Integer getRefreshTokenValiditySeconds()
ClientDetails
getRefreshTokenValiditySeconds in interface ClientDetailspublic void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
public void setAdditionalInformation(Map<String,?> additionalInformation)
public Map<String,Object> getAdditionalInformation()
ClientDetails
getAdditionalInformation in interface ClientDetails
public void addAdditionalInformation(String key,
Object value)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||