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 voiddestroy()protected static byte[]generateSalt()protected char[]getPassword()protected FilegetTempDataDirectory()protected FilegetTestDataDirectory()static voidsetUp()voidtestBinaryHandling()Test encryption and decryption of binary datavoidtestPasswordFactory()Test creating a passwordvoidtestPdfDecryption()Decrypt a PDF filevoidtestPdfEncryption()Encrypt a PDF filevoidtestStringEncryption()Test encryption and decryption of StringsvoidtestStringHandling()Test encryption and decryption of StringsvoidtestStringWithPasswordEncryption()Test encryption and decryption of StringsvoidtestTextDecryption()Decrypt a text filevoidtestTextEncryption()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
-
-