com.atlassian.jira.rpc.auth
Interface TokenManager
- All Known Implementing Classes:
- TokenManagerImpl
public interface TokenManager
login
String login(String username,
String password)
throws RemoteException,
RemoteAuthenticationException
- Throws:
RemoteException
RemoteAuthenticationException
logout
boolean logout(String token)
retrieveUser
User retrieveUser(String token)
throws RemoteAuthenticationException,
RemotePermissionException
- Deprecated. As some instances may want to allow anonymous access, individual methods should check for their
relevant permission instead. Use
retrieveUserNoPermissionCheck(String)
instead.
- Retrieve the user, checking that the token is valid, and that the user has the 'USE' permission
- Parameters:
token
-
- Returns:
- A valid user. Note that this method will never return null
- Throws:
RemoteAuthenticationException
- If the token is not valid, or if it has timed out
RemotePermissionException
- If the user does not have the 'USE' permission.
retrieveUserNoPermissionCheck
User retrieveUserNoPermissionCheck(String token)
throws RemoteAuthenticationException,
RemotePermissionException
- Throws:
RemoteAuthenticationException
RemotePermissionException
Copyright © 2004-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.