Examples of GSSCredential


Examples of org.ietf.jgss.GSSCredential

        }
    }
   
    public static void proxystoreKeyAdjust(String openid, String screenname) {
      //Looks like a workaround method.
      GSSCredential gssCred = ProxyManager.getDefaultProxy(openid);
      if (gssCred != null) {
        try {
        ProxyManager.removeProxy(openid, gssCred);
        ProxyManager.addProxy(screenname, gssCred);
      } catch (ProxyStorageException e) {
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

        boolean loadProxy = this.privateRadioButton.isSelected();

        hide();

        GSSCredential proxy;

        if (loadProxy) {
            boolean loaded = this.myProxyChecker.loadIfNecessary();
            if (loaded) {
                MyProxyClient myProxyClient = this.engine.getMyProxyClient();
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

    }

    String userName = "chathura";
    String password = "changeme";
    GSSCredential credentials = SecurityUtil.getGSSCredential(userName, password,
        XBayaConstants.DEFAULT_MYPROXY_SERVER);

    String topic = "topic";
//    client.invoke(workflow, inputNodes, credentials,
//        XBayaConstants.DEFAULT_DSC_URL, XBayaConstants.DEFAULT_ODE_URL,
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

     */
    public void testSaveAndLoad() throws ComponentException, GraphException,
            MyLeadException, ComponentRegistryException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

     * @throws MyProxyException
     */
    public void testList() throws MyLeadException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

    public void testSaveAndLoadWithGPEL() throws ComponentException,
            GraphException, MyLeadException, WorkflowEngineException,
            ComponentRegistryException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

     * @throws IOException
     */
    public void estWithUserCredential() throws ComponentException, IOException,
            GeneralSecurityException {
        boolean userCred = true;
        GSSCredential proxy = null;
        WsdlDefinitions wsdl = null; // Set WSDL of the workflow.
        LeadContextHeader leadContext = null; // Set the LEAD Context.
        URI messageBoxURL = null; // This one can be null;

        String trustedcerts = System.getProperty("trustedcerts");
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

        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

Examples of org.ietf.jgss.GSSCredential

*/
public class StreamClient {
 
  public void invoke(String operationName, WsdlDefinitions wsdl, String name, String topic){
    ODEClient odeClient = new ODEClient();
    GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
    Workflow workflow = xregistryAccesser.getWorkflow(name);
   
    GsiInvoker secureInvoker = null;
    secureInvoker = new GsiInvoker(credential, XBayaSecurity
        .getTrustedCertificates());

    try {
      LeadContextHeader defaultLeadHeader = odeClient.getDefaultLeadHeader(workflow, topic,
          credential.getName().toString(), new URI(topic), null, null);
      defaultLeadHeader.setExperimentId(topic);
      LEADWorkflowInvoker invoker = new LEADWorkflowInvoker(wsdl,
          defaultLeadHeader, null, secureInvoker, operationName);
     
      WSIFMessage inputMessage = invoker.getInputMessage();
View Full Code Here

Examples of org.ietf.jgss.GSSCredential

        }


        hide();

        GSSCredential proxy;
        boolean loaded = this.myProxyChecker.loadIfNecessary();
        if (loaded) {
            MyProxyClient myProxyClient = this.engine.getMyProxyClient();
            proxy = myProxyClient.getProxy();
        } else {
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.