public interface PasswordHash
Modifier and Type | Method and Description |
---|---|
byte[] |
computeHash(String password,
Object createForId)
Computes password hash.
|
byte[] |
computeHash(String password,
Object createForId,
String commonSalt)
Computes password hash.
|
byte[] computeHash(String password, Object createForId)
password
- The password.createForId
- Id of password owner object.SecurityException
- Thrown if computing hash failed.byte[] computeHash(String password, Object createForId, String commonSalt)
commonSalt
is used instead of common salt
resolved by the implementing class.password
- The password.createForId
- Id of password owner object.commonSalt
- Common salt, always used as part of creating the hash.SecurityException
- Thrown if computing hash failed.Copyright © 2017. All rights reserved.