Package org.geogrid.aist.tsukubagama.credential.impl

Examples of org.geogrid.aist.tsukubagama.credential.impl.MyProxyInit


    public static TsukubaGamaProxyInit getInstance()
        throws Exception {

        Properties props = ConfigurationUtil.loadConfig(PROPERTY_FILE);

        MyProxyInit myproxyInit = getMyProxyInit(props);
        VomsProxyInit vomsProxyInit = getVomsProxyInit(props);

        TsukubaGamaProxyInitImpl proxyInit = new TsukubaGamaProxyInitImpl();
        proxyInit.setMyProxyInit(myproxyInit);
        proxyInit.setVomsProxyInit(vomsProxyInit);
View Full Code Here


    private static MyProxyInit getMyProxyInit(Properties props)
        throws Exception {
        String hostname = props.getProperty(MYPROXY_CA);
        String portStr = props.getProperty(MYPROXY_CA_PORT);
        MyProxyInit myproxyInit = new MyProxyInit(hostname, portStr);

        String certFile = props.getProperty(MYPROXY_CLIENT_CERT);
        String keyFile = props.getProperty(MYPROXY_CLIENT_KEY);
        myproxyInit.loadCertificate(certFile, keyFile);
        String validity = props.getProperty(PROXY_CERTIFICATE_VALIDITY);
        myproxyInit.setCertificateValidity(validity);
        return myproxyInit;
    }
View Full Code Here

TOP

Related Classes of org.geogrid.aist.tsukubagama.credential.impl.MyProxyInit

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.