remove timezoned call to Date.toString() - SignatureProperties don't necessarily need an Id attribute
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2ec623fe0b
commit
1ce039753a
@ -240,8 +240,7 @@ public class OOXMLSignatureFacet extends SignatureFacet {
|
|||||||
List<SignatureProperty> signaturePropertyContent = new ArrayList<SignatureProperty>();
|
List<SignatureProperty> signaturePropertyContent = new ArrayList<SignatureProperty>();
|
||||||
signaturePropertyContent.add(signatureTimeSignatureProperty);
|
signaturePropertyContent.add(signatureTimeSignatureProperty);
|
||||||
SignatureProperties signatureProperties = getSignatureFactory()
|
SignatureProperties signatureProperties = getSignatureFactory()
|
||||||
.newSignatureProperties(signaturePropertyContent,
|
.newSignatureProperties(signaturePropertyContent, null);
|
||||||
"id-signature-time-" + signatureConfig.getExecutionTime());
|
|
||||||
objectContent.add(signatureProperties);
|
objectContent.add(signatureProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,11 +184,11 @@ public class TestSignatureInfo {
|
|||||||
signatureConfig.setOpcPackage(pkg2);
|
signatureConfig.setOpcPackage(pkg2);
|
||||||
assertTrue(si.verifySignature());
|
assertTrue(si.verifySignature());
|
||||||
String signExp =
|
String signExp =
|
||||||
"Lxp2LFa+0YWGOBL8zVdf7SWRQiNK/Tt85W+kmH1bunlua030BKbQc6yWIIk6gN6jCTtrJ1h2eMRbLwymygOUpM"+
|
"HDdvgXblLMiE6gZSoRSQUof6+aedrhK9i51we1n+4Q/ioqrQCeh5UkfQ8lD63nV4ZDbM4/pIVFi6VpMpN/HMnA"+
|
||||||
"dd0MeQY3mMWRSO9qEW87SQvyDqBh71zXWW3ZYET+vJWr3BCNEtXCy8jZvgXqILBGk5vMJW/EYaUEhBcDGjCm0=";
|
"UHeVdVUCVTgpn3Iz21Ymcd9/aerNov2BjHLhS8X3oUE+XTu2TbJLNmms0I9G4lfg6HWP9t7ZCXBXy6vyCMArc=";
|
||||||
String signAct = si.getSignatureParts().iterator().next().
|
String signAct = si.getSignatureParts().iterator().next().
|
||||||
getSignatureDocument().getSignature().getSignatureValue().getStringValue();
|
getSignatureDocument().getSignature().getSignatureValue().getStringValue();
|
||||||
// assertEquals(signExp, signAct);
|
assertEquals(signExp, signAct);
|
||||||
|
|
||||||
if (new File("build").exists()) {
|
if (new File("build").exists()) {
|
||||||
// write out to build, for further comparison between local and Jenkins box
|
// write out to build, for further comparison between local and Jenkins box
|
||||||
|
Loading…
Reference in New Issue
Block a user