com.atlassian.jira.plugin.webfragment.contextproviders
Class XsrfTokenContextProvider

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.contextproviders.XsrfTokenContextProvider
All Implemented Interfaces:
com.atlassian.plugin.web.ContextProvider

public class XsrfTokenContextProvider
extends Object
implements com.atlassian.plugin.web.ContextProvider

Context Provider that provides the xsrf token for the request. Referenced by "${atl_token}" or ${atl_token_escaped} for the URL escaped version.

Since:
v4.4

Constructor Summary
XsrfTokenContextProvider(XsrfTokenGenerator xsrfTokenGenerator)
           
 
Method Summary
 Map<String,Object> getContextMap(Map<String,Object> context)
           
 void init(Map<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsrfTokenContextProvider

public XsrfTokenContextProvider(XsrfTokenGenerator xsrfTokenGenerator)
Method Detail

init

public void init(Map<String,String> params)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.web.ContextProvider
Throws:
com.atlassian.plugin.PluginParseException

getContextMap

public Map<String,Object> getContextMap(Map<String,Object> context)
Specified by:
getContextMap in interface com.atlassian.plugin.web.ContextProvider


Copyright © 2002-2012 Atlassian. All Rights Reserved.