Examples of VOMSProxyInit


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

        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

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

        String portStr = props.getProperty(VOMS_SERVER_PORT);
        String dn = props.getProperty(VOMS_SERVER_DN);
        String voname = props.getProperty(VONAME);
        String trustCa = props.getProperty(TRUST_CA);
        String validity = props.getProperty(PROXY_CERTIFICATE_VALIDITY);
        VomsProxyInit vomsProxyInit = new VomsProxyInit();
        vomsProxyInit.setHostname(hostname);
        vomsProxyInit.setPort(portStr);
        vomsProxyInit.setHostDn(dn);
        vomsProxyInit.setVoName(voname);
        vomsProxyInit.setTrustCaDir(trustCa);
        vomsProxyInit.setCertificateValidity(validity);
        return vomsProxyInit;
    }
View Full Code Here

Examples of org.glite.security.voms.contact.VOMSProxyInit

        }

        int vomsProxyType = decideVomsProxyType( globusCred.getProxyType() );

        VOMSServerInfo info = getVOMSServerInfo();
        VOMSProxyInit proxyInit = VOMSProxyInit.instance( globusCred );
        proxyInit.setProxyType(vomsProxyType);
        proxyInit.setProxyOutputFile(null);
        proxyInit.setProxyLifetime( this.certificateValidity );
        proxyInit.addVomsServer( info );
        GlobusCredential tmpCred = null;
        try {
            List<VOMSRequestOptions> options = getVOMSRequestOptions();
            tmpCred = proxyInit.getVomsProxy( options );
        } catch (VOMSException e) {
            throw new Exception(e.getMessage(), e);
        }
        return tmpCred;
    }
View Full Code Here

Examples of org.glite.security.voms.contact.VOMSProxyInit

        }

        int vomsProxyType = decideVomsProxyType( globusCred.getProxyType() );

        VOMSServerInfo info = getVOMSServerInfo();
        VOMSProxyInit proxyInit = VOMSProxyInit.instance( globusCred );
        proxyInit.setProxyType(vomsProxyType);
        proxyInit.setProxyOutputFile(null);
        proxyInit.setProxyLifetime( this.certificateValidity );
        proxyInit.addVomsServer( info );
        GlobusCredential tmpCred = null;
        try {
            List<VOMSRequestOptions> options = getVOMSRequestOptions();
            log.debug("getVomsProxy");
            tmpCred = proxyInit.getVomsProxy( options );
        } catch (VOMSException e) {
            throw new Exception(e.getMessage(), e);
        }
        GSSCredential vomsCredential = null;
        vomsCredential = new GlobusGSSCredentialImpl(tmpCred,
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.