Package org.apache.airavata.xbaya.myproxy

Examples of org.apache.airavata.xbaya.myproxy.MyProxyClient.load()


     */
    public static GSSCredential getGSSCredential(String userName, String password, String myproxyServer) {
        MyProxyClient myProxyClient = new MyProxyClient(myproxyServer, XBayaConstants.DEFAULT_MYPROXY_PORT, userName,
                password, XBayaConstants.DEFAULT_MYPROXY_LIFTTIME);
        try {
            myProxyClient.load();
        } catch (MyProxyException e) {
            throw new WorkflowRuntimeException("Failed loading the myproxy", e);
        }
        GSSCredential gssCredential = myProxyClient.getProxy();
        return gssCredential;
View Full Code Here


    }

    private void runInThread() {
        try {
            MyProxyClient client = this.engine.getMyProxyClient();
            client.load();
            this.waitDialog.hide();
        } catch (MyProxyException e) {
            if (this.canceled) {
                logger.error(e.getMessage(), e);
            } else {
View Full Code Here

        String server = this.configuration.getMyProxyServer();
        int port = this.configuration.getMyProxyPort();
        int lifetime = this.configuration.getMyProxyLifetime();

        MyProxyClient client = new MyProxyClient();
        client.load(server, port, username, passphrase, lifetime);
        GSSCredential proxy = client.getProxy();
        logger.info("proxy: " + proxy);
    }
}
View Full Code Here

    }

    private void runInThread() {
        try {
            MyProxyClient client = this.engine.getMyProxyClient();
            client.load();
            this.waitDialog.hide();
        } catch (MyProxyException e) {
            if (this.canceled) {
                logger.error(e.getMessage(), e);
            } else {
View Full Code Here

     */
    public static GSSCredential getGSSCredential(String userName, String password, String myproxyServer) {
        MyProxyClient myProxyClient = new MyProxyClient(myproxyServer, XBayaConstants.DEFAULT_MYPROXY_PORT, userName,
                password, XBayaConstants.DEFAULT_MYPROXY_LIFTTIME);
        try {
            myProxyClient.load();
        } catch (MyProxyException e) {
            throw new XBayaRuntimeException("Failed loading the myproxy", e);
        }
        GSSCredential gssCredential = myProxyClient.getProxy();
        return gssCredential;
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.