Package javax.security.cert

Examples of javax.security.cert.X509Certificate


      }
   }

   protected java.security.cert.X509Certificate[] getX509Certificates(SSLSession session) throws IOException
   {
      X509Certificate jsseCerts[] = null;
      try
      {
         jsseCerts = session.getPeerCertificateChain();
      }
      catch(Throwable ex)
View Full Code Here


        socket.setNeedClientAuth(true);
        socket.startHandshake();
    }

    private Object[] getX509Certs() {
        X509Certificate certs[] = null;
        try {
            certs = session.getPeerCertificateChain();
        } catch (Throwable ex) {
            // Get rid of the warning in the logs when no Client-Cert is
            // available
View Full Code Here

  protected void verify(String paramString, SSLSession paramSSLSession)
    throws Exception
  {
    X509Certificate[] arrayOfX509Certificate = paramSSLSession.getPeerCertificateChain();
    X509Certificate localX509Certificate = arrayOfX509Certificate[0];
    Principal localPrincipal = localX509Certificate.getSubjectDN();
    String str1 = String.valueOf(localPrincipal);
    int i = str1.indexOf("CN=");
    if (i < 0)
      throw new UnknownHostException(Trace.getMessage(136));
    i += 3;
View Full Code Here

        socket.setNeedClientAuth(true);
        socket.startHandshake();
    }

    private Object[] getX509Certs() {
        X509Certificate certs[] = null;
        try {
            certs = session.getPeerCertificateChain();
        } catch (Throwable ex) {
            // Get rid of the warning in the logs when no Client-Cert is
            // available
View Full Code Here

        return getPeerCertificateChain(false);
    }

    protected java.security.cert.X509Certificate []
  getX509Certificates(SSLSession session) throws IOException {
        X509Certificate jsseCerts[] = null;
    try{
      jsseCerts = session.getPeerCertificateChain();
    } catch (Throwable ex){
       // Get rid of the warning in the logs when no Client-Cert is
       // available
View Full Code Here

TOP

Related Classes of javax.security.cert.X509Certificate

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.