public class T_Cipher extends T_Generic
Modifier and Type | Field and Description |
---|---|
(package private) org.apache.derby.iapi.services.crypto.CipherProvider |
deEngine |
(package private) org.apache.derby.iapi.services.crypto.CipherProvider |
enEngine |
(package private) org.apache.derby.iapi.services.crypto.CipherFactory |
factory |
(package private) byte[] |
IV |
(package private) java.security.Key |
secretKey |
private static java.lang.String |
testService |
out, shortModuleToTestName, startParams
Constructor and Description |
---|
T_Cipher() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
byteArrayIdentical(byte[] compare,
byte[] original,
int offset,
int length) |
protected void |
check(byte[] cleartext,
int offset,
int length,
java.io.RandomAccessFile infile) |
private void |
deleteFile(java.io.File f)
Delete a file in a Privileged block as these tests are
run under the embedded engine code.
|
protected java.lang.String |
getAlgorithm() |
java.lang.String |
getModuleToTestProtocolName()
Get the name of the protocol for the module to test.
|
protected java.lang.String |
getProvider() |
void |
runTests()
Run the test.
|
protected void |
setupCiphers(java.lang.String bootPassword) |
private static java.lang.Object |
startSystemModule(java.lang.String factoryInterface)
Privileged startup.
|
protected void |
test(byte[] cleartext,
int offset,
int length,
java.io.RandomAccessFile outfile) |
boot, Execute, FAIL, PASS, REPORT, stop, UnitTestDuration, UnitTestType
private static final java.lang.String testService
org.apache.derby.iapi.services.crypto.CipherProvider enEngine
org.apache.derby.iapi.services.crypto.CipherProvider deEngine
java.security.Key secretKey
byte[] IV
org.apache.derby.iapi.services.crypto.CipherFactory factory
public java.lang.String getModuleToTestProtocolName()
T_Generic
getModuleToTestProtocolName
in class T_Generic
protected java.lang.String getAlgorithm()
protected java.lang.String getProvider()
public void runTests() throws T_Fail
T_Generic
protected void setupCiphers(java.lang.String bootPassword) throws T_Fail, org.apache.derby.iapi.error.StandardException
T_Fail
org.apache.derby.iapi.error.StandardException
protected void test(byte[] cleartext, int offset, int length, java.io.RandomAccessFile outfile) throws T_Fail, org.apache.derby.iapi.error.StandardException, java.io.IOException
T_Fail
org.apache.derby.iapi.error.StandardException
java.io.IOException
protected void check(byte[] cleartext, int offset, int length, java.io.RandomAccessFile infile) throws java.io.IOException, T_Fail, org.apache.derby.iapi.error.StandardException
java.io.IOException
T_Fail
org.apache.derby.iapi.error.StandardException
protected boolean byteArrayIdentical(byte[] compare, byte[] original, int offset, int length)
private void deleteFile(java.io.File f)
private static java.lang.Object startSystemModule(java.lang.String factoryInterface) throws org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.error.StandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.