Package org.globus.gsi.gssapi

Examples of org.globus.gsi.gssapi.GlobusGSSCredentialImpl


   
    GSISecurityContext gssContext = (GSISecurityContext)jobExecutionContext.getSecurityContext(GSISecurityContext.GSI_SECURITY_CONTEXT);
//    GlobusCredential credentials = gssContext.getGlobusCredential();
   
    GlobusGSSCredentialImpl gss = (GlobusGSSCredentialImpl) gssContext.getGssCredentails();
   
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
   
    BufferedOutputStream bufos = new BufferedOutputStream(bos);
   
    ByteArrayInputStream bis = null;
    BufferedInputStream bufis = null;
    try{
      gss.getGlobusCredential().save(bufos);
      bufos.flush();
     
     
     
      //TODO: to be supported by airavata gsscredential class
View Full Code Here


    if (gssCredential == null || gssCredential.getRemainingLifetime() < 15 * 60) {
        if (hostcertsKeyFile != null && !user) {
          init();
          FileInputStream fis = new FileInputStream(hostcertsKeyFile);
          GlobusCredential globusCred = new GlobusCredential(fis);
          this.gssCredential = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);

        } else {
          this.gssCredential = getDefaultProxy();
        }
        if (gssCredential != null) {
View Full Code Here

    try {
      if (gssCredential == null || gssCredential.getRemainingLifetime() < 15 * 60) {
        loadCertificate(trustedcertsKeyFile);
        FileInputStream fis = new FileInputStream(hostcertsKeyFile);
        GlobusCredential globusCred = new GlobusCredential(fis);
        this.gssCredential = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
      }
    } catch (FileNotFoundException e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
    } catch (GlobusCredentialException e) {
      throw new XRegistryClientException(e.getLocalizedMessage(),e);
View Full Code Here

            throw new GfacException(e,FaultCode.InvaliedConfig);
        }
    }

    public static GSSCredential getGSSCredential(GlobusCredential globusCred) throws GSSException {
        return new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
    }
View Full Code Here

    ExpBldrWorkflow expBldrWorkflow = new ExpBldrWorkflow();
    GSSCredential cred = null;
        try {
      FileInputStream fis = new FileInputStream(context.getProperties().getProperty("ssl.hostcertsKeyFile"));
      GlobusCredential globusCred = new GlobusCredential(fis);
      cred = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
    } catch (Exception e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
View Full Code Here

        try {
      ApplicationGlobalContext context = new ApplicationGlobalContext();
     
        FileInputStream fis = new FileInputStream(context.getCredentials().getHostcertsKeyFile());
              GlobusCredential globusCred = new GlobusCredential(fis);
              context.setGssCredential(new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT));
        XBayaWorkflowUtil xRegistryUtil = new XBayaWorkflowUtil();
        this.workflow =  xRegistryUtil.getWorkflowFromRegistry(workflowId, context);
       
   
//        WorkflowWebResource workflowWebResource = null;
View Full Code Here

  public GSSCredential getGssCredential() throws Exception {
        try {
          if(hostcertsKeyFile != null && !user){
               FileInputStream fis = new FileInputStream(hostcertsKeyFile);
                      GlobusCredential globusCred = new GlobusCredential(fis);
                      this.gssCredential = new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
                  
          }else{
          this.gssCredential = getDefaultProxy();
          }
          if (gssCredential != null) {
View Full Code Here

        } catch (Exception e) {
            throw new XregistryException(e);
        }
    }
    public static GSSCredential getGSSCredential(GlobusCredential globusCred) throws Exception {
        return new GlobusGSSCredentialImpl(globusCred, GSSCredential.INITIATE_AND_ACCEPT);
    }
View Full Code Here

    public void loadCertificate(String certFile, String keyFile)
        throws Exception {
        GlobusCredential clientCred =
            new GlobusCredential(certFile, keyFile);
        this.credential =
            new GlobusGSSCredentialImpl(clientCred,
                GSSCredential.INITIATE_AND_ACCEPT);
    }
View Full Code Here

            return null;
        }

        GlobusCredential tmpCred = getVOMSProxy(globusCred);
        GSSCredential vomsCredential = null;
        vomsCredential = new GlobusGSSCredentialImpl(tmpCred,
            GSSCredential.INITIATE_AND_ACCEPT);
        return vomsCredential;
    }
View Full Code Here

TOP

Related Classes of org.globus.gsi.gssapi.GlobusGSSCredentialImpl

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.