@Deprecated public class BaseClientDetails extends Object implements ClientDetails
ClientDetails
.
Constructor and Description |
---|
BaseClientDetails()
Deprecated.
|
BaseClientDetails(ClientDetails prototype)
Deprecated.
|
BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities)
Deprecated.
|
BaseClientDetails(String clientId,
String resourceIds,
String scopes,
String grantTypes,
String authorities,
String redirectUris)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalInformation(String key,
Object value)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
Integer |
getAccessTokenValiditySeconds()
Deprecated.
The access token validity period for this client.
|
Map<String,Object> |
getAdditionalInformation()
Deprecated.
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()
Deprecated.
Returns the authorities that are granted to the OAuth client.
|
Set<String> |
getAuthorizedGrantTypes()
Deprecated.
The grant types for which this client is authorized.
|
Set<String> |
getAutoApproveScopes()
Deprecated.
|
String |
getClientId()
Deprecated.
The client id.
|
String |
getClientSecret()
Deprecated.
The client secret.
|
Integer |
getRefreshTokenValiditySeconds()
Deprecated.
The refresh token validity period for this client.
|
Set<String> |
getRegisteredRedirectUri()
Deprecated.
The pre-defined redirect URI for this client to use during the "authorization_code" access grant.
|
Set<String> |
getResourceIds()
Deprecated.
The resources that this client can access.
|
Set<String> |
getScope()
Deprecated.
The scope of this client.
|
int |
hashCode()
Deprecated.
|
boolean |
isAutoApprove(String scope)
Deprecated.
Test whether client needs user approval for a particular scope.
|
boolean |
isScoped()
Deprecated.
Whether this client is limited to a specific scope.
|
boolean |
isSecretRequired()
Deprecated.
Whether a secret is required to authenticate this client.
|
void |
setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds)
Deprecated.
|
void |
setAdditionalInformation(Map<String,?> additionalInformation)
Deprecated.
|
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Deprecated.
|
void |
setAuthorizedGrantTypes(Collection<String> authorizedGrantTypes)
Deprecated.
|
void |
setAutoApproveScopes(Collection<String> autoApproveScopes)
Deprecated.
|
void |
setClientId(String clientId)
Deprecated.
|
void |
setClientSecret(String clientSecret)
Deprecated.
|
void |
setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds)
Deprecated.
|
void |
setRegisteredRedirectUri(Set<String> registeredRedirectUris)
Deprecated.
|
void |
setResourceIds(Collection<String> resourceIds)
Deprecated.
|
void |
setScope(Collection<String> scope)
Deprecated.
|
String |
toString()
Deprecated.
|
public BaseClientDetails()
public BaseClientDetails(ClientDetails prototype)
public BaseClientDetails(String clientId, String resourceIds, String scopes, String grantTypes, String authorities)
public String getClientId()
ClientDetails
getClientId
in interface ClientDetails
public void setClientId(String clientId)
public void setAutoApproveScopes(Collection<String> autoApproveScopes)
public boolean isAutoApprove(String scope)
ClientDetails
isAutoApprove
in interface ClientDetails
scope
- the scope to considerpublic 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
null
.
Note that these are NOT the authorities that are granted to the user with an authorized access token.
Instead, these authorities are inherent to the client itself.getAuthorities
in interface ClientDetails
null
)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
Copyright © 2019. All rights reserved.