Package org.ogce.xregistry.security

Examples of org.ogce.xregistry.security.ApplicationProperties


   * @param propertyfile
   * @return Object of DocumentRegistryClient which have all methods
   * @throws XRegistryClientException
   */
  public static XRegistryClient CreateGSISecureRegistryInstance(String propertyfile) throws XRegistryClientException {
    ApplicationProperties properties = new ApplicationProperties(propertyfile);
    XRegistryClient registryClient = new XRegistryClient(properties.getGssCredential(), properties.getCredentials().getTrustedCertificates(), properties.getXRegistryUrl());
    return registryClient;
  }
View Full Code Here


   * @param registryServiceUrl
   * @return Object of DocumentRegistryClient which have all methods
   * @throws XRegistryClientException
   */
  public static XRegistryClient CreateSSLSecureRegistryInstance(String hostcertsKeyFile, String trustedcertsFile, String registryServiceUrl) throws XRegistryClientException {
    ApplicationProperties properties = new ApplicationProperties(hostcertsKeyFile, trustedcertsFile);
    XRegistryClient registryClient = new XRegistryClient(properties.getCredentials()
        .getHostcertsKeyFile(), properties.getCredentials().getTrustedCertificates(), registryServiceUrl);
    return registryClient;
  }
View Full Code Here

   * @return Object of DocumentRegistryClient which have all methods
   * @throws XRegistryClientException
   */
  public static XRegistryClient CreateMyProxyCredentialRegistryInstance(String myproxyServer, int myproxyPort, String myproxyUsername, String myproxyPassphrase, int myproxyLifetime, String trustedcertsFile, String registryServiceUrl)
      throws XRegistryClientException {
    ApplicationProperties properties = new ApplicationProperties(myproxyServer, myproxyPort, myproxyUsername, myproxyPassphrase, myproxyLifetime, trustedcertsFile);
    XRegistryClient registryClient = new XRegistryClient(properties.getGssCredential(), properties.getCredentials().getTrustedCertificates(),
        registryServiceUrl);
    return registryClient;
  }
View Full Code Here

TOP

Related Classes of org.ogce.xregistry.security.ApplicationProperties

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.