|
||||||||||
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 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()
|
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 ClientDetails
public void setClientId(String clientId)
public boolean isSecretRequired()
ClientDetails
isSecretRequired
in interface ClientDetails
public String getClientSecret()
ClientDetails
secret isn't required
.
getClientSecret
in interface ClientDetails
public void setClientSecret(String clientSecret)
public boolean isScoped()
ClientDetails
isScoped
in interface ClientDetails
public Set<String> getScope()
ClientDetails
getScope
in interface ClientDetails
public void setScope(Collection<String> scope)
public Set<String> getResourceIds()
ClientDetails
getResourceIds
in interface ClientDetails
public void setResourceIds(Collection<String> resourceIds)
public Set<String> getAuthorizedGrantTypes()
ClientDetails
getAuthorizedGrantTypes
in interface ClientDetails
public void setAuthorizedGrantTypes(Collection<String> authorizedGrantTypes)
public Set<String> getRegisteredRedirectUri()
ClientDetails
getRegisteredRedirectUri
in interface ClientDetails
public void setRegisteredRedirectUri(Set<String> registeredRedirectUris)
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
ClientDetails
getAuthorities
in interface ClientDetails
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public Integer getAccessTokenValiditySeconds()
ClientDetails
getAccessTokenValiditySeconds
in interface ClientDetails
public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
public Integer getRefreshTokenValiditySeconds()
ClientDetails
getRefreshTokenValiditySeconds
in interface ClientDetails
public 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 Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |