public class IntrospectingTokenService extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
| Constructor and Description |
|---|
IntrospectingTokenService() |
IntrospectingTokenService(org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultExpireTime()
get the default cache expire time in milliseconds
|
IntrospectionAuthorityGranter |
getIntrospectionAuthorityGranter() |
IntrospectionConfigurationService |
getIntrospectionConfigurationService() |
boolean |
isCacheNonExpiringTokens()
Are non-expiring tokens cached using the default cache time
|
boolean |
isCacheTokens()
Is the service caching tokens, or is it hitting the introspection end point every time
|
boolean |
isForceCacheExpireTime()
check if forcing a cache expire time maximum value
|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(String accessToken) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(String accessToken) |
void |
setCacheNonExpiringTokens(boolean cacheNonExpiringTokens)
should non-expiring tokens be cached using the default cache timeout
|
void |
setCacheTokens(boolean cacheTokens)
Configure if the client should cache tokens locally or not
|
void |
setDefaultExpireTime(int defaultExpireTime)
set the default cache expire time in milliseconds
|
void |
setForceCacheExpireTime(boolean forceCacheExpireTime)
set forcing a cache expire time maximum value
|
void |
setIntrospectionAuthorityGranter(IntrospectionAuthorityGranter introspectionAuthorityGranter) |
void |
setIntrospectionConfigurationService(IntrospectionConfigurationService introspectionUrlProvider) |
public IntrospectingTokenService()
public IntrospectingTokenService(org.apache.http.client.HttpClient httpClient)
public IntrospectionConfigurationService getIntrospectionConfigurationService()
public void setIntrospectionConfigurationService(IntrospectionConfigurationService introspectionUrlProvider)
introspectionConfigurationService - the introspectionConfigurationService to setpublic void setIntrospectionAuthorityGranter(IntrospectionAuthorityGranter introspectionAuthorityGranter)
introspectionAuthorityGranter - the introspectionAuthorityGranter to setpublic IntrospectionAuthorityGranter getIntrospectionAuthorityGranter()
public int getDefaultExpireTime()
public void setDefaultExpireTime(int defaultExpireTime)
defaultExpireTime - public boolean isForceCacheExpireTime()
public void setForceCacheExpireTime(boolean forceCacheExpireTime)
forceCacheExpireTime - public boolean isCacheNonExpiringTokens()
public void setCacheNonExpiringTokens(boolean cacheNonExpiringTokens)
cacheNonExpiringTokens - public boolean isCacheTokens()
public void setCacheTokens(boolean cacheTokens)
cacheTokens - public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException
loadAuthentication in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesorg.springframework.security.core.AuthenticationExceptionpublic org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
readAccessToken in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesCopyright © 2018. All rights reserved.