public class ValidationTokenGenerator extends Object
| Constructor and Description |
|---|
ValidationTokenGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generate(String type,
String value,
PrivateKey privateKey)
Generates the validation token based on application's private key.
|
static String |
generate(String type,
String value,
PrivateKey privateKey,
Password privateKeyPassword)
Generates the validation token based on application's private key.
|
public static String generate(String type, String value, PrivateKey privateKey) throws Exception
type - The type of the identity.value - The identity value.privateKey - The application's private key.Exception - if validation token could not be generated.public static String generate(String type, String value, PrivateKey privateKey, Password privateKeyPassword) throws Exception
type - The type of the identity.value - The identity value.privateKey - The application's private key protected with password.privateKeyPassword - The private key password.Exception - if validation token could not be generated.Copyright © 2016. All rights reserved.