You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2020/09/16 09:35:10 UTC

[ws-wss4j] branch 2_2_x-fixes updated: Adding OpenSAMLUtil test

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 2_2_x-fixes
in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git


The following commit(s) were added to refs/heads/2_2_x-fixes by this push:
     new 05950d2  Adding OpenSAMLUtil test
05950d2 is described below

commit 05950d24106e693d26b7b2fb1194c808fb964d42
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Sep 16 10:34:51 2020 +0100

    Adding OpenSAMLUtil test
---
 .../apache/wss4j/common/saml/OpenSAMLUtilTest.java | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/ws-security-common/src/test/java/org/apache/wss4j/common/saml/OpenSAMLUtilTest.java b/ws-security-common/src/test/java/org/apache/wss4j/common/saml/OpenSAMLUtilTest.java
new file mode 100644
index 0000000..ded1136
--- /dev/null
+++ b/ws-security-common/src/test/java/org/apache/wss4j/common/saml/OpenSAMLUtilTest.java
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.wss4j.common.saml;
+
+import org.junit.Test;
+
+/**
+ * Some tests for the Merlin Crypto provider
+ */
+public class OpenSAMLUtilTest {
+
+    @Test
+    public void testInitSamlEngine() throws Exception {
+        OpenSAMLUtil.initSamlEngine();
+
+        // https://issues.apache.org/jira/browse/WSS-678 OpenSAML Decrypter initialization failed
+        new org.opensaml.saml.saml2.encryption.Decrypter(null, null, null);
+    }
+
+}