Changeset 10f5e84 for axis/FeddCommand.java
- Timestamp:
- Mar 31, 2011 10:07:29 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 9f8dbc1
- Parents:
- 56baf92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
axis/FeddCommand.java
r56baf92 r10f5e84 1 1 import edu.isi.www.fedd_types.*; 2 2 import edu.isi.www.fedd_wsdl.*; 3 import java.net.URL; 3 import java.net.*; 4 import java.util.*; 5 4 6 import net.deterlab.isi.XTrustProvider; 5 7 import net.deterlab.isi.Fedid; 6 8 7 class FeddCommand { 9 import javax.net.ssl.*; 10 11 public class FeddCommand { 12 13 static { setUpSecurity(); } 8 14 9 15 static class ExperimentLabels { … … 43 49 System.setProperty("javax.net.ssl.keyStore", keyStore); 44 50 System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword); 51 52 } 53 54 static public void clearSSLSessionCache() { 55 try { 56 SSLContext sctxt = SSLContext.getDefault(); 57 SSLSessionContext ssctxt = sctxt.getClientSessionContext(); 58 Enumeration<byte[]> e = ssctxt.getIds(); 59 while (e.hasMoreElements()) { 60 SSLSession s = ssctxt.getSession(e.nextElement()); 61 s.invalidate(); 62 System.err.println("invalidated " + s); 63 } 64 } 65 catch (Exception e) { System.err.println(e); } 45 66 } 46 67 … … 50 71 * Boilerplate web services access stuff. 51 72 */ 73 clearSSLSessionCache(); 52 74 FeddServiceLocator service = new FeddServiceLocator(); 53 75 FeddPortType port = service.getfeddPort(new URL(server));
Note: See TracChangeset
for help on using the changeset viewer.