Examples of ApplicationProperties


Examples of org.brixcms.demo.ApplicationProperties

public class StartBrixDemo {
    private static final Logger logger = LoggerFactory.getLogger(StartBrixDemo.class);

    public static void main(String[] args) throws Exception {
        ApplicationProperties properties = new ApplicationProperties("brix.demo");

        Server server = new Server();
        SocketConnector connector = new SocketConnector();
        // Set some timeout options to make debugging easier.
        connector.setMaxIdleTime(1000 * 60 * 60);
        connector.setSoLingerTime(-1);

        int port = Integer.getInteger("jetty.port", properties.getHttpPort());
        connector.setPort(port);


        SslSocketConnector sslConnector = new SslSocketConnector();
        sslConnector.setMaxIdleTime(1000 * 60 * 60);
        sslConnector.setSoLingerTime(-1);
        sslConnector.setKeyPassword("password");
        sslConnector.setPassword("password");
        sslConnector.setKeystore("src/main/webapp/WEB-INF/keystore");

        port = Integer.getInteger("jetty.sslport", properties.getHttpsPort());
        sslConnector.setPort(port);


        server.setConnectors(new Connector[]{connector, sslConnector});

View Full Code Here

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

Examples of org.ogce.xregistry.security.ApplicationProperties

   * @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

Examples of org.ogce.xregistry.security.ApplicationProperties

   * @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
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.