Class OAuthClientInterceptor
java.lang.Object
de.hybris.platform.webservicescommons.interceptors.OAuthClientInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<OAuthClientDetailsModel>
public class OAuthClientInterceptor
extends Object
implements PrepareInterceptor<OAuthClientDetailsModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.password.PasswordEncodervoidonPrepare(OAuthClientDetailsModel model, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.voidsetClientSecretEncoder(org.springframework.security.crypto.password.PasswordEncoder clientSecretEncoder)
-
Constructor Details
-
OAuthClientInterceptor
public OAuthClientInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(OAuthClientDetailsModel model, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<OAuthClientDetailsModel>- Parameters:
model- the model which values has to be preparedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getClientSecretEncoder
public org.springframework.security.crypto.password.PasswordEncoder getClientSecretEncoder() -
setClientSecretEncoder
public void setClientSecretEncoder(org.springframework.security.crypto.password.PasswordEncoder clientSecretEncoder)
-