com.atlassian.jira.user.SecureUserTokenManager |
![]() |
Provides the ability to generated and multiple secure tokens for a given user and type.
The token and type can then be resolved back to that user.
Tokens provided by these implementations should be generated securly (i.e. using com.atlassian.security.random.DefaultSecureTokenGenerator) expire after 30 minutes and only be available for use once!
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SecureUserTokenManager.TokenType | Token will be usable only for types of requests specified via this enum |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given a user and tokentype this method creates a new secure token and returns this token.
| |||||||||||
Given a token and tokenType, this method returns the User that was mapped to this token and then revokes the
token to ensure it can't be used again.
|
Given a user and tokentype this method creates a new secure token and returns this token. A particular user can have multiple tokens mapped at any given time.
user | The user this token is for |
---|---|
tokenType | The SecureUserTokenManager.TokenType for this token |
Given a token and tokenType, this method returns the User that was mapped to this token and then revokes the token to ensure it can't be used again.
token | A secure token |
---|---|
tokenType | The SecureUserTokenManager.TokenType for this token |