Package java.security.cert

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

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.