public class Crypto extends Object
Constructor and Description |
---|
Crypto(NinjaProperties ninjaProperties)
Secret is a secret key.
|
@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 © 2019 ninjaframework. All rights reserved.