mirror of https://github.com/apache/poi.git
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
834d3fba9f
commit
f96c8e0f94
|
@ -131,7 +131,7 @@ public class SignatureConfig {
|
||||||
* with certain namespaces, so this EventListener is used to interfere
|
* with certain namespaces, so this EventListener is used to interfere
|
||||||
* with the marshalling process.
|
* with the marshalling process.
|
||||||
*/
|
*/
|
||||||
EventListener signCreationListener = null;
|
EventListener signatureMarshalListener = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map of namespace uris to prefix
|
* Map of namespace uris to prefix
|
||||||
|
@ -160,12 +160,12 @@ public class SignatureConfig {
|
||||||
|
|
||||||
if (onlyValidation) return;
|
if (onlyValidation) return;
|
||||||
|
|
||||||
if (signCreationListener == null) {
|
if (signatureMarshalListener == null) {
|
||||||
signCreationListener = new SignatureMarshalListener();
|
signatureMarshalListener = new SignatureMarshalListener();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signCreationListener instanceof SignatureConfigurable) {
|
if (signatureMarshalListener instanceof SignatureConfigurable) {
|
||||||
((SignatureConfigurable)signCreationListener).setSignatureConfig(this);
|
((SignatureConfigurable)signatureMarshalListener).setSignatureConfig(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tspService != null) {
|
if (tspService != null) {
|
||||||
|
@ -408,11 +408,11 @@ public class SignatureConfig {
|
||||||
public void setXadesIssuerNameNoReverseOrder(boolean xadesIssuerNameNoReverseOrder) {
|
public void setXadesIssuerNameNoReverseOrder(boolean xadesIssuerNameNoReverseOrder) {
|
||||||
this.xadesIssuerNameNoReverseOrder = xadesIssuerNameNoReverseOrder;
|
this.xadesIssuerNameNoReverseOrder = xadesIssuerNameNoReverseOrder;
|
||||||
}
|
}
|
||||||
public EventListener getSignCreationListener() {
|
public EventListener getSignatureMarshalListener() {
|
||||||
return signCreationListener;
|
return signatureMarshalListener;
|
||||||
}
|
}
|
||||||
public void setSignCreationListener(EventListener signCreationListener) {
|
public void setSignatureMarshalListener(EventListener signatureMarshalListener) {
|
||||||
this.signCreationListener = signCreationListener;
|
this.signatureMarshalListener = signatureMarshalListener;
|
||||||
}
|
}
|
||||||
public Map<String, String> getNamespacePrefixes() {
|
public Map<String, String> getNamespacePrefixes() {
|
||||||
return namespacePrefixes;
|
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
|
// 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 ...
|
// normal way to interfere with, so we need to add the namespace under the hand ...
|
||||||
EventTarget target = (EventTarget)document;
|
EventTarget target = (EventTarget)document;
|
||||||
EventListener creationListener = signatureConfig.getSignCreationListener();
|
EventListener creationListener = signatureConfig.getSignatureMarshalListener();
|
||||||
if (creationListener != null) {
|
if (creationListener != null) {
|
||||||
if (creationListener instanceof SignatureMarshalListener) {
|
if (creationListener instanceof SignatureMarshalListener) {
|
||||||
((SignatureMarshalListener)creationListener).setEventTarget(target);
|
((SignatureMarshalListener)creationListener).setEventTarget(target);
|
||||||
|
|
Loading…
Reference in New Issue