From ead5dc6d62e7fd6325ea164625b02a6b6fbb226e Mon Sep 17 00:00:00 2001 From: wbauer Date: Fri, 5 Sep 2008 09:50:12 +0000 Subject: Added SSL configuration to BKUOnline git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@15 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/bku/online/conf/SSLConfigTest.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 BKUOnline/src/test/java/at/gv/egiz/bku/online/conf/SSLConfigTest.java (limited to 'BKUOnline/src/test/java') diff --git a/BKUOnline/src/test/java/at/gv/egiz/bku/online/conf/SSLConfigTest.java b/BKUOnline/src/test/java/at/gv/egiz/bku/online/conf/SSLConfigTest.java new file mode 100644 index 00000000..59ff693a --- /dev/null +++ b/BKUOnline/src/test/java/at/gv/egiz/bku/online/conf/SSLConfigTest.java @@ -0,0 +1,37 @@ +package at.gv.egiz.bku.online.conf; + +import java.net.URL; + +import javax.net.ssl.HttpsURLConnection; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +public class SSLConfigTest { + + private SpringConfigurator cfg; + private ApplicationContext ctx; + + @Before + public void setUp() throws Exception { + ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); + + } + + @Test + public void testConnect() throws Exception { + String url = "https://apps.egiz.gv.at/exchange-moa-id-auth/VerifyIdentityLink?MOASessionID=8151862969943601574"; + URL u = new URL(url); + HttpsURLConnection uc = (HttpsURLConnection) u.openConnection(); + uc.connect(); + System.out.println(uc.getCipherSuite()); + } + + @After + public void shutDown() { + + } +} -- cgit v1.2.3