Examples of addCertificate()


Examples of clips.delegate.client.CollaboratorLocal.addCertificate()

            DirectoryCollaborator directory = DirectoryLocator.getDirectory(DirectoryCollaborator.class);
            ROList<DirectoryCollaboratorItem> items = directory.getItemsList();
            for (DirectoryCollaboratorItem directoryCollaboratorItem : items) {
                CollaboratorLocal collaboratorLocal = new CollaboratorLocal(directoryCollaboratorItem.getID(), getAuditManager());
                if (collaboratorLocal.haveCertificate()){
                    collaboratorLocal.addCertificate();
                    System.out.println(collaboratorLocal.toString() + " id: " + collaboratorLocal.getID() + " - сертификат добавлен в базу");
                }else{
                    System.out.println(collaboratorLocal.toString() + " id: " + collaboratorLocal.getID() + " не имеет сертификата");
                }
            }
View Full Code Here

Examples of com.subgraph.orchid.DirectoryServer.addCertificate()

      final DirectoryServer as = TrustedAuthorities.getInstance().getAuthorityServerByIdentity(certificate.getAuthorityFingerprint());
      if(as == null) {
        logger.warning("Certificate read for unknown directory authority with identity: "+ certificate.getAuthorityFingerprint());
        return;
      }
      as.addCertificate(certificate);
     
      if(consensusWaitingForCertificates != null && wasRequired) {
       
        switch(consensusWaitingForCertificates.verifySignatures()) {
        case STATUS_FAILED:
View Full Code Here

Examples of com.sun.enterprise.admin.jmx.remote.https.AsadminTruststore.addCertificate()

            if (!truststore.certificateExists(chain[0])) {
                //if the certificate does not exist in the truststore, then we prompt the
                //user. Upon confirmation from the user, the certificate is added to the
                //truststore.
                if (isItOKToAddCertToTrustStore(chain[0])) {                           
                    truststore.addCertificate(getAliasName(), chain[0]);
                } else {
                    throw new CertificateException(_strMgr.getString(
                        "serverCertificateNotTrusted"));
                }
            }    
View Full Code Here

Examples of com.sun.enterprise.security.store.AsadminTruststore.addCertificate()

            if (!truststore.certificateExists(chain[0])) {
                // if the certificate does not exist in the truststore,
                // then we prompt the user.  Upon confirmation from the user,
                // the certificate is added to the truststore.
                if (isItOKToAddCertToTrustStore(chain[0])) {
                    truststore.addCertificate(getAliasName(), chain[0]);
                } else {
                    throw new CertificateException(strmgr.get(
                        "serverCertificateNotTrusted"));
                }
            }    
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.keys.content.X509Data.addCertificate()

    */
   public void addKeyInfo(X509Certificate cert) throws XMLSecurityException {

      X509Data x509data = new X509Data(this._doc);

      x509data.addCertificate(cert);
      this.getKeyInfo().add(x509data);
   }

   /**
    * Add this public key to the KeyInfo. This will include the complete key in
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.keys.content.X509Data.addCertificate()

     * @throws XMLSecurityException
     */
    public void addKeyInfo(X509Certificate cert) throws XMLSecurityException {
        X509Data x509data = new X509Data(this.doc);

        x509data.addCertificate(cert);
        this.getKeyInfo().add(x509data);
    }

    /**
     * Add this public key to the KeyInfo. This will include the complete key in
View Full Code Here

Examples of nl.surfnet.spring.security.opensaml.KeyStore.addCertificate()

  }

  protected KeyStore keyStore() {
    final KeyStore keyStore = new KeyStore();

    keyStore.addCertificate(idpEntityId, idpCertificate);
    keyStore.addPrivateKey(entityId(), spPrivateKey, spCertificate, "somepass");

    return keyStore;
  }
View Full Code Here

Examples of org.apache.harmony.security.tests.support.IdentityStub.addCertificate()

        Identity i = new IdentityStub("iii");
        PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", new byte[]{1,2,3,4,5});
        i.setPublicKey(pk1);
        // try with the same key
        CertificateStub c1 = new CertificateStub("fff", null, null, pk1);
        i.addCertificate(c1);
        assertSame(c1, i.certificates()[0]);
        // try Certificate with different key
        try {
            i.addCertificate(new CertificateStub("ccc", null, null, new PublicKeyStub("k2", "fff", new byte[]{6,7,8,9,0})));
            fail("KeyManagementException should be thrown");
View Full Code Here

Examples of org.apache.harmony.security.tests.support.IdentityStub.addCertificate()

        CertificateStub c1 = new CertificateStub("fff", null, null, pk1);
        i.addCertificate(c1);
        assertSame(c1, i.certificates()[0]);
        // try Certificate with different key
        try {
            i.addCertificate(new CertificateStub("ccc", null, null, new PublicKeyStub("k2", "fff", new byte[]{6,7,8,9,0})));
            fail("KeyManagementException should be thrown");
        } catch (KeyManagementException ok) {}       
    }

    /**
 
View Full Code Here

Examples of org.apache.harmony.security.tests.support.IdentityStub.addCertificate()

     */
    public void testAddCertificate2() throws Exception {
        Identity i = new IdentityStub("iii");
        PublicKeyStub pk1 = new PublicKeyStub("kkk", "fff", null);       
        CertificateStub c1 = new CertificateStub("fff", null, null, pk1);
        i.addCertificate(c1);
        assertSame(c1, i.certificates()[0]);
        assertSame(pk1, i.getPublicKey());
         
    }
   
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.