public class PadesSignerTest extends AbstractSignatureTest
Class that defines tests for PadesSigner.
@Firma and TS@ Web Services Integration Platform.
| Constructor and Description |
|---|
PadesSignerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCoSign()
|
void |
testCoSignWithRubric()
|
void |
testCounter()
|
void |
testCounterSignWithRubric()
Test for method {@link PadesSigner#counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String, String).
|
void |
testGetSignedData()
Test for method
PadesSigner.getSignedData(byte[]). |
void |
testGetSignedDataParamNull()
Test for method
PadesSigner.getSignedData(byte[]). |
void |
testSign()
|
void |
testSignWithRubric()
Test for method {@link PadesSigner#sign(byte[], String, String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).
|
void |
testSignWithTimestamp()
|
void |
testUpgrade()
Tests for
PadesSigner.upgrade(byte[], List). |
void |
testValidate()
Tests for
PadesSigner.verifySignature(byte[]). |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toStringpublic final void testSign()
throws java.lang.Exception
java.lang.Exception - If the test fails.public final void testSignWithTimestamp()
public final void testUpgrade()
PadesSigner.upgrade(byte[], List).public final void testValidate()
PadesSigner.verifySignature(byte[]).public final void testGetSignedData()
PadesSigner.getSignedData(byte[]).public final void testGetSignedDataParamNull()
PadesSigner.getSignedData(byte[]).public final void testCoSign()
throws java.lang.Exception
PadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).java.lang.Exception - If the method fails.public final void testCounter()
throws java.lang.Exception
PadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).java.lang.Exception - If the method fails.public final void testSignWithRubric()
throws java.lang.Exception
java.lang.Exception - If the method fails.public final void testCoSignWithRubric()
throws java.lang.Exception
PadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).java.lang.Exception - If the method fails.public final void testCounterSignWithRubric()
throws java.lang.Exception
java.lang.Exception - If the method fails.