Examples of Certificate


Examples of beans.doctor.certificate.Certificate

       
        List list = findEntityList(Certificate.class, "client", entity);
        List<CertificateDetails> res = new ArrayList<CertificateDetails>();
        Iterator i = list.iterator();
        while(i.hasNext()) {
            Certificate j = (Certificate) i.next();
            res.add(j.getDetails((RightChecker) this));
        }
        return res;
    }
View Full Code Here

Examples of com.alu.e3.data.model.Certificate


  public static final Certificate toDataModel(SSLCert sslCert){
    if(sslCert == null) throw new IllegalArgumentException("cert must not be null");

    Certificate cert = new Certificate();
    cert.setData(sslCert.getContent());
    cert.setId(sslCert.getId());
    cert.setPassword(sslCert.getKeyId());

    CertificateDetail cd = new CertificateDetail();
    cd.setId(sslCert.getId());
    cd.setKeyId(sslCert.getKeyId());
    cd.setName(sslCert.getDisplayName());

    cert.setCertDetail(cd);

    return cert;
  }
View Full Code Here

Examples of com.sonatype.nexus.ssl.client.Certificate

  @Test
  public void createReadDelete()
      throws Exception
  {
    // create a certificate
    final Certificate created = truststore().create()
        .withPem(FileUtils.readFileToString(testData().resolveFile("pem.txt")))
        .save();

    // check there are at list one certificate
    final Collection<Certificate> certificates = truststore().get();
    assertThat(certificates.size(), greaterThan(0));

    // check that we can get the created certificate
    final Certificate updated = truststore().get(created.id());
    assertThat(updated, is(equalTo(created)));

    // remove the certificate
    updated.remove();

    thrown.expect(exceptionWithStatus(Status.NOT_FOUND));

    truststore().get(created.id());
  }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.Certificate

        try {
            String from = json.getString("from");
            String body = json.getString("body");

            String to = null;
            Certificate key = null;

            if (json.has("to"))
                to = json.getString("to");

            if (json.has("key"))
                key = new Certificate(json.getJSONObject("key"));

            init(from, body, to, key, false);

        } catch (JSONException e) {
            e.printStackTrace();
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.Certificate

            }

            public void run() {
                if (message.hasKey()) {
                    Room r = (Room) channel;
                    Certificate privateKey = r.getKeyPairs().get(message.getKey());
                    if (privateKey != null)
                        message.decryptBody(privateKey);
                }
                if (message.hasTo()) {
                    Room r = (Room) channel;
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.Certificate

            }

            public void run() {
                if (message.hasKey()) {
                    Room r = (Room) channel;
                    Certificate privateKey = r.getKeyPairs().get(message.getKey());
                    if (privateKey != null)
                        message.decryptBody(privateKey);
                }
                if (message.hasTo()) {
                    Room r = (Room) channel;
View Full Code Here

Examples of io.fathom.cloud.compute.api.os.model.Certificate

        X500Principal subject = new X500Principal("CN=" + "root");
        CertificateAndKey certificateAndKey = createSelfSigned(subject, 2048);

        WrappedCertificate response = new WrappedCertificate();
        response.certificate = new Certificate();
        response.certificate.data = Hex.toHex(certificateAndKey.getPublicKey().getEncoded());
        return response;
    }
View Full Code Here

Examples of java.security.cert.Certificate

    } catch (IOException e) {
      throw new IllegalStateException("Error while loading the keystore file '" + f + "'." + e.getMessage());
    }

    // Get certificate
    Certificate cert;
    try {
      cert = keyStore.getCertificate(alias);
    } catch (KeyStoreException e) {
      throw new IllegalStateException("Error while getting the alias '" + alias + "' in the keystore file '" + keystoreFile + "':" + e.getMessage());
    }

    // set the public key
    publickey = cert.getPublicKey();
  }
View Full Code Here

Examples of java.security.cert.Certificate

       
        while( count < 256 ){
         
          String  test_alias = count==0?alias:(alias + "." + count );
         
          Certificate existing = keystore.getCertificate( test_alias );
       
          if ( existing != null ){
         
            if ( Arrays.equals( new_encoded, existing.getEncoded())){
           
              alias = test_alias;
             
              break;
            }
View Full Code Here

Examples of java.security.cert.Certificate

     */
    public Collection engineGenerateCertificates(
        InputStream inStream)
        throws CertificateException
    {
        Certificate     cert;
        ArrayList       certs = new ArrayList();

        while ((cert = engineGenerateCertificate(inStream)) != null)
        {
            certs.add(cert);
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.