agave-common/common-core/src/main/java/org/iplantc/service/common/auth/AgaveMyProxyLogon.java
/**
	 * Connects to the MyProxy server at the desired host and port. Requires
	 * host authentication via SSL. The host's certificate subject must match
	 * the requested hostname. If CA certificates are found in the standard GSI
	 * locations, they will be used to verify the server's certificate. If trust
	 * roots are requested and no CA certificates are found, the server's
	 * certificate will still be accepted.
	 */
Connects to the MyProxy server at the desired host and port. Requires
host authentication via SSL. The host's certificate subject must match
the requested hostname. If CA certificates are found in the standard GSI
locations, they will be used to verify the server's certificate. If trust
roots are requested and no CA certificates are found, the server's
certificate will still be accepted.
Connects to the MyProxy server at the desired host and port . Requires host authentication via SSL . The host ' s certificate subject must match the requested hostname . If CA certificates are found in the standard GSI locations they will be used to verify the server ' s certificate . If trust roots are requested and no CA certificates are found the server ' s certificate will still be accepted .
public void connect() throws IOException, GeneralSecurityException {
		SSLContext sc = SSLContext.getInstance("SSL");
		TrustManager[] trustAllCerts = new TrustManager[] { new MyTrustManager(getTrustRootPath()) };
		sc.init(null, trustAllCerts, new java.security.SecureRandom());
		SSLSocketFactory sf = sc.getSocketFactory();
		this.socket = (SSLSocket) sf.createSocket(this.host, this.port);
		this.socket.setEnabledProtocols(new String[] { "SSLv3" });
		this.socket.startHandshake();
		this.socketIn = new BufferedInputStream(this.socket.getInputStream());
		this.socketOut = new BufferedOutputStream(this.socket.getOutputStream());
		this.state = State.CONNECTED;
	}
public void connect ( ) throws IOException , GeneralSecurityException { SSLContext sc = SSLContext . getInstance ( "SSL" ) ; TrustManager [ ] trustAllCerts = new TrustManager [ ] { new MyTrustManager ( getTrustRootPath ( ) ) } ; sc . init ( null , trustAllCerts , new java . security . SecureRandom ( ) ) ; SSLSocketFactory sf = sc . getSocketFactory ( ) ; this . socket = ( SSLSocket ) sf . createSocket ( this . host , this . port ) ; this . socket . setEnabledProtocols ( new String [ ] { "SSLv3" } ) ; this . socket . startHandshake ( ) ; this . socketIn = new BufferedInputStream ( this . socket . getInputStream ( ) ) ; this . socketOut = new BufferedOutputStream ( this . socket . getOutputStream ( ) ) ; this . state = State . CONNECTED ; }
Connects to the MyProxy server at the desired host and port.
Connects to the MyProxy server at the desired host and port .