Class CryptoUtilJ8ExplicitParamsTest
- java.lang.Object
-
- org.apache.fulcrum.jce.crypto.extended.CryptoUtilJ8ExplicitParamsTest
-
public class CryptoUtilJ8ExplicitParamsTest extends Object
Test suite for crypto functionality- Author:
- Siegfried Goeschl
-
-
Constructor Summary
Constructors Constructor Description CryptoUtilJ8ExplicitParamsTest()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
destroy()
protected static byte[]
generateSalt()
protected char[]
getPassword()
protected File
getTempDataDirectory()
protected File
getTestDataDirectory()
static void
setUp()
void
testBinaryHandling()
Test encryption and decryption of binary datavoid
testPasswordFactory()
Test creating a passwordvoid
testPdfDecryption()
Decrypt a PDF filevoid
testPdfEncryption()
Encrypt a PDF filevoid
testStringEncryption()
Test encryption and decryption of Stringsvoid
testStringHandling()
Test encryption and decryption of Stringsvoid
testStringWithPasswordEncryption()
Test encryption and decryption of Stringsvoid
testTextDecryption()
Decrypt a text filevoid
testTextEncryption()
Encrypt a text file
-
-
-
Constructor Detail
-
CryptoUtilJ8ExplicitParamsTest
public CryptoUtilJ8ExplicitParamsTest()
Constructor
-
-
Method Detail
-
generateSalt
protected static byte[] generateSalt()
-
destroy
@AfterAll public static void destroy()
-
getPassword
protected char[] getPassword()
- Returns:
- Returns the password.
-
getTempDataDirectory
protected File getTempDataDirectory()
- Returns:
- Returns the tempDataDirectory.
-
getTestDataDirectory
protected File getTestDataDirectory()
- Returns:
- Returns the testDataDirectory.
-
testTextEncryption
@Test public void testTextEncryption()
Encrypt a text file
-
testTextDecryption
@Test public void testTextDecryption()
Decrypt a text file
-
testPdfEncryption
@Test public void testPdfEncryption()
Encrypt a PDF file
-
testPdfDecryption
@Test public void testPdfDecryption()
Decrypt a PDF file
-
testStringEncryption
@Test public void testStringEncryption()
Test encryption and decryption of Strings
-
testStringHandling
@Test public void testStringHandling()
Test encryption and decryption of Strings
-
testPasswordFactory
@Test public void testPasswordFactory() throws Exception
Test creating a password- Throws:
Exception
- Generic exception
-
testBinaryHandling
@Test public void testBinaryHandling() throws Exception
Test encryption and decryption of binary data- Throws:
Exception
- Generic exception
-
testStringWithPasswordEncryption
@Test public void testStringWithPasswordEncryption()
Test encryption and decryption of Strings
-
-