public final class StrongIntegerNumberEncryptor extends Object implements IntegerNumberEncryptor
Utility class for easily performing normal-strength encryption of BigInteger objects.
 This class internally holds a StandardPBEBigIntegerEncryptor 
 configured this way:
 
The required steps to use it are:
setPassword(String) or
       setPasswordCharArray(char[])).encrypt(BigInteger) or 
       decrypt(BigInteger) operations.This class is thread-safe.
| Constructor and Description | 
|---|
| StrongIntegerNumberEncryptor()Creates a new instance of StrongIntegerNumberEncryptor. | 
| Modifier and Type | Method and Description | 
|---|---|
| BigInteger | decrypt(BigInteger encryptedNumber)Decrypts a number. | 
| BigInteger | encrypt(BigInteger number)Encrypts a number | 
| void | setPassword(String password)Sets a password. | 
| void | setPasswordCharArray(char[] password)Sets a password, as a char[]. | 
public StrongIntegerNumberEncryptor()
public void setPassword(String password)
password - the password to be set.public void setPasswordCharArray(char[] password)
password - the password to be set.public BigInteger encrypt(BigInteger number)
encrypt in interface IntegerNumberEncryptornumber - the number to be encrypted.StandardPBEBigIntegerEncryptor.encrypt(BigInteger)public BigInteger decrypt(BigInteger encryptedNumber)
decrypt in interface IntegerNumberEncryptorencryptedNumber - the number to be decrypted.StandardPBEBigIntegerEncryptor.decrypt(BigInteger)Copyright © 2017 JBoss by Red Hat. All rights reserved.