class JDBCHashStrategy extends AnyRef
Determines how the hashing is computed in the implementation
You can implement this to provide a different hashing strategy to the default.
- Alphabetic
- By Inheritance
- JDBCHashStrategy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JDBCHashStrategy(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
computeHash(password: String, salt: String, version: Int): String
Compute the hashed password given the unhashed password and the salt * @param password the unhashed password
Compute the hashed password given the unhashed password and the salt * @param password the unhashed password
- salt
the salt
- version
the nonce version to use
- returns
the hashed password
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateSalt(): String
Compute a random salt.
Compute a random salt. * @return a non null salt value
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getHashedStoredPwd(row: JsonArray): String
Retrieve the hashed password from the result of the authentication query * @param row the row
Retrieve the hashed password from the result of the authentication query * @param row the row
- returns
the hashed password
-
def
getSalt(row: JsonArray): String
Retrieve the salt from the result of the authentication query * @param row the row
Retrieve the salt from the result of the authentication query * @param row the row
- returns
the salt
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setNonces(nonces: JsonArray): Unit
Sets a ordered list of nonces where each position corresponds to a version.
Sets a ordered list of nonces where each position corresponds to a version.
The nonces are supposed not to be stored in the underlying jdbc storage but to be provided as a application configuration. The idea is to add one extra variable to the hash function in order to make breaking the passwords using rainbow tables or precomputed hashes harder. Leaving the attacker only with the brute force approach.
Nonces are dependent on the implementation. E.g.: for the SHA512 they are extra salt used during the hashing, for the PBKDF2 they map the number of iterations the algorithm should take * @param nonces a json array.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )