当前位置: 首页>>代码示例>>Java>>正文


Java RequiresXsrfCheck类代码示例

本文整理汇总了Java中com.atlassian.jira.security.xsrf.RequiresXsrfCheck的典型用法代码示例。如果您正苦于以下问题:Java RequiresXsrfCheck类的具体用法?Java RequiresXsrfCheck怎么用?Java RequiresXsrfCheck使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RequiresXsrfCheck类属于com.atlassian.jira.security.xsrf包,在下文中一共展示了RequiresXsrfCheck类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception {
    secureTokenManager.setToken(token);
    setSaved(true);
    return getRedirect("PromForJiraSecureTokenConfigAction!default.jspa?saved=true");
}
 
开发者ID:AndreyVMarkelov,项目名称:jira-prometheus-exporter,代码行数:8,代码来源:SecureTokenConfigAction.java

示例2: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    logger.debug("Configure organization default action.");
    eventPublisher.publish(new DvcsConfigPageShownAnalyticsEvent(getSourceOrDefault()));
    return INPUT;
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:9,代码来源:ConfigureDvcsOrganizations.java

示例3: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    triggerAddStartedEvent(EVENT_TYPE_GITLAB);

    //oAuthStore.store(new Host(GitlabCommunicator.GITLAB, url), oauthClientId, oauthSecret);

    // then continue
    return doFinish();
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:12,代码来源:AddGitlabOrganization.java

示例4: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
	
	List<String> slugs = new ArrayList<String>();

	if (organizationDefaultGroups != null && organizationDefaultGroups.length > 0) {
		slugs.addAll(Arrays.asList(organizationDefaultGroups));
	}
	
	organizationService.setDefaultGroupsSlugs(Integer.parseInt(organizationIdDefaultGroups), slugs);

    return getRedirect("ConfigureDvcsOrganizations.jspa?atl_token=" + CustomStringUtils.encode(getXsrfToken()));
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:16,代码来源:ConfigureDefaultBitbucketGroups.java

示例5: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    triggerAddStartedEvent(EVENT_TYPE_BITBUCKET);

    storeLatestOAuth();

    // then continue
    return redirectUserToBitbucket();
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:12,代码来源:AddBitbucketOrganization.java

示例6: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    triggerAddStartedEvent(EVENT_TYPE_GITHUB_ENTERPRISE);

    oAuthStore.store(new Host(GITHUB_ENTERPRISE, url), oauthClientIdGhe, oauthSecretGhe);

    // then continue
    return redirectUserToGithub();
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:12,代码来源:AddGithubEnterpriseOrganization.java

示例7: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    triggerAddStartedEvent(EVENT_TYPE_GITHUB);

    oAuthStore.store(Host.GITHUB, oauthClientId, oauthSecret);

    // then continue
    return redirectUserToGithub();
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:12,代码来源:AddGithubOrganization.java

示例8: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception {
    // only change the token if this is a real update
    configurationManager.updateProject(project);
    configurationManager.updateBoardId(boardId);
    configurationManager.updateServer(server);
    configurationManager.updatePort(port);
    configurationManager.updateUsername(username);
    configurationManager.updatePassword(password);
    success = true;
    return SUCCESS;
}
 
开发者ID:spotify,项目名称:jira-lkk-bridge,代码行数:14,代码来源:Configuration.java

示例9: doExecute

import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
    return redirectUserToGrantAccess();
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:7,代码来源:RegenerateOauthTokenAction.java


注:本文中的com.atlassian.jira.security.xsrf.RequiresXsrfCheck类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。