public class XadesSignerTest extends AbstractSignatureTest
Class that defines tests for XadesSigner.
@Firma and TS@ Web Services Integration Platform.
| Constructor and Description |
|---|
XadesSignerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testCoSignDetached()
Tests for generating detached co-signatures.
|
void |
testCoSignEnveloped()
Tests for generating enveloped co-signatures.
|
void |
testCoSignEnveloping()
Tests for generating enveloping co-signatures.
|
void |
testCoSignExternallyDetached()
Tests for generating externally detached co-signatures.
|
void |
testCoSignInvalidValues()
Tests for
XadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values. |
void |
testCoSignWithTimestamp()
Tests for generating XAdES co-signatures with timestamp.
|
void |
testCounterSignCoSign()
Test for generating a counter-signature from a co-signature.
|
void |
testCounterSignCounterCoSign()
Test for generating a counter-signature from a counter-signature generated from a co-signature.
|
void |
testCounterSignCounterSign()
Test for generating a counter-signature from a counter-signature.
|
void |
testCounterSignDetached()
Tests for generating detached counter-signatures.
|
void |
testCounterSignInvalidValues()
Tests for
XadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values. |
void |
testCounterSignWithTimestamp()
Tests for generating XAdES counter-signatures with timestamp.
|
void |
testGetSignedData()
Test for methods
XadesSigner.getSignedData(byte[]). |
void |
testSignBinaryDetached()
Tests for signing a binary file as a detached signature.
|
void |
testSignBinaryEnveloped()
Tests for signing a binary file as an enveloped signature.
|
void |
testSignBinaryEnveloping()
Tests for signing a binary file as an enveloping signature.
|
void |
testSignExternallyDetached()
Tests for signing as an externally detached signature.
|
void |
testSignInvalidValues()
Tests for
XadesSigner.sign(byte[], String, String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values. |
void |
testSignOtherAlgorithms()
Tests for signing a binary file as an enveloping signature with SHA-512.
|
void |
testSignWithPolicy()
Tests for signing a XML file as an enveloping signature with signature policies.
|
void |
testSignWithTimestamp()
Tests for generating XAdES signatures with timestamp.
|
void |
testSignXmlDetached()
Tests for signing a XML file as a detached signature.
|
void |
testSignXmlEnveloped()
Tests for signing a XML file as an enveloped signature.
|
void |
testSignXmlEnveloping()
Tests for signing a XML file as an enveloping signature.
|
void |
testUpgrade()
Tests for
XadesSigner.upgrade(byte[], List). |
void |
testValidate()
Tests for
XadesSigner.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 void testSignInvalidValues()
throws java.lang.Exception
XadesSigner.sign(byte[], String, String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values.java.lang.Exception - If the test fails.public void testSignBinaryEnveloping()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignXmlEnveloping()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignBinaryEnveloped()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignXmlEnveloped()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignBinaryDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignXmlDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignExternallyDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignOtherAlgorithms()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignWithPolicy()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCoSignInvalidValues()
throws java.lang.Exception
XadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values.java.lang.Exception - If the test fails.public void testCoSignEnveloping()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCoSignEnveloped()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCoSignDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCoSignExternallyDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCounterSignInvalidValues()
throws java.lang.Exception
XadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String) with invalid
values.java.lang.Exception - If the test fails.public void testCounterSignDetached()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCounterSignCoSign()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCounterSignCounterSign()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testCounterSignCounterCoSign()
throws java.lang.Exception
java.lang.Exception - If the test fails.public void testSignWithTimestamp()
public void testCoSignWithTimestamp()
public void testCounterSignWithTimestamp()
public void testValidate()
XadesSigner.verifySignature(byte[]).public void testUpgrade()
XadesSigner.upgrade(byte[], List).public final void testGetSignedData()
XadesSigner.getSignedData(byte[]).