Java API
HSM Dinamo
Loading...
Looking for...
No entries found
SVaultGenTokenInfo Class Reference

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)
 

Detailed description

Data for generating the SVAULT token.

Builders and Destructors

SVaultGenTokenInfo()

SVaultGenTokenInfo ( byte flags,
byte CKS,
byte type,
byte from,
byte to,
String secret,
String MK )
Parameters
flagsGeneration options. It can be one of the options in the table below
Value Operation
0 It does not use masks for token generation or secret recovery.
TacNDJavaLib.D_SVAULT_F_MASK_TOKEN It uses masks to generate the token. The mask can be passed when recovering the token or secret.
TacNDJavaLib.D_SVAULT_F_MASK_SECRET It uses masks to generate the secret. The mask can be passed when recovering the token or secret.
CKSDefines the type of checksum for the generation of tokens. It can be one of the options in the table below
Value Operation
TacNDJavaLib.D_SVAULT_CKS_NULL It doesn't generate a checksum. It only generates the token.
TacNDJavaLib.D_SVAULT_CKS_CPF Generates the 2 check digits in the CPF (Cadastro de Pessoas Físicas) standard on the token. The secret must contain only numbers and include the check digits.
TacNDJavaLib.D_SVAULT_CKS_CNPJ Generates the 2 verification digits in the CNPJ (Cadastro Nacional da Pessoa Jurídica) standard on the token. The secret must contain only numbers and include the check digits.
TacNDJavaLib.D_SVAULT_CKS_PAN Generates a PAN (Primary Account Number) with a valid check digit in the token. The secret must be complete and contain only numbers.
TacNDJavaLib.D_SVAULT_CKS_IEL Generates the 2 check digits in the pattern of the voter registration number on the token. The secret must contain only numbers and include the check digits.
typeYou must pass TacNDJavaLib.D_SVAULT_T_TKR2
fromDefines 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.
Value Operation
TacNDJavaLib.D_SVAULT_BASE10 Decimals only.
TacNDJavaLib.D_SVAULT_BASE62 Characters that are letters A-Z, a-z or the numbers 0-9.
toDefines the representation base of the token for FPE (Format-Preserving-Encryption). It can be one of the options in the table below.
Value Operation
TacNDJavaLib.D_SVAULT_BASE10 Decimals only.
TacNDJavaLib.D_SVAULT_BASE62 Characters that are letters A-Z, a-z or the numbers 0-9.
secretThe 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.
MKName of the key used for data protection

Function documentation

getFlags()

byte getFlags ( )
Return
flags

setFlags()

void setFlags ( byte flags)
Parameters
flagsSee options accepted in SVaultGenTokenInfo().

getCKS()

byte getCKS ( )
Return
Checksum

setCKS()

void setCKS ( byte cKS)
Parameters
cKSSee options accepted in SVaultGenTokenInfo().

getType()

byte getType ( )
Return
Type

setType()

void setType ( byte type)
Parameters
typeSee options accepted in SVaultGenTokenInfo().

getFrom()

byte getFrom ( )
Return
Home base representation.

setFrom()

void setFrom ( byte from)
Parameters
fromSee options accepted in SVaultGenTokenInfo().

getTo()

byte getTo ( )
Return
Target representation base

setTo()

void setTo ( byte to)
Parameters
toSee options accepted in SVaultGenTokenInfo().

getSecret()

String getSecret ( )
Return
Secret

setSecret()

void setSecret ( String secret)
Parameters
secretSee options accepted in SVaultGenTokenInfo().

getMK()

String getMK ( )
Return
MK key name

setMK()

void setMK ( String mK)
Parameters
mKName of the key used for data protection