Examples of checkValidity()


Examples of com.maverick.crypto.asn1.x509.X509Certificate.checkValidity()

                        throw new SSLException(SSLException.UNSUPPORTED_CERTIFICATE,
                            MessageFormat.format(Messages.getString("TrustedCACertStore.signatureAlgorithmNotSupported"), new Object[] { x509.getSigAlgName() })); //$NON-NLS-1$

                    // Verify the validity
                    try {
                        trusted.checkValidity();
                        x509.checkValidity();
                    } catch (CertificateException ex2) {
                        if (allowInvalidCertificates) {
                            return true;
                        } else {
View Full Code Here

Examples of com.volantis.shared.dependency.DependencyContext.checkValidity()

        generateSimpleElement(target, cacheability.toString(), "cacheability");

        Period timeToLive = dependency.getTimeToLive();
        generateSimpleElement(target, timeToLive.toString(), "time-to-live");

        Validity validity = context.checkValidity(dependency);
        generateSimpleElement(target, validity.toString(), "validity");
    }

    private void generateSimpleElement(
            XMLProcess process, String value,
View Full Code Here

Examples of java.security.cert.Certificate.checkValidity()

              Iterator<Certificate> userCertIter = userCerts.iterator();
              while(userCertIter.hasNext() &&  retval.size() <= resSize){
                X509Certificate nextCert = (X509Certificate) userCertIter.next();                       
                try {
                  // Check that the certificate is valid
                  nextCert.checkValidity(new Date());               
                  // and not revoked 
                  CertificateInfo certInfo = certificateStoreSession.getCertificateInfo(pubAdmin, CertTools.getFingerprintAsString(nextCert));
                  if(certInfo.getRevocationReason() == RevokedCertInfo.NOT_REVOKED){
                    if(fulfillsKeyUsageAndUseKeyWith(queryKeyBindingType,nextCert)){
                      retval.add(nextCert);                     
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

      }
    }
    if ((certificates != null) && (certificates.length == 1))
    {
      X509Certificate certificate = certificates[0];
      certificate.checkValidity();
    }
    else
    {
      standardTrustManager.checkServerTrusted(certificates, authType);
    }
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

               (X509Certificate) cf.generateCertificate(fis);

            fis.close();

            //add to ArrayList
            cert.checkValidity();
            this._certs.add(cert);

            dn = cert.getSubjectDN().getName();
            added = true;
         } catch (FileNotFoundException ex) {
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

    }
    if (certificates != null) {
      for (int i = 0; i < certificates.length; i++) {
        X509Certificate certificate = certificates[i];
        try {
          certificate.checkValidity();
        } catch (CertificateException e) {
          LOG.error(e.toString());
          throw e;
        }
      }
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

            }
        }
        if ((certificates != null) && (certificates.length == 1)) {
            X509Certificate certificate = certificates[0];
            try {
                certificate.checkValidity();
            }
            catch (CertificateException e) {
                LOG.error(e.toString());
                return false;
            }
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

      keyStoreManager.getCertificateByHostname(hostname);
     
      // use this since getCertificateByHostname always returns null, but hostname == alias for our purpose
      X509Certificate cert = keyStoreManager.getCertificateByAlias(hostname);
      try {
        cert.checkValidity();
      } catch (CertificateExpiredException cee) {
        // if the cert is expired we should destroy it and recursively call this function
        keyStoreManager = null;
        FileUtils.deleteDirectory(root);
       
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

            {
                try
                {
                    if (check)
                    {
                        certificate.checkValidity();
                    }

                    chain.add(certificate);
                }
                catch (CertificateException ex)
View Full Code Here

Examples of java.security.cert.X509Certificate.checkValidity()

                if (cert.equals(trustedCaCert))
                {
                    try
                    {
                        cert.checkValidity();
                        trustedCaCert.checkValidity();
                        return true;
                    }
                    catch (CertificateException ex)
                    {
                        // Not much we can do
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.