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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.common.OAuth2AccessTokencreateAccessToken(org.springframework.security.oauth2.provider.OAuth2Authentication authentication) protected IdTokenHelpercreateIdTokenHelper(org.springframework.security.oauth2.provider.OAuth2Authentication authentication, OpenIDClientDetailsModel openIDClientDetailsModel, List<String> externalScopes, IDTokenParameterData idtokenparam) protected ClientDetailsDaoprotected ConfigurationServiceprotected KeyStoreHelperprotected org.springframework.security.jwt.crypto.sign.Signerprotected UserServiceprotected IDTokenParameterDatainitializeIdTokenParameters(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 Details
-
AUD_CLAIM
- See Also:
-
NAME_CLAIM
- See Also:
-
EMAIL_CLAIM
- See Also:
-
GROUPS_CLAIM
- See Also:
-
ID_TOKEN
- See Also:
-
OPENID_SCOPE_NAME
- See Also:
-
ID_TOKEN_VALIDITY_SECONDS
- See Also:
-
KID
- See Also:
-
KEYSTORE_LOCATION_KEY
- See Also:
-
KEYSTORE_PASS_KEY
- See Also:
-
OAUTH2_ALGORITHM
- See Also:
-
-
Constructor Details
-
DefaultHybrisOpenIDTokenServices
public DefaultHybrisOpenIDTokenServices()
-
-
Method Details
-
getTokenEndpointAuthMethods
- Specified by:
getTokenEndpointAuthMethodsin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported token endpoint authentication methods
-
getSubjectTypes
- Specified by:
getSubjectTypesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported Subject types
-
getResponseTypes
- Specified by:
getResponseTypesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported response types
-
getSupportedScopes
- Specified by:
getSupportedScopesin interfaceHybrisOpenIDTokenServices- Returns:
- List of supported scopes
-
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, List<String> externalScopes, IDTokenParameterData idtokenparam) -
initializeIdTokenParameters
-
getSigner
-
setExternalScopesStrategy
-
getKeyStoreHelper
-
setKeyStoreHelper
-
getClientDetailsDao
-
setClientDetailsDao
-
getConfigurationService
-
setConfigurationService
-
getUserService
-
setUserService
-