@Component(value="cuba_BCryptEncryptionModule") public class BCryptEncryptionModule extends java.lang.Object implements EncryptionModule
Constructor and Description |
---|
BCryptEncryptionModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(User user,
java.lang.String rawPassword) |
HashDescriptor |
getHash(java.lang.String content) |
java.lang.String |
getHash(java.lang.String content,
java.lang.String salt) |
java.lang.String |
getHashMethod() |
java.lang.String |
getPasswordHash(java.util.UUID userId,
java.lang.String password) |
java.lang.String |
getPlainHash(java.lang.String content)
Deprecated.
|
public java.lang.String getHashMethod()
getHashMethod
in interface EncryptionModule
public HashDescriptor getHash(java.lang.String content)
getHash
in interface EncryptionModule
public java.lang.String getPasswordHash(java.util.UUID userId, java.lang.String password)
getPasswordHash
in interface EncryptionModule
public java.lang.String getHash(java.lang.String content, java.lang.String salt)
getHash
in interface EncryptionModule
@Deprecated public java.lang.String getPlainHash(java.lang.String content)
getPlainHash
in interface EncryptionModule
public boolean checkPassword(User user, java.lang.String rawPassword)
checkPassword
in interface EncryptionModule