public interface ClientDetails extends Serializable
Modifier and Type | Method and Description |
---|---|
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()
Returns 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.
|
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.
|
String getClientId()
Set<String> getResourceIds()
boolean isSecretRequired()
String getClientSecret()
secret isn't required
.boolean isScoped()
Set<String> getScope()
Set<String> getAuthorizedGrantTypes()
Set<String> getRegisteredRedirectUri()
Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
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.null
)Integer getAccessTokenValiditySeconds()
Integer getRefreshTokenValiditySeconds()
boolean isAutoApprove(String scope)
scope
- the scope to considerCopyright © 2019. All rights reserved.