Package COM.claymoresystems.sslg

Examples of COM.claymoresystems.sslg.SSLPolicyInt


                                 rootFile,iex);
            }
            tmpContext.loadEAYKeyFile(keyStoreFile,keyPass);
      tmpContext.useRandomnessFile(randomFile,keyPass);
     
      SSLPolicyInt policy=new SSLPolicyInt();
      policy.requireClientAuth(clientAuth);
            policy.handshakeOnConnect(false);
            policy.waitOnClose(false);
            short [] enabledCiphers = getEnabledCiphers(policy.getCipherSuites());
            if( enabledCiphers != null ) {
                policy.setCipherSuites(enabledCiphers);
            }
            tmpContext.setPolicy(policy);
      context=tmpContext;
  } catch (Exception e){
      logger.info("Error initializing SocketFactory",e);
View Full Code Here


    public Object[] getPeerCertificateChain(boolean force)
        throws IOException {
        Vector v=ssl.getCertificateChain();

  if(v == null && force) {
      SSLPolicyInt policy=new SSLPolicyInt();
      policy.requireClientAuth(true);
      policy.handshakeOnConnect(false);
      policy.waitOnClose(false);
      ssl.renegotiate(policy);
      v = ssl.getCertificateChain();
  }

        if(v==null)
View Full Code Here

TOP

Related Classes of COM.claymoresystems.sslg.SSLPolicyInt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.