Data for generating the SVAULT token. More...
Public Methods | |
SVaultGenTokenInfo (byte flags, byte CKS, byte type, byte from, byte to, String secret, String MK) | |
byte | getFlags () |
void | setFlags (byte flags) |
byte | getCKS () |
void | setCKS (byte cKS) |
byte | getType () |
void | setType (byte type) |
byte | getFrom () |
void | setFrom (byte from) |
byte | getTo () |
void | setTo (byte to) |
String | getSecret () |
void | setSecret (String secret) |
String | getMK () |
void | setMK (String mK) |
Data for generating the SVAULT token.
SVaultGenTokenInfo | ( | byte | flags, |
byte | CKS, | ||
byte | type, | ||
byte | from, | ||
byte | to, | ||
String | secret, | ||
String | MK ) |
flags | Generation options. It can be one of the options in the table below
| ||||||||||||
CKS | Defines the type of checksum for the generation of tokens. It can be one of the options in the table below
| ||||||||||||
type | You must pass TacNDJavaLib.D_SVAULT_T_TKR2 | ||||||||||||
from | Defines the UTF-8 string representation base of the secret for FPE (Format-Preserving-Encryption). It can be one of the options in the table below.
| ||||||||||||
to | Defines the representation base of the token for FPE (Format-Preserving-Encryption). It can be one of the options in the table below.
| ||||||||||||
secret | The secret in UTF-8 which must respect the base defined in from. It must have a minimum size of TacNDJavaLib.D_SVAULT_MIN_TL code points and a maximum of TacNDJavaLib.D_SVAULT_MAX_TL encoding units. | ||||||||||||
MK | Name of the key used for data protection |
byte getFlags | ( | ) |
void setFlags | ( | byte | flags | ) |
flags | See options accepted in SVaultGenTokenInfo(). |
byte getCKS | ( | ) |
void setCKS | ( | byte | cKS | ) |
cKS | See options accepted in SVaultGenTokenInfo(). |
byte getType | ( | ) |
void setType | ( | byte | type | ) |
type | See options accepted in SVaultGenTokenInfo(). |
byte getFrom | ( | ) |
void setFrom | ( | byte | from | ) |
from | See options accepted in SVaultGenTokenInfo(). |
byte getTo | ( | ) |
void setTo | ( | byte | to | ) |
to | See options accepted in SVaultGenTokenInfo(). |
String getSecret | ( | ) |
void setSecret | ( | String | secret | ) |
secret | See options accepted in SVaultGenTokenInfo(). |
String getMK | ( | ) |
void setMK | ( | String | mK | ) |
mK | Name of the key used for data protection |