Package br.net.woodstock.rockframework.security.cert

Examples of br.net.woodstock.rockframework.security.cert.CertificateException


        privateKeyHolder = this.buildV1Certificate(bcRequest);
      }

      return privateKeyHolder;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here


        return new ValidationError[] { new ValidationError(SelfSignedCertificateValidator.VALIDATOR_NAME, "Certificate self signed") };
      }

      return new ValidationError[0];
    } catch (GeneralSecurityException e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

      if (resp.getStatus() != OCSPResponseStatus.SUCCESSFUL) {
        return new ValidationError[] { new ValidationError(OCSPCertificateValidator.VALIDATOR_NAME, "Certificate not valid") };
      }
      return new ValidationError[0];
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

        return new ValidationError[]{new ValidationError(CRLCertificateValidator.VALIDATOR_NAME, "Certificate revoked")};
      }

      return new ValidationError[0];
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

      PrivateKeyHolder privateKeyHolder = new PrivateKeyHolder(privateKey, new Certificate[] { certificate });

      return privateKeyHolder;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

        privateKeyHolder = this.buildV1Certificate(bcRequest);
      }

      return privateKeyHolder;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

  public static CertificadoICPBrasil getInstance(final X509Certificate certificate) {
    try {
      return ICPBrasilHelper.getCertificadoICPBrasil(certificate);
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

      if (x509crl.isRevoked(x509Certificate)) {
        return false;
      }
      return true;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

      return result;
    } catch (SignatureException e) {
      CoreLog.getInstance().getLog().info("Invalid certificate chain");
      return false;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

      return true;
    } catch (CertPathBuilderException e) {
      CoreLog.getInstance().getLog().info("Validation error: " + e.getMessage());
      return false;
    } catch (Exception e) {
      throw new CertificateException(e);
    }
  }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.security.cert.CertificateException

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.