Nuxeo ECM Projects 5.6-RC1

edu.yale.its.tp.cas.util
Class SecureURL

java.lang.Object
  extended by edu.yale.its.tp.cas.util.SecureURL

public class SecureURL
extends Object

A class housing some utility functions exposing secure URL validation and content retrieval. The rules are intended to be about as restrictive as a common browser with respect to server-certificate validation.


Constructor Summary
SecureURL()
           
 
Method Summary
static void main(String[] args)
          For testing only...
static String retrieve(String url)
          Retrieve the contents from the given URL as a String, assuming the URL's server matches what we expect it to match.
static String retrieve(String url, Boolean force_https)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureURL

public SecureURL()
Method Detail

main

public static void main(String[] args)
                 throws IOException
For testing only...

Throws:
IOException

retrieve

public static String retrieve(String url)
                       throws IOException
Retrieve the contents from the given URL as a String, assuming the URL's server matches what we expect it to match.

Throws:
IOException

retrieve

public static String retrieve(String url,
                              Boolean force_https)
                       throws IOException
Throws:
IOException

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.