nl.nikhef.slcshttps
Class TestSURFCA

java.lang.Object
  extended by nl.nikhef.slcshttps.TestSURFCA

public class TestSURFCA
extends Object

Test class providing a main(String[]) method to test SURFCAHttps and PKCS12Https. It needs as command line argument an address will be be `dumped' using a HttpsURLConnection using a client side certificate. Use for example

"https://www.nikhef.nl/~msalle/cert/showcert.php?nohtml=1"

You will also need to set properties "nl.nikhef.slcshttps.CERT_URL" and "nl.nikhef.slcshttps.AUTH_URL".

Version:
0.2
Author:
Mischa Sallé
See Also:
SURFCAHttps, PKCS12Https

Constructor Summary
TestSURFCA()
           
 
Method Summary
private static void dumpConnection(String stringURL)
          Helper method to open a HttpsURLConnection to stringURL and dump the server response to stdout.
static void main(String[] args)
          Main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSURFCA

public TestSURFCA()
Method Detail

main

public static void main(String[] args)
Main method.

Parameters:
args - String[], command line argument, should be the URL to dump to stdout
See Also:
dumpConnection(String)

dumpConnection

private static void dumpConnection(String stringURL)
                            throws IOException,
                                   MalformedURLException
Helper method to open a HttpsURLConnection to stringURL and dump the server response to stdout.

Parameters:
stringURL - URL to connect to and dump
Throws:
IOException - when reading goes wrong
MalformedURLException - when string doesn't denote a valid URL


nl.nikhef.slcshttps Mischa Sallé - msalle(AT)nikhef.nl