code: public GSSContext createContext(GSSName peer,
  				    Oid mech,
  				    GSSCredential cred,
  				    int lifetime)
  	throws GSSException {
  	checkMechanism(mech);
  
  
  	GlobusGSSCredentialImpl globusCred = null;
  	if (cred == null) {
  	    globusCred = (GlobusGSSCredentialImpl)createCredential(GSSCredential.INITIATE_ONLY);
  	} else if (cred instanceof GlobusGSSCredentialImpl) {
  	    globusCred = (GlobusGSSCredentialImpl)cred;
  	} else {
  	    throw new GSSException(GSSException.NO_CRED);
  	}
  
  	GSSContext ctx = new GlobusGSSContextImpl(peer, globusCred);
  	ctx.requestLifetime(lifetime);
  
  	return ctx;
      }
docs: for initiators