summaryrefslogtreecommitdiff
path: root/utils/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'utils/src/main/java/at/gv')
-rw-r--r--utils/src/main/java/at/gv/egiz/idlink/IdentityLinkFactory.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/utils/src/main/java/at/gv/egiz/idlink/IdentityLinkFactory.java b/utils/src/main/java/at/gv/egiz/idlink/IdentityLinkFactory.java
index 9cc44275..0672e6b4 100644
--- a/utils/src/main/java/at/gv/egiz/idlink/IdentityLinkFactory.java
+++ b/utils/src/main/java/at/gv/egiz/idlink/IdentityLinkFactory.java
@@ -298,11 +298,17 @@ public class IdentityLinkFactory {
PrivateKey key) throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException, XMLSignatureException,
MarshalException {
-
- XMLSignatureFactory signatureFactory = XMLSignatureFactory.getInstance();
-
- KeyInfoFactory keyInfoFactory = KeyInfoFactory.getInstance();
-
+
+ signIdentityLink(assertion, certificate, key,
+ XMLSignatureFactory.getInstance(), KeyInfoFactory.getInstance());
+ }
+
+ public void signIdentityLink(Element assertion, X509Certificate certificate,
+ PrivateKey key, XMLSignatureFactory signatureFactory,
+ KeyInfoFactory keyInfoFactory) throws NoSuchAlgorithmException,
+ InvalidAlgorithmParameterException, XMLSignatureException,
+ MarshalException {
+
List<Reference> references = new ArrayList<Reference>();
// Reference #1