forgot to rename get/setter
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/xml_signature@1628031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ab5a1dd5d3
commit
4fb7957b52
@ -131,7 +131,7 @@ public class SignatureConfig {
|
||||
* with certain namespaces, so this EventListener is used to interfere
|
||||
* with the marshalling process.
|
||||
*/
|
||||
EventListener signCreationListener = null;
|
||||
EventListener signatureMarshalListener = null;
|
||||
|
||||
/**
|
||||
* Map of namespace uris to prefix
|
||||
@ -160,12 +160,12 @@ public class SignatureConfig {
|
||||
|
||||
if (onlyValidation) return;
|
||||
|
||||
if (signCreationListener == null) {
|
||||
signCreationListener = new SignatureMarshalListener();
|
||||
if (signatureMarshalListener == null) {
|
||||
signatureMarshalListener = new SignatureMarshalListener();
|
||||
}
|
||||
|
||||
if (signCreationListener instanceof SignatureConfigurable) {
|
||||
((SignatureConfigurable)signCreationListener).setSignatureConfig(this);
|
||||
if (signatureMarshalListener instanceof SignatureConfigurable) {
|
||||
((SignatureConfigurable)signatureMarshalListener).setSignatureConfig(this);
|
||||
}
|
||||
|
||||
if (tspService != null) {
|
||||
@ -408,11 +408,11 @@ public class SignatureConfig {
|
||||
public void setXadesIssuerNameNoReverseOrder(boolean xadesIssuerNameNoReverseOrder) {
|
||||
this.xadesIssuerNameNoReverseOrder = xadesIssuerNameNoReverseOrder;
|
||||
}
|
||||
public EventListener getSignCreationListener() {
|
||||
return signCreationListener;
|
||||
public EventListener getSignatureMarshalListener() {
|
||||
return signatureMarshalListener;
|
||||
}
|
||||
public void setSignCreationListener(EventListener signCreationListener) {
|
||||
this.signCreationListener = signCreationListener;
|
||||
public void setSignatureMarshalListener(EventListener signatureMarshalListener) {
|
||||
this.signatureMarshalListener = signatureMarshalListener;
|
||||
}
|
||||
public Map<String, String> getNamespacePrefixes() {
|
||||
return namespacePrefixes;
|
||||
|
@ -378,7 +378,7 @@ public class SignatureInfo implements SignatureConfigurable {
|
||||
// it's necessary to explicitly set the mdssi namespace, but the sign() method has no
|
||||
// normal way to interfere with, so we need to add the namespace under the hand ...
|
||||
EventTarget target = (EventTarget)document;
|
||||
EventListener creationListener = signatureConfig.getSignCreationListener();
|
||||
EventListener creationListener = signatureConfig.getSignatureMarshalListener();
|
||||
if (creationListener != null) {
|
||||
if (creationListener instanceof SignatureMarshalListener) {
|
||||
((SignatureMarshalListener)creationListener).setEventTarget(target);
|
||||
|
Loading…
Reference in New Issue
Block a user