本文整理汇总了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");
}
示例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;
}
示例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();
}
示例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()));
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例9: doExecute
import com.atlassian.jira.security.xsrf.RequiresXsrfCheck; //导入依赖的package包/类
@Override
@RequiresXsrfCheck
protected String doExecute() throws Exception
{
return redirectUserToGrantAccess();
}