Examples of TrustedCertificates


Examples of com.emc.vipr.model.keystore.TrustedCertificates

     * API Call: <tt>GET /vdc/truststore</tt>
     *
     * @return The list of trusted certificates
     */
    public List<String> getTrustedCertificates() {
        TrustedCertificates response =
                client.get(TrustedCertificates.class, TRUSTSTORE_URL);
        return defaultList(response.getTrustedCertificates());
    }
View Full Code Here

Examples of com.emc.vipr.model.keystore.TrustedCertificates

     *            trusted certificates changes
     * @return The list of trusted certificates
     */
    public List<String> updateTrustedCertificate(
            TrustedCertificateChanges trustedCertificateChanges) {
        TrustedCertificates response =
                client.put(TrustedCertificates.class, trustedCertificateChanges,
                        TRUSTSTORE_URL);
        return defaultList(response.getTrustedCertificates());
    }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

        this.trustedCertsLoc = trustedCertsLoc;
    }

    private void init() {
        if (trustedCertsLoc != null) {
            TrustedCertificates certificates = TrustedCertificates.load(trustedCertsLoc);
            TrustedCertificates.setDefaultTrustedCertificates(certificates);
        }
    }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

    private void init() {
        // Load CA certificates from a file included in the XBaya jar.
        this.trustedCertificates = XBayaSecurity.getTrustedCertificates();

        TrustedCertificates certificatesArray = new TrustedCertificates(
                this.trustedCertificates);
        TrustedCertificates.setDefaultTrustedCertificates(certificatesArray);
    }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

  }

  public void loadCertificate(String trustedCertsFile) {
    if (trustedCertsFile != null) {
      if (new File(trustedCertsFile).isDirectory()) {
        TrustedCertificates certificates = TrustedCertificates.load(trustedCertsFile);
        TrustedCertificates.setDefaultTrustedCertificates(certificates);
        this.setTrustedCertificates(certificates.getCertificates());
      } else {
        this.setTrustedCertificates(CertificateManager.getTrustedCertificates(trustedCertsFile));

        TrustedCertificates certificatesArray = new TrustedCertificates(this.getTrustedCertificates());
        TrustedCertificates.setDefaultTrustedCertificates(certificatesArray);
      }
    }
  }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

  }

  private void init() {
    if(trustedCertsFile != null){
      if(new File(trustedCertsFile).isDirectory()){
        TrustedCertificates certificates = TrustedCertificates.load(trustedCertsFile);
        TrustedCertificates.setDefaultTrustedCertificates(certificates)
      }else
      this.trustedCertificates = CertificateManager.getTrustedCertificate(trustedCertsFile);

      TrustedCertificates certificatesArray = new TrustedCertificates(
          this.trustedCertificates);
      TrustedCertificates.setDefaultTrustedCertificates(certificatesArray);
      }
      }
  }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

        this.port = MyProxy.DEFAULT_PORT;
    }
 
  private void init() {
    if(trustedCertsLoc != null){
      TrustedCertificates certificates = TrustedCertificates.load(trustedCertsLoc);
    TrustedCertificates.setDefaultTrustedCertificates(certificates);
    }
  }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

        this.myproxyLifeTime);
  }
  private void init() {
    if(trustedCertsFile != null){
      if(new File(trustedCertsFile).isDirectory()){
        TrustedCertificates certificates = TrustedCertificates.load(trustedCertsFile);
        TrustedCertificates.setDefaultTrustedCertificates(certificates)
      }else
      this.trustedCertificates = CertificateManager.getTrustedCertificate(trustedCertsFile);

      TrustedCertificates certificatesArray = new TrustedCertificates(
          this.trustedCertificates);
      TrustedCertificates.setDefaultTrustedCertificates(certificatesArray);
      }
      }
  }
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

        }else if(useHostKey && certFile != null && keyfile != null && new File(certFile).isFile()){
            invoker = new PuretlsInvoker(keyfile, "", certFile);
        }else {
            X509Certificate[] certs = globalConfiguration.getTrustedCertificates();
            if(certs != null && certFile != null){
              TrustedCertificates certificates = TrustedCertificates.load(certFile);
            TrustedCertificates.setDefaultTrustedCertificates(certificates);
              certs = certificates.getCertificates();
            }else{
                ClassLoader cl = Thread.currentThread().getContextClassLoader();
                InputStream trustedCasInStream = cl.getResourceAsStream("xregistry/trusted_cas.pem");
                if(trustedCasInStream != null){
                    File tempTrustedCas = File.createTempFile("trusted_cas","pem");
View Full Code Here

Examples of org.globus.gsi.TrustedCertificates

        hostname = "rainier.extreme.indiana.edu";
        this.port = MyProxy.DEFAULT_PORT;
    }
    private void init() {
    if(trustedCertsLoc != null){
      TrustedCertificates certificates = TrustedCertificates.load(trustedCertsLoc);
    TrustedCertificates.setDefaultTrustedCertificates(certificates);
    }
  }
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.