public interface

JiraSoapTokenResolver

com.atlassian.jira.soap.axis.JiraSoapTokenResolver

Class Overview

Objects that implement this interface can resolve SOAP tokens back to user names. to

Summary

Public Methods
int getTokenParameterIndex(String operationName)
The implementer is expected to return the parameter index that the "token" field occurs on for the named operation.
String resolveTokenToUserName(String token)
The JiraAxisTokenResolver is asked to resolve a token back into user name.

Public Methods

public int getTokenParameterIndex (String operationName)

The implementer is expected to return the parameter index that the "token" field occurs on for the named operation. For example the if the token is the first parameter the implementer should return 0.

Parameters
operationName the name of the operation
Returns
  • the zero based index of the token parameter in that operation or -1 if it has not token

public String resolveTokenToUserName (String token)

The JiraAxisTokenResolver is asked to resolve a token back into user name. if it can resolve a name it should return null.

Parameters
token the token to resolve
Returns
  • a name of the user presented by this token or null if it cant be resolved