Class ResourceServerProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.validation.Validator
@ConfigurationProperties(prefix="security.oauth2.resource") public class ResourceServerProperties extends Object implements org.springframework.validation.Validator, org.springframework.beans.factory.BeanFactoryAware
Configuration properties for OAuth2 Resources.- Since:
- 1.3.0
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ResourceServerProperties.Jwk
class
ResourceServerProperties.Jwt
Constructor Summary
Constructors Constructor Description ResourceServerProperties()
ResourceServerProperties(String clientId, String clientSecret)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientId()
String
getClientSecret()
int
getFilterOrder()
String
getId()
ResourceServerProperties.Jwk
getJwk()
ResourceServerProperties.Jwt
getJwt()
String
getResourceId()
String
getServiceId()
String
getTokenInfoUri()
String
getTokenType()
String
getUserInfoUri()
boolean
isPreferTokenInfo()
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
void
setFilterOrder(int filterOrder)
void
setId(String id)
void
setJwk(ResourceServerProperties.Jwk jwk)
void
setJwt(ResourceServerProperties.Jwt jwt)
void
setPreferTokenInfo(boolean preferTokenInfo)
void
setServiceId(String serviceId)
void
setTokenInfoUri(String tokenInfoUri)
void
setTokenType(String tokenType)
void
setUserInfoUri(String userInfoUri)
boolean
supports(Class<?> clazz)
void
validate(Object target, org.springframework.validation.Errors errors)
Constructor Detail
ResourceServerProperties
public ResourceServerProperties()
ResourceServerProperties
public ResourceServerProperties(String clientId, String clientSecret)
Method Detail
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
getResourceId
public String getResourceId()
getServiceId
public String getServiceId()
setServiceId
public void setServiceId(String serviceId)
getUserInfoUri
public String getUserInfoUri()
setUserInfoUri
public void setUserInfoUri(String userInfoUri)
getTokenInfoUri
public String getTokenInfoUri()
setTokenInfoUri
public void setTokenInfoUri(String tokenInfoUri)
isPreferTokenInfo
public boolean isPreferTokenInfo()
setPreferTokenInfo
public void setPreferTokenInfo(boolean preferTokenInfo)
getTokenType
public String getTokenType()
setTokenType
public void setTokenType(String tokenType)
getJwt
public ResourceServerProperties.Jwt getJwt()
setJwt
public void setJwt(ResourceServerProperties.Jwt jwt)
getJwk
public ResourceServerProperties.Jwk getJwk()
setJwk
public void setJwk(ResourceServerProperties.Jwk jwk)
getClientId
public String getClientId()
getClientSecret
public String getClientSecret()
getFilterOrder
public int getFilterOrder()
setFilterOrder
public void setFilterOrder(int filterOrder)
supports
public boolean supports(Class<?> clazz)
- Specified by:
supports
in interfaceorg.springframework.validation.Validator