Examples of GetParams


Examples of org.globus.myproxy.GetParams

    public void setCertificateValidity(int validity) {
        this.certificateValidity = validity;
    }

    public GSSCredential get(String username) throws Exception {
        GetParams param = new GetParams();
        param.setUserName(username);
        param.setPassphrase( DUMMY_PASSWORD );
        param.setLifetime(certificateValidity);
        GSSCredential cred = null;
        log.debug("Request MyProxy Get Message");
        cred = myproxyClient.get(credential, param);
        return cred;
    }
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws GFacException If an error occurred while renewing credentials.
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());

        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());

        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
View Full Code Here

Examples of org.globus.myproxy.GetParams

    private GSSCredential authenticate(String username, String password)
        throws AuthenticationException {
        log.info("Retireves credentifal from MyProxy server.");
        GSSCredential cred = null;
        try {
            GetParams params = new GetParams(username, password);
            params.setLifetime(this.lifetime);
            params.setVoname(this.voname);
            cred = myproxyClient.get(null, params);
        } catch (MyProxyException e) {
            log.error(e.getMessage(), e);
        }
        if (cred == null) {
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws org.apache.airavata.gfac.GFacException                            If an error occurred while renewing credentials.
     * @throws org.apache.airavata.common.exception.ApplicationSettingsException
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException, ApplicationSettingsException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());
        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
        }
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws org.apache.airavata.gfac.GFacException If an error occurred while renewing credentials.
     * @throws org.apache.airavata.common.exception.ApplicationSettingsException
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException, ApplicationSettingsException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());
        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
        }
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws org.apache.airavata.gfac.GFacException If an error occurred while renewing credentials.
     * @throws org.apache.airavata.common.exception.ApplicationSettingsException
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException, ApplicationSettingsException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());
        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
        }
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws org.apache.airavata.gfac.GFacException If an error occurred while renewing credentials.
     * @throws org.apache.airavata.common.exception.ApplicationSettingsException
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException, ApplicationSettingsException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());
        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
        }
View Full Code Here

Examples of org.globus.myproxy.GetParams

     * @throws GFacException If an error occurred while renewing credentials.
     */
    public GSSCredential renewCredentialsAsATrustedHost() throws GFacException {
        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());

        GetParams getParams = new GetParams();
        getParams.setAuthzCreds(gssCredentials);
        getParams.setUserName(getRequestData().getMyProxyUserName());
        getParams.setLifetime(getRequestData().getMyProxyLifeTime());

        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
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.