Class DefaultAuthorizationCodeServices
- java.lang.Object
-
- org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
-
- com.broadleafcommerce.auth.security.service.DefaultAuthorizationCodeServices
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.code.AuthorizationCodeServices
public class DefaultAuthorizationCodeServices extends org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
Implementation ofAuthorizationCodeServices
that better handles ourAuthCode
domain compared to the Spring providedJdbcAuthorizationCodeServices
.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationCodeServices(AuthCodeRepository authCodeRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.oauth2.provider.OAuth2Authentication
remove(String code)
protected void
store(String code, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
-
-
-
Constructor Detail
-
DefaultAuthorizationCodeServices
public DefaultAuthorizationCodeServices(AuthCodeRepository authCodeRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Detail
-
store
protected void store(String code, org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
- Specified by:
store
in classorg.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
-
remove
@Nullable protected org.springframework.security.oauth2.provider.OAuth2Authentication remove(String code)
- Specified by:
remove
in classorg.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
-
-