public class Crypto
extends java.lang.Object
| Constructor and Description |
|---|
Crypto(NinjaProperties ninjaProperties)
Secret is a secret key.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
signHmacSha1(java.lang.String message) |
@Inject public Crypto(NinjaProperties ninjaProperties)
applicationSecret - the secret to use for signing.random - the random generator to be used for generating the secret
=> usually new Random(), but can also be set to e.g. new Random(1) to
test the function.Copyright © 2016 ninjaframework. All Rights Reserved.