Class PasswordEncoderFactoryImpl
java.lang.Object
de.hybris.platform.persistence.security.PasswordEncoderFactoryImpl
- All Implemented Interfaces:
PasswordEncoderFactory
See spring configuration (core-spring.xml)
<bean id="passwordEncoderFactory" ... >
<bean id="passwordEncoderFactory" ... >
-
Field Summary
FieldsFields inherited from interface de.hybris.platform.persistence.security.PasswordEncoderFactory
BEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor callsinit()for initialization. -
Method Summary
Modifier and TypeMethodDescriptiongetEncoder(String encoding) Return the configured password encoder based on the submitted 'encoding'.
In casewas submitted then the SystemEJB.DEFAULT_ENCODING ('*') will be used instead. booleanisSupportedEncoding(String encoding) voidsetEncoders(Map<String, PasswordEncoder> passwordEncoders)
-
Field Details
-
PASSWORD_ENCODER_KEY
- See Also:
-
-
Constructor Details
-
PasswordEncoderFactoryImpl
public PasswordEncoderFactoryImpl()The constructor callsinit()for initialization.
-
-
Method Details
-
getEncoder
Return the configured password encoder based on the submitted 'encoding'.
In casewas submitted then the SystemEJB.DEFAULT_ENCODING ('*') will be used instead. - Specified by:
getEncoderin interfacePasswordEncoderFactory- Parameters:
encoding- the password encoding, which will be transformed to lowerCase before the lookup process will be executed. (Feature: For Unit testing you can specify the password encoder class directly, too)- Returns:
- the configured password encoder
- Throws:
PasswordEncoderNotFoundException
-
isSupportedEncoding
- Specified by:
isSupportedEncodingin interfacePasswordEncoderFactory
-
getSupportedEncodings
- Specified by:
getSupportedEncodingsin interfacePasswordEncoderFactory
-
getEncoders
- Specified by:
getEncodersin interfacePasswordEncoderFactory
-
setEncoders
-