Class DefaultHybrisOpenIDTokenServices
- java.lang.Object
-
- org.springframework.security.oauth2.provider.token.DefaultTokenServices
-
- de.hybris.platform.webservicescommons.oauth2.token.provider.HybrisOAuthTokenServices
-
- de.hybris.platform.oauth2.services.impl.DefaultHybrisOpenIDTokenServices
-
- All Implemented Interfaces:
HybrisOpenIDTokenServices,org.springframework.beans.factory.InitializingBean,org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices,org.springframework.security.oauth2.provider.token.ConsumerTokenServices,org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
public class DefaultHybrisOpenIDTokenServices extends HybrisOAuthTokenServices implements HybrisOpenIDTokenServices
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAUD_CLAIMprotected static java.lang.StringEMAIL_CLAIMprotected static java.lang.StringGROUPS_CLAIMprotected static java.lang.StringID_TOKENprotected static java.lang.StringID_TOKEN_VALIDITY_SECONDSprotected static java.lang.StringKEYSTORE_LOCATION_KEYprotected static java.lang.StringKEYSTORE_PASS_KEYprotected static java.lang.StringKIDprotected static java.lang.StringNAME_CLAIMprotected static java.lang.StringOAUTH2_ALGORITHMprotected static java.lang.StringOPENID_SCOPE_NAME
-
Constructor Summary
Constructors Constructor Description DefaultHybrisOpenIDTokenServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.common.OAuth2AccessTokencreateAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)protected IdTokenHelpercreateIdTokenHelper(org.springframework.security.oauth2.provider.OAuth2Authentication authentication, OpenIDClientDetailsModel openIDClientDetailsModel, java.util.List<java.lang.String> externalScopes, IDTokenParameterData idtokenparam)java.util.List<OAuthClientDetailsModel>getAllOpenIDClientDetails()protected ClientDetailsDaogetClientDetailsDao()protected ConfigurationServicegetConfigurationService()protected KeyStoreHelpergetKeyStoreHelper()java.util.List<java.lang.String>getResponseTypes()protected org.springframework.security.jwt.crypto.sign.SignergetSigner(IDTokenParameterData data)java.util.List<java.lang.String>getSubjectTypes()java.util.List<java.lang.String>getSupportedScopes()java.util.List<java.lang.String>getTokenEndpointAuthMethods()protected UserServicegetUserService()protected IDTokenParameterDatainitializeIdTokenParameters(java.lang.String clientId)voidsetClientDetailsDao(ClientDetailsDao clientDetailsDao)voidsetConfigurationService(ConfigurationService configurationService)voidsetExternalScopesStrategy(OpenIDExternalScopesStrategy externalScopesStrategy)voidsetKeyStoreHelper(KeyStoreHelper keyStoreHelper)voidsetUserService(UserService userService)-
Methods inherited from class org.springframework.security.oauth2.provider.token.DefaultTokenServices
afterPropertiesSet, getAccessToken, getAccessTokenValiditySeconds, getClientId, getRefreshTokenValiditySeconds, isExpired, isSupportRefreshToken, loadAuthentication, readAccessToken, refreshAccessToken, revokeToken, setAccessTokenValiditySeconds, setAuthenticationManager, setClientDetailsService, setRefreshTokenValiditySeconds, setReuseRefreshToken, setSupportRefreshToken, setTokenEnhancer, setTokenStore
-
-
-
-
Field Detail
-
AUD_CLAIM
protected static final java.lang.String AUD_CLAIM
- See Also:
- Constant Field Values
-
NAME_CLAIM
protected static final java.lang.String NAME_CLAIM
- See Also:
- Constant Field Values
-
EMAIL_CLAIM
protected static final java.lang.String EMAIL_CLAIM
- See Also:
- Constant Field Values
-
GROUPS_CLAIM
protected static final java.lang.String GROUPS_CLAIM
- See Also:
- Constant Field Values
-
ID_TOKEN
protected static final java.lang.String ID_TOKEN
- See Also:
- Constant Field Values
-
OPENID_SCOPE_NAME
protected static final java.lang.String OPENID_SCOPE_NAME
- See Also:
- Constant Field Values
-
ID_TOKEN_VALIDITY_SECONDS
protected static final java.lang.String ID_TOKEN_VALIDITY_SECONDS
- See Also:
- Constant Field Values
-
KID
protected static final java.lang.String KID
- See Also:
- Constant Field Values
-
KEYSTORE_LOCATION_KEY
protected static final java.lang.String KEYSTORE_LOCATION_KEY
- See Also:
- Constant Field Values
-
KEYSTORE_PASS_KEY
protected static final java.lang.String KEYSTORE_PASS_KEY
- See Also:
- Constant Field Values
-
OAUTH2_ALGORITHM
protected static final java.lang.String OAUTH2_ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTokenEndpointAuthMethods
public java.util.List<java.lang.String> getTokenEndpointAuthMethods()
- Specified by:
getTokenEndpointAuthMethodsin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported token endpoint authentication methods
-
getSubjectTypes
public java.util.List<java.lang.String> getSubjectTypes()
- Specified by:
getSubjectTypesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported Subject types
-
getResponseTypes
public java.util.List<java.lang.String> getResponseTypes()
- Specified by:
getResponseTypesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported response types
-
getSupportedScopes
public java.util.List<java.lang.String> getSupportedScopes()
- Specified by:
getSupportedScopesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported scopes
-
getAllOpenIDClientDetails
public java.util.List<OAuthClientDetailsModel> getAllOpenIDClientDetails()
- Specified by:
getAllOpenIDClientDetailsin interfaceHybrisOpenIDTokenServices- Returns:
- All known OpenIDClientDetails items
-
createAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken createAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
- Specified by:
createAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices- Overrides:
createAccessTokenin classHybrisOAuthTokenServices
-
createIdTokenHelper
protected IdTokenHelper createIdTokenHelper(org.springframework.security.oauth2.provider.OAuth2Authentication authentication, OpenIDClientDetailsModel openIDClientDetailsModel, java.util.List<java.lang.String> externalScopes, IDTokenParameterData idtokenparam)
-
initializeIdTokenParameters
protected IDTokenParameterData initializeIdTokenParameters(java.lang.String clientId)
-
getSigner
protected org.springframework.security.jwt.crypto.sign.Signer getSigner(IDTokenParameterData data)
-
setExternalScopesStrategy
public void setExternalScopesStrategy(OpenIDExternalScopesStrategy externalScopesStrategy)
-
getKeyStoreHelper
protected KeyStoreHelper getKeyStoreHelper()
-
setKeyStoreHelper
public void setKeyStoreHelper(KeyStoreHelper keyStoreHelper)
-
getClientDetailsDao
protected ClientDetailsDao getClientDetailsDao()
-
setClientDetailsDao
public void setClientDetailsDao(ClientDetailsDao clientDetailsDao)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
-