Initialize and close Token Service Vaultless instance
To use Java APIs, user first needs to create an instance of Token Service Vaultless using TokenServiceVaultless(). User needs to create the TokenServiceVaultless() service only once before running the APIs. To close the instance of Token Service Vaultless call closeService().
TokenServiceVaultless()
It is used to construct a TokenServiceVaultless object and start the Token Service Vaultless.
public TokenServiceVaultless(String naeUser, char[] naePswd, String KeyName)
public TokenServiceVaultless(String naeUser, char[] naePswd, String KeyName, AlgoSpec algospec)
Note
It is recommended to use the constructor with AlgoSpec.
Parameters
| Parameter | Description |
|---|---|
| naeUser | Key Manager user with access to the key. |
| naePswd | Key Manager user’s password. |
| KeyName | the key to initialize the token service vaultless. |
| algospec | input for the algorithm used to generate tokens. |
closeService()
Closes the Token Service Vaultless.