Class PluggablePasswordEncoder
java.lang.Object
ch.tocco.nice2.security.impl.auth.PluggablePasswordEncoder
- All Implemented Interfaces:
PasswordEncoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionencrypt
(String methodName, String[] params, @org.jetbrains.annotations.Nullable byte[] salt, String source) int
boolean
isPasswordEqual
(Object encryptedPass, String rawPass) void
setMethods
(List<PasswordEncodingMethod> methods) void
setPreferredEncryption
(String preferredEncryption) void
setPwdGeneratorChars
(String pwdGeneratorChars) void
setPwdGeneratorLength
(int pwdGeneratorLength) void
setSaltLength
(int saltLength) void
setSecureRandomAlgorithm
(String secureRandomAlgorithm)
-
Constructor Details
-
PluggablePasswordEncoder
public PluggablePasswordEncoder()
-
-
Method Details
-
getPreferredEncryption
-
setPreferredEncryption
@Value("${nice2.pwdEncoder.preferredEncryption}") public void setPreferredEncryption(String preferredEncryption) -
getSecureRandomAlgorithm
-
setSecureRandomAlgorithm
@Value("${nice2.pwdEncoder.secureRandomAlgorithm}") public void setSecureRandomAlgorithm(String secureRandomAlgorithm) -
getSaltLength
public int getSaltLength() -
setSaltLength
@Value("${nice2.pwdEncoder.saltLength}") public void setSaltLength(int saltLength) -
setPwdGeneratorChars
-
setPwdGeneratorLength
@Value("${nice2.pwdGen.length}") public void setPwdGeneratorLength(int pwdGeneratorLength) -
getMethods
-
setMethods
-
encrypt
- Specified by:
encrypt
in interfacePasswordEncoder
-
encrypt
- Specified by:
encrypt
in interfacePasswordEncoder
-
encrypt
public EncodedPassword encrypt(String methodName, String[] params, @Nullable @org.jetbrains.annotations.Nullable byte[] salt, String source) throws PasswordEncodingException - Specified by:
encrypt
in interfacePasswordEncoder
- Throws:
PasswordEncodingException
-
isPasswordEqual
- Specified by:
isPasswordEqual
in interfacePasswordEncoder
-
generatePwd
- Specified by:
generatePwd
in interfacePasswordEncoder
-